home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / saodoc.tar / cmdline.txt < prev    next >
Text File  |  1989-11-29  |  14KB  |  323 lines

  1.  
  2. SAOimage command line
  3.  
  4. The command line is the line you type when you first call the SAOimage
  5. program.  Following the name of the program, you can include the name
  6. of a file to read and/or various parameters and settings.  Except for
  7. the filename, all settings are identified by a "switch" beginning with
  8. a "-".  Some switches are sufficient by themselves, some switches must
  9. be followed by a fixed number of arguments (usually numerical), and
  10. some switches may be followed by arguments but do not require them.
  11. These are explained below.
  12.  
  13. There is no required order to the switches.  The file name can also
  14. appear anywhere on the command line (SAOimage assumes that any token
  15. that is not part of a recognizable switch is the file name).
  16.  
  17. Many switches have two names, one literal and one abbreviated.  In such
  18. cases the names are completely interchangeable.  The longer names might
  19. be used in a script where a later reader might wonder what the switches
  20. do.  The abbreviated names save typing on the command line.
  21.  
  22. Once SAOimage is running, you may enter a new command line, changing
  23. some of the settings and/or reading in a new image from disk.  See "new"
  24. in the "etc" menu section or 'N' in the keyboard section.  A few
  25. switches cannot be changed from their initial settings (i.e. the display
  26. server).
  27.  
  28. There are probably more switches than can fit on a normal command
  29. line.  A method of tailoring with a default parameter file will
  30. eventually be added.  The following is a list of the command line
  31. switches for SAOimage:
  32.  
  33. -d <X server name>:<X server name extension>.<screen number> **
  34.     Specify the name of the X display server.  This makes it
  35.     possible to run the SAOimage program on a machine other than
  36.     the one connected to your display screen, with no difference
  37.     in appearance or use.  The default gets the server name from
  38.     the DISPLAY environment variable.  See the "xhost" man page
  39.     for more details.  This cannot be changed once SAOimage is
  40.     running.
  41.     Example: connect to the display server on cfa241
  42.       saoimage -d cfa241:0.0
  43.      or
  44.       saoimage -d 128.103.41.241:0.0
  45.  
  46. -g [<width>x<height>][{+-}<x>{+-}<y>] **
  47.     Specify the size and/or the screen position of SAOimage.  The
  48.     format is a standard X geometry statement.  Both size and
  49.     position may be specified, or only the size or the position.
  50.     Width and height refer to the dimensions of SAOimage's desktop
  51.     window (see -dispsz for sizing just the image display window).
  52.     +x and +y refer to the upper left corner in screen coordinates.
  53.     -x positions the right edge from the right edge of the screen.
  54.     -y would positions the lower edge from the bottom of the screen.
  55.     Width and height below a minimum size are defaulted to the
  56.     minimum.  Some window managers may alter the size and/or
  57.     position slightly.  Once SAOimage is running, use the window
  58.     managers size and move mechanisms to make any readjustments.
  59.     Examples:
  60.     a) create minimum sized SAOimage near upper left corner
  61.       saoimage -g 0x0+10+20
  62.     b) create a 500x700 SAOimage window in the lower right corner
  63.       saoimage -g 500x700-5-5
  64.  
  65. -gd [<width>x<height>][{+-}<x>{+-}<y>] **
  66.     Specify the size of the image display subwindow and/or the
  67.     screen position of SAOimage.  The format is a standard X
  68.     geometry statement.  This switch works like -g above, except
  69.     that width and height (if given) are applied to the display
  70.     subwindow.  The overall SAOimage window is sized accordingly.
  71.     Example: create an SAOimage in the upper right with a display
  72.              window to exacly show a 320x512 FITS image
  73.       saoimage -G 320x512-5+0 m51.fits
  74.  
  75. -name <filename>
  76.     This switch is only needed if the filename starts with a number
  77.     or might otherwise be recognized as a switch.
  78.  
  79. -fits    Image file is a FITS file.  (If the image file name ends in .fits,
  80.     this switch is not necessary).  Only T=SIMPLE array types are
  81.     supported.  The header BITPIX card must be 8 (unsigned byte), 16
  82.     (signed short), 32 (signed int), -32 (float), -64 (double), or
  83.     -16 (unsigned short) (the latter two are not recognized standards).
  84.     IEEE floats are not converted if that is not the machine format.
  85.  
  86. -dfits    Image file is a FITS file as above, but in unexpected byteswapped
  87.     order.  The FITS standard is not swapped, but some naive VAX
  88.     applications may swap it. (see -bswap)
  89.  
  90. -oif    Image file is an IRAF image header file in OIF format.  (If the
  91.     image file name ends in .imh, this switch is not necessary).  IRAF
  92.     STF and QPOE formats are not supported.  Complex data cannot be
  93.     handled.  The data must have at least 2 dimensions.  Only the first
  94.     plane of multidimensional images is read.  The data file is read
  95.     directly by SAOimage (see -imtool/-pros below).
  96.  
  97. -chararray <width> <height>
  98. -u1 <width> <height>
  99.     Image file is an unsigned byte array file of the given dimensions.
  100.     (If the file is square and has no added padding, the dimensions
  101.     are not necessary).
  102.  
  103. -ushortarray <width> <height>
  104. -u2 <width> <height>
  105.     Image file is a unsigned short integer array file of the given
  106.     dimensions.  (If the file is square and has no added padding, the
  107.     dimensions are not necessary).
  108.  
  109. -shortarray <width> <height>
  110. -i2 <width> <height>
  111.     Image file is a signed short integer array file of the given
  112.     dimensions.  (If the file is square and has no added padding, the
  113.     dimensions are not necessary).
  114.  
  115. -longarray <width> <height>
  116. -i4 <width> <height>
  117.     Image file is a signed long integer array file of the given
  118.     dimensions.  (If the file is square and has no added padding, the
  119.     dimensions are not necessary).
  120.  
  121. -floatarray <width> <height>
  122. -r4 <width> <height>
  123.     Image file is a real*4 array file of the given dimensions.
  124.     (If the file is square and has no added padding, the dimensions
  125.     are not necessary).
  126.  
  127. -doublearray <width> <height>
  128. -r8 <width> <height>
  129.     Image file is a real*8 array file of the given dimensions.
  130.     (If the file is square and has no added padding, the dimensions
  131.     are not necessary).
  132.  
  133. -header <bytes>
  134. -skip <bytes>
  135. -sk <bytes>
  136.     Skip over the given number of bytes at the head of the file before
  137.     reading    data.  This is used to skip header information or the first
  138.     image if two images are stored in one file.
  139.  
  140. -bswap    Switch the bytes order between big-endian and little-endian
  141.     order.  This may be needed where data has been copied from
  142.     another machine or if there is some confusion about the FITS
  143.     file format.  This switch toggles the previous setting.
  144.  
  145. -scalebias <scale> <bias>
  146. -sb <scale> <bias>
  147.     The data in the image file should be scaled and biased to get
  148.     the true image value (true_value = (scale * file_value) + bias).
  149.     This cannot be used with the -fits image type (scale and bias
  150.     are in the FITS header), nor with -imtool or -pros (they are
  151.     passed by IRAF).
  152.  
  153. -ul    First pixel in file represents the upper left of the image
  154.     (assuming the lines of input run left to right on the screen -
  155.     see rotate, below).  (This switch does not override IRAF wcs
  156.     image coordinates).
  157.     
  158. -ll    First pixel in file represents the lower left of the image.
  159.     (assuming the lines of input run left to right on the screen -
  160.     see rotate, below).  This is the IRAF standard and the SAOimage
  161.     default.
  162.  
  163. -rotate <1,2,or 3>
  164. -rot <1,2,or 3>
  165.     Rotate the image 90, 180, or 270 degrees (respectively) before
  166.     displaying it.  Rotation is applied after conversion to a lower
  167.     left coordinate system (-ll) if such conversion is also requested.
  168.     This is useful for images when the CCD was not mounted North-up.
  169.  
  170. -one    The file coordinate of the first pixel is (1,1).  The real coord-
  171.     inates of the center of the first pixel are (1.0,1.0).  This is
  172.     the IRAF standard and the default for SAOimage.  The second pixel
  173.     is (2,1).
  174.  
  175. -zero    The file coordinate of the first pixel is (0,0).  The real coor-
  176.     dinates center of the first pixel are (0.5,0.5) which makes the
  177.     very edge 0.0.  This is the standard coordinate system for image
  178.     displays, but not the default for SAOimage.  The second pixel is
  179.     indexed (1,0).
  180.  
  181. -imtool
  182.     Open the named input pipe and wait for input from IRAF.  In
  183.     this mode, SAOimage emulates IRAF's imtool.  IRAF's image
  184.     loading and cursor read-back functions are supported.  Unlike
  185.     imtool, SAOimage has only one frame buffer; IRAF's frame buffer
  186.     numbers are ignored.  This switch cannot be given when there
  187.     is also a file name for reading on the same command line.
  188.     Listening on the pipe is assumed to be requested in place
  189.     of reading a file.  This is the default mode if SAOimage is
  190.     started up with no file specified.
  191.  
  192. -pros
  193.     This command is virtually identical to the -imtool switch
  194.     above.  The difference occurs when the user writes the saved
  195.     regions to a disk file.  Imtool emulation includes writing
  196.     only an IRAF list file giving center coordinates only.  With
  197.     -pros, SAOimage's normal region descriptor file will be
  198.     written in place of the simpler list file.
  199.  
  200. -idev    Specify the name of the named pipe used for listening.  The
  201.     default is /dev/imt1o, which is the default used by IRAF.
  202.  
  203. -odev    Specify the name of the named pipe used for sending feedback.
  204.     The default is /dev/imt1i, which is the default used by IRAF.
  205.  
  206. -linear
  207.     Set the scaling mode to linear scaling.
  208.  
  209. -wrap [<# of wraps within scaling range>]
  210.     Set the scaling mode to wrapped linear, and set the number of
  211.     wraps for this mode, if given.  (See scaling section)
  212.  
  213. -log [<exponent for e**n curve>]
  214.     Set the scaling mode to log (exponential), and set the exponent
  215.     for the curve function, if given.  (See scaling section)
  216.  
  217. -sqrt [<inverse of exponent for geometric curve>]
  218.     Set the scaling function to sqrt (geometric), and set the
  219.     inverse of the exponent for the X**(1/n) curve, if given.
  220.     (See scaling section)
  221.  
  222. -histeq
  223.     Set the scaling mode to hisstogram equalization.
  224.  
  225. -min [<minimum value for scaling>]
  226.     Set the minimum for the image value range used to compute
  227.     scaling.  The default is to take the minimum from the image
  228.     shown in the display window.  -min with no value resets the
  229.     default.  (If the minimum value in the displayed image is
  230.     higher than the given minimum, the image's minimum vale is
  231.     used for the scaling range.)
  232.  
  233. -max [<maximum value for scaling>]
  234.     Set the maximum for the image value range used to compute
  235.     scaling.  The default is to take the maximum from the image
  236.     shown in the display window.  -max with no value resets the
  237.     default.  (If the maximum value in the displayed image is
  238.     higher than the given maximum, the image's maximum vale is
  239.     used for the scaling range.)
  240.  
  241. -rmin [<minimum value for reading>]
  242.     Set minimum value for reading from the image file.  This value
  243.     is used as the minimum value when images are pre-scaled to fit
  244.     the 16 bit (signed short) working buffer.  (See scaling section)
  245.  
  246. -rmax [<maximum value for reading>]
  247.     Set maximum value for reading from the image file.  This value
  248.     is used as the maximum value when images are pre-scaled to fit
  249.     the 16 bit (signed short) working buffer.  (See scaling section)
  250.  
  251. -v     Set verbose mode.  In verbose mode, informative statements are
  252.     printed to the terminal window when various actions are taken.
  253.     
  254. -q     Set quiet mode.  See -v above.    The default mode is to be verbose.
  255.  
  256. -lprbuttons
  257.     Include the button menu in the hardcopy image (only on color
  258.     workstations).  The default on color workstations includes the
  259.     area above the button panel, but excludes the buttons.
  260.  
  261. -coord    Set coordinate tracking as the initial state.  In coordinate
  262. -ct    tracking the coordinates of the mouse are printed in the lower
  263.     part of the main display window.
  264.  
  265. -magnifier
  266. -mt    Set magnifier tracking as the intial state.  With magnifier
  267.     tracking, the magnifier window is continuously updated to show
  268.     a magnification of the image the image under the mouse.
  269.  
  270. -mag <magnification>
  271.     Set the magnification factor of the magnifier.  This
  272.     factor relates the magnifier to the magnification of the
  273.     display window.  The default is 4; the magnifier magnifies
  274.     the image to 4 times the magnification of the main display
  275.     window (but never less than zoom 1 of the original data).
  276.  
  277. -palette <# of colors in display colormap palette>
  278. -p <#>    Specify the number of read/write color cells to reserve.  On
  279.     color workstations, SAOimage reserves color cells in the default
  280.     colormap for its own use (see the Color section).  SAOimage
  281.     reserves as many color cells as it can get, up to the number
  282.     given (the default is 200).  If the number given is negative,
  283.     SAOimage comes up in overlay mode, using 1/2 + 2 of the color
  284.     cells for overlays and graphics.  In verbose mode (see -v above)
  285.     SAOimage tells you how many cells it is able to use for display
  286.     colors.  This number can be re-entered at run-time, unless -p 1
  287.     is given, in which case SAOimage stays in halftone mode.
  288.  
  289. -green **
  290. -blue **
  291. -red **    Set the color of all graphics to a primary (red, green, or blue).
  292.     Some inexpensive systems use a monochrome monitor connected to
  293.     one of the three color outputs on the computer.  That color must
  294.     be specified to make the graphics visible.
  295.  
  296. -horizgraph **
  297. -hg    Make the auxiliary color graph window can be wide, with a color
  298.     bar along the bottom (the default).
  299.  
  300. -vertgraph **
  301. -vg    Make the auxiliary color graph window tall, with a colorbar
  302.     along the left side.
  303.  
  304. -panboxav
  305. -panboxsum
  306. -panboxsamp
  307. -panboxmax
  308.     These switches select the kind of image reduction used to fit
  309.     a picture of the entire image into the pan window.  Each pixel
  310.     is computed from a block of image pixels by averaging, summing,
  311.     sampling, or taking the maximum.  The default is to show the
  312.     maximum from each block.  (When zooming in the main display
  313.     involves reduction, subsampling is always used).
  314.  
  315. -bordercolor <color-name> **
  316. -bc <color-name>
  317.     Specify the color of all subwindow borders.  Color name must be a
  318.     recognized X color (there are many).  This is a style issue.
  319.     Example: -bc green
  320.  
  321.  
  322. ** This switch is only effective on the initial start-up command line.
  323.