Sponsored Content
Top Forums UNIX for Beginners Questions & Answers awk scripting to select a rectangle frame Post 303044200 by RudiC on Sunday 16th of February 2020 12:47:30 PM
Old 02-16-2020
Quote:
Originally Posted by jeo_fb
Hi again,

I want to select lines in an imaginary rectangle frame whose corners are;

Latitude Longitude
37.0000 36.5000
37.5000 36.5000
39.5000 41.0000
39.0000 41.0000
37.0000 36.5000
Not being a native speaker, I think this is not a rectangle. It is a parallelogram or a rhombus / rhomboid.


Quote:
For example I do not want to line including;
39.0000 38.0000
This is a coordinate pair, a point in a plane. A line needs at least one more point.

Quote:
Because it is not in the rectangle.
Should a line dissect that geometric shape, or lie entirely within?


Pls tell us how to interpret your "coordinate list".
This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SED scripting select

Say I have a file 'example.txt' with these lines of code in it: hello:anddasd:cheese:gerg whatever:sdadsa:asdfasdfa:wwew hmmmm:something:gfhfhgf:sdasdas Question: 1. How would I write a script which is able to take all the words before the first ':'? 2. How would I write a script which is... (6 Replies)
Discussion started by: i_am_a_robot
6 Replies

2. UNIX for Dummies Questions & Answers

Awk - select from a list

Hi all, I am trying to select some columns from a file, based on the list of values. Would like to know how best I can achive this. If coulmn 1 has a value of 57 then print the ist column (This works) awk -F' ' '{if ( $1 == 57 ) {print $1}}' file.txt Now my requirement is that I have to... (14 Replies)
Discussion started by: simha77777
14 Replies

3. Shell Programming and Scripting

SQL Select and awk

Dear All , I have file1.txt contain values like the following: ---------- 23 24 25 and I have shell script which has the following : more file1.txt | awk '{print "select 'DUMP',CODE1||'|'||CODE2||'|'||CODE3 from CODE where CODE1='" $1 "';"}' > file2.sql all I need is to have the... (6 Replies)
Discussion started by: habuzahra
6 Replies

4. Shell Programming and Scripting

Removing repeating lines from a data frame (AWK)

Hey Guys! I have written a code which combines lots of files into one big file(.csv). However, each of the original files had headers on the first line, and now that I've combined the files the headers are interspersed throughout the new combined data frame. For example, throughout the data... (21 Replies)
Discussion started by: gd9629
21 Replies

5. Shell Programming and Scripting

awk with fields select?

If i have a log file record.txt, with 10 fields - First field is datetime - 7th field is status - 8th filed is name - The last field (10th) is epoch time of the first field 02/17/2012 1:47 PM||||||In Use|chicken||1329515230 02/17/2012 2:53 PM||||||Available|chicken||1329519195 02/17/2012... (4 Replies)
Discussion started by: sabercats
4 Replies

6. Shell Programming and Scripting

awk : Search for text between two time frame (12 hours)

I have created the script to grep the errors from weblogic logs files and redirecting output to file.txt ...From file.txt I'm using awk command to collect the past 20 mins output...The script running from cron every 15 mins... The script working well... Now the challenges, I'm trying to use... (27 Replies)
Discussion started by: zenkarthi
27 Replies

7. Shell Programming and Scripting

awk : collecting all data between two time frame

Hi Experts , I need your help to collect the complete data between two time frame from the log files, when I try awk it's collecting the data only which is printed with time stamp for example, awk works well from "16:00 to 17:30" but its not collecting <line*> "from 17:30 to 18:00" ... (8 Replies)
Discussion started by: zenkarthi
8 Replies

8. Shell Programming and Scripting

Using awk to select one field

Hi, I saw your post.. I have a dought in awk command... how to get the output from a file. i need a first column in etc/passwd file in a single column (in indivijual line)... i couldn't get with this command cat /etc/passwd | awk -F ":" '{printf $1}' Kindly help This thread was created... (3 Replies)
Discussion started by: Dheepak s
3 Replies

9. UNIX and Linux Applications

Rectangle is flickering while dragging on screen with xlib

Hi, this is my first post here. I wanto make a screencasting program. I want to make a screen part selection to grab coordinates of the screen location. I found a nice prototype #include <X11/Xlib.h> //#include <X11/Xresource.h> #include <stdlib.h> #include <stdio.h> #include... (0 Replies)
Discussion started by: whatnext
0 Replies

10. Shell Programming and Scripting

Shell Scripting - Select multiple files from numbered list

I am trying to have the user select two files from a numbered list which will eventually be turned into a variable then combined. This is probably something simple and stupid that I am doing. clear echo "Please Select the Show interface status file" select FILE1 in *; echo "Please Select the... (3 Replies)
Discussion started by: dis0wned
3 Replies
GIMPPRINT-RESOLUTIONS(7)				      Gimp-Print Manual Pages					  GIMPPRINT-RESOLUTIONS(7)

NAME
gimpprint-resolutions - Gimp-Print print resolutions DESCRIPTION
Gimp-Print supports many different resolutions, which are printer type specific. The option names are case sensitive. Not all resolutions are supported on all printers. PRINT RESOLUTONS
Epson Stylus printers Within each specified resolution, the quality is generally listed from worst to best (and generally higher quality means lower speed). For example, 360 DPI Unidirectional is usually better than 360 DPI. Characteristics of specific models and individual printers may affect the orderings to some degree; on many printers, with certain papers, unidirectional printing will improve quality substantially more than using an otherwise better quality printing mode. The difference between different quality settings lies in the number of passes made over each line. "High" and "Highest" quality settings perform more passes, printing fewer dots with each pass over the same line and using different nozzles for each pass. This reduces banding effects, but requires more time. Microweave modes use algorithms within the printer to generate the sequence of rows printed. These algorithms generally only work well at low printing resolutions. Many printers do not support this kind of printing at resolutions of 720 DPI and above, and some printers that do actually print just one row (using just one nozzle per color) at a time. While this particular use will produce extremely high quality (no banding whatsoever, normally), it is extremely slow and may eventually damage the print head due to ink pooling. All printers that we are aware of have no such trouble at 360 DPI. We generally recommend the following resolutions for the following purposes: Resolution Recommended use ------------------------------------------------------ 360x90 Fast economy draft output on plain paper 360x120 (output will be very banded and not very dark). 180 Economy draft output on plain paper (output will not be very dark). 360x180 Draft output on plain paper (output will 360x240 not be solidly black); economy draft output on good quality inkjet paper. 360 Standard quality output on plain paper (output will be solidly black); draft output on good quality inkjet paper. 720x360 High quality output on plain paper; standard output on good quality inkjet paper. 720 Maximum quality on plain paper; high quality on good inkjet paper; proofs on photo-quality paper. On many printers, there will be little difference between this and 720x360 on plain paper. 1440x720 High quality on photo paper; use 1440x720 Highest Quality to reduce microbanding if needed. While this will work on plain paper, it usually offers little improvement over 720 DPI. 2880x720 Highest quality on photo paper. While this may yield slightly improved qual- ity, it will generally not be markedly superior to 1440x720 Highest Quality, except on the Stylus Color 980 and Sty- lus C70 and C80, where it may yield a noticeable improvement. It takes as long to print as 1440x720 highest qual- ity, but twice as long to generate the output. 1440x1440 An unsupported mode that offers higher quality than 2880x720 for certain types of images on very high quality paper. It does not appear to offer any advan- tage on smooth tones, but fine detail (particularly vertical, and to a lesser extent near-horizontal) it shows notice- able improvement. It takes as long to print as 2880x720. 1440x1440 highest quality takes twice as long to print. 2880x1440 An unsupported mode that may offer higher quality than 2880x720 for certain types of images on very high quality paper. Experiments conducted thus far demonstrate little if any improvement over 1440x1440. It takes twice as long to print as 2880x720 or 1440x1440, and as long to print as 1440x1440 highest quality. The following resolutions are supported on printers other than the Stylus Pro (5000, 5500, 7000, 7500, 9000, 9500, and 10000) printers. Resolutions for those printers are listed in a later section. Please see the notes at the end of this section. Quality Description Note ---------------------------------------------------------------------- 360x90dpi 360 x 90 DPI Fast Economy Draft (1) 180dpi 180 DPI Economy Draft (2) 360x180dpi 360 x 180 DPI Draft (2) 360x180sw 360 x 180 DPI Draft (3) 360x120dpi 360 x 120 DPI Economy Draft (4) 360x120sw 360 x 120 DPI Economy Draft (5) 360x240dpi 360 x 240 DPI Draft (4) 360x240sw 360 x 240 DPI Draft (5) 360dpi 360 DPI (6) 360uni 360 DPI Unidirectional (6) 360mw 360 DPI Microweave (6, *) 360mwuni 360 DPI Microweave Unidirectional (6) 360sw 360 DPI (7, 17, *) 360swuni 360 DPI Unidirectional (7, 17) 360hq 360 DPI High Quality (7, 8, 17) 360hquni 360 DPI High Quality Unidirectional (7, 8, 17) 720x360sw 720 x 360 DPI (9, 10) 720x360swuni 720 x 360 DPI Unidirectional (9, 10) 720mw 720 DPI Microweave (11) 720mwuni 720 DPI Microweave Unidirectional (11) 720sw 720 DPI (9) 720swuni 720 DPI Unidirectional (9) 720hq 720 DPI High Quality (9) 720hquni 720 DPI High Quality Unidirectional (9) 720hq2 720 DPI Highest Quality (9) 1440x720mw 1440 x 720 DPI Microweave (12) 1440x720mwuni 1440 x 720 DPI Microweave Unidirectional (12) 1440x720sw 1440 x 720 DPI (13) 1440x720swuni 1440 x 720 DPI Unidirectional (13, 14) 1440x720hq 1440 x 720 DPI Highest Quality (13) 2880x720sw 2880 x 720 DPI (15) 2880x720swuni 2880 x 720 DPI Unidirectional (15) 1440x1440sw 1440 x 1440 DPI (16) 1440x1440hq2 1440 x 1440 DPI Highest Quality (16) 2880x1440sw 2880 x 1440 DPI (16) * This resolution is the default on all printers supporting this setting. 1 Works on printers that have a basic vertical spacing of 1/90". This includes the Stylus Color, Stylus Color 440, 460, 600, 640, 660, 670, and 1500, and Stylus Photo, Stylus Photo 700, 720, and EX. 2 Works on most printers that have a basic vertical spacing of 1/90, 1/180, or 1/360 inch. This includes Stylus Color, Stylus Color 440, 460, 600, 640, 660, 670, 800, 850, 900, 980, 1500, 1520, 3000, and Stylus Photo, Stylus Photo 700, 720 and EX. 3 Works on Stylus C70, C80, and C82; and Stylus Photo 950, 960, 2100, and 2200. 4 Works on older printers with dot spacing of 1/120 inch. This includes the Stylus Color Pro, Pro XL, 400, and 500. 5 Works on newer printers with dot spacing of 1/120 inch. This includes the Stylus C20, C40, C41, C42, C60, C61, and C62; the Stylus Color 480, 580, 680, 740, 760, 777, 860, 880, 83, and 1160, and the Stylus Photo 750, 780, 785, 790, 810, 820, 825, 830, 870, 875, 890, 895, 915, 925, 1270, 1280, 1290, and 2000P, and the Stylus Scan 2000 and 2500. 6 Works on all printers that do not support variable drop sizes. This includes the Stylus Color, Stylus Color 400, 440, 460, 500, 600, 640, 660, 800, 850, 1500, 1520, and 3000, Stylus Color Pro, Stylus Color Pro XL, and Stylus Photo, Stylus Photo 700, and EX. 7 Works on all printers that do support variable drop sizes. This includes all supported Epson Stylus printers except for those listed in note (6). 8 Recommended only on processors slower than 200 MHz, the system is heavily loaded with a faster processor, or if problems are experi- enced at 720x360. 9 Works on all supported printers except for Stylus Color, Stylus Color Pro, Stylus Color Pro XL, Stylus Color 1500, 1520, and 3000. 10 On printers that do not support variable drop size (see note (4)), this will print as fast as 360 DPI, and faster than 360 DPI High Quality. It will take twice as long to generate output, which may be important on a heavily loaded system or a processor slower than 200 MHz. 11 Works on some older printers, including the Stylus Color, Stylus Color 400, 500, 600, 800, 850, 1500, 1520, and 3000, Stylus Color Pro, and Stylus Color Pro XL. Not recommended except for the Stylus Color, Stylus Color 1500, 1520, and 3000. 12 Works on Stylus Color 600, 800, 850, 1520, and 3000. Not recommended unless other 1440x720 modes do not work. 13 Works on all printers that support 1440x720 DPI. This includes all supported printers except for the Stylus Color, Stylus Color Pro, Pro XL, 400, 440, 460, 480, 500, and 1500, and Stylus Photo. In addition, this may not work correctly on Stylus Color 1520 and Stylus Color 3000. 14 This is identical to 1440 x 720 Highest Quality (1440x720hq) on the Stylus Color 900. 15 Works on all printers that support 2880x720 DPI. This includes the Stylus C60, C61, C62, C70, C80, and C82, the Stylus Color 680, 777, 880, 83, and 980, and Stylus Photo 780, 790, 810, 820, 825, 830, 890, 915, 925, 950, 960, 1280, and 1290. This resolution is offered on the Stylus Photo 2100 and 2200, but may not work correctly. 16 Works on Epson Stylus Photo 825, 830, 925, 950, 960, 2100, 2200; Stylus C61, C62, C70, C80, C82 ; Stylus Pro 7600 and 9600. This resolution is not supported by Epson on the C70 and C80, but it works correctly on at least some such printers. 17 These resolutions print at particularly high speed on the Epson Stylus Photo 950, 960, 2100, and 2200 when printing in Four Color Standard or Three Color Composite modes, or when printing in monochrome or grayscale with any ink type other than Two Level Grayscale, Seven Color Photo, or Quadtone. The Stylus Pro printers (Stylus Pro 5000, 5500, 7000, 7500, 7600, 9000, 9500, 9600, and 10000) support additional microweave modes known as Full Overlap (FOL), Four Pass, and FOL2. The Stylus Pro 5500, 7500, 7600, 9500, 9600, and 10000 additionally have a mode called MW2. These modes can only be used at certain resolutions. Stylus Pro printers support the following resolutions: Quality Description ------------------------------------------------------------ 180dpi 180 DPI 360dpi 360 DPI 360uni 360 DPI Unidirectional 360mw 360 DPI Microweave 360mwuni 360 DPI Microweave Unidirectional 360fol 360 DPI Full Overlap 360foluni 360 DPI Full Overlap Unidirectional 360fol2 360 DPI FOL2 360fol2uni 360 DPI FOL2 Unidirectional 360mw2 360 DPI MW2 360mw2uni 360 DPI MW2 Unidirectional 720x360dpi 720 x 360 DPI 720x360uni 720 x 360 DPI Unidirectional 720x360fol 720 x 360 DPI FOL 720x360foluni 720 x 360 DPI FOL Unidirectional 720x360fol2 720 x 360 DPI FOL2 720x360fol2uni 720 x 360 DPI FOL2 Unidirectional 720x360mw2 720 x 360 DPI MW2 720x360mw2uni 720 x 360 DPI MW2 Unidirectional 720dpi 720 DPI 720uni 720 DPI Unidirectional 720mw 720 DPI Microweave 720mwuni 720 DPI Microweave Unidirectional 720fol 720 DPI Full Overlap 720foluni 720 DPI Full Overlap Unidirectional 720fourp 720 DPI Four Pass 720fourpuni 720 DPI Four Pass Unidirectional 1440x720dpi 1440 x 720 DPI 1440x720uni 1440 x 720 DPI Unidirectional 1440x720mw 1440 x 720 DPI Microweave 1440x720mwuni 1440 x 720 DPI Microweave Unidirectional 1440x720fol 1440 x 720 DPI FOL 1440x720foluni 1440 x 720 DPI FOL Unidirectional 1440x720fourp 1440 x 720 DPI Four Pass 1440x720fourpuni 1440 x 720 DPI Four Pass Unidirectional In addition, the Stylus Pro 7600 and 9600 printers support the following resolutions: Quality Description -------------------------------------------------------------- 2880x720dpi 2880 x 720 DPI 2880x720uni 2880 x 720 DPI Unidirectional 2880x720mw 2880 x 720 DPI Microweave 2880x720mwuni 2880 x 720 DPI Microweave Unidirectional 2880x720fol 2880 x 720 DPI FOL 2880x720foluni 2880 x 720 DPI FOL Unidirectional 2880x720fourp 2880 x 720 DPI Four Pass 2880x720fourpuni 2880 x 720 DPI Four Pass Unidirectional 1440x1440dpi 1440 x 1440 DPI 1440x1440uni 1440 x 1440 DPI Unidirectional 1440x1440mw 1440 x 1440 DPI Microweave 1440x1440mwuni 1440 x 1440 DPI Microweave Unidirectional 1440x1440fol 1440 x 1440 DPI FOL 1440x1440foluni 1440 x 1440 DPI FOL Unidirectional 1440x1440fourp 1440 x 1440 DPI Four Pass 1440x1440fourpuni 1440 x 1440 DPI Four Pass Unidirectional 2880x1440dpi 2880 x 1440 DPI 2880x1440uni 2880 x 1440 DPI Unidirectional 2880x1440mw 2880 x 1440 DPI Microweave 2880x1440mwuni 2880 x 1440 DPI Microweave Unidirectional 2880x1440fol 2880 x 1440 DPI FOL 2880x1440foluni 2880 x 1440 DPI FOL Unidirectional 2880x1440fourp 2880 x 1440 DPI Four Pass 2880x1440fourpuni 2880 x 1440 DPI Four Pass Unidirectional PCL printers (including Hewlett-Packard and Lexmark 4076) In addition, the Stylus Pro 7600 and 9600 printers support the following resolutions: Quality Description ------------------------------------------------------- 150dpi 150x150 DPI (should work on all printers) 300dpi 300x300 DPI (should work on all printers, C-RET on DJ 850/855/870/890) 600x300dpi 600x300 DPI (DJ 6xx/810/812/840/842/895) 600mono 600x600 DPI monochrome (DJ 6xx (except 69x) /8xx/1100/1120) 600dpi 600x600 DPI (DJ 69x/840/9xx/1220/2000/2500, PhotoSmart P1000/P1100, LJ5/5Si/6) Note: the higher resolutions of newer PCL printers using "Photo-Ret" are not yet supported. Lexmark printers (other than the 4076) Quality Description --------------------------------------------------------- 300x600dpi 300 DPI x 600 DPI 600dpi 600 DPI 600hq 600 DPI high quality 600uni 600 DPI Unidirectional 1200dpi 1200 DPI 1200hq 1200 DPI high quality 1200hq2 1200 DPI highest quality 1200uni 1200 DPI Unidirectional 2400x1200dpi 2400 DPI x 1200 DPI (Z52) 2400x1200hq 2400 DPI x 1200 DPI high quality (Z52) 2400x1200hq2 2400 DPI x 1200 DPI highest quality (Z52) Canon printers 1200 DPI printers (BJC 7000, BJC 7100, BJC 8500): Quality Description ------------------------------- 300x300dpi 300x300 DPI 300x300dmt 300x300 DPI DMT 600x600dpi 600x600 DPI 600x600dmt 600x600 DPI DMT 1200x600dpi 1200x600 DPI 1200x1200dpi 1200x1200 DPI 1440 DPI printers (BJC 30, BJC 50, BJC 55, BJC 80, BJC 85, BJC 210, BJC 240, BJC 250, BJC 1000, BJC 2000, BJC 3000, BJC 4300, BJC 4400, BJC 6000, BJC 6100, BJC 6200, BJC 6500, BJC 8200, S400, S450, S800, S4500): Quality Description ------------------------------- 360x360dpi 360x360 DPI 360x360dmt 360x360 DPI DMT 720x360dpi 720x360 DPI 720x720dpi 720x720 DPI 1440x720dpi 1440x720 DPI 1440x1440dpi 1440x1440 DPI COPYRIGHT
Copyright (C) 2001 Michael Sweet (mike@easysw.com) and Robert Krawitz (rlk@alum.mit.edu) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This manual page was written by Roger Leigh (roger@whinlatter.uklinux.net) SEE ALSO
gimpprint-color(7), gimpprint-dithers(7), gimpprint-imagetypes(7), gimpprint-inktypes(7), gimpprint-mediasizes(7), gimpprint-media- sources(7), gimpprint-mediatypes(7), gimpprint-models(7). Version 4.2.4 25 Nov 2002 GIMPPRINT-RESOLUTIONS(7)
All times are GMT -4. The time now is 06:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy