Download A User`s Introduction To The IRAF Command Language
Transcript
CL User's Guide (DRAFT) 31 irs.log irs.0030.imh irs.0031.imh irs.0032.imh the template irs.3.imh would match the three image les, whereas irs.3 would match the LOG le as well, causing imheader to complain about an illegal format image in its input list. 4.4.3 Image Sections All IRAF programs which operate upon images may be used to operate on the entire image (the default) or any section of the image. A special notation is used to specify image sections. The section notation is appended to the name of the image, much like an array subscript is appended to an array name in a conventional programming language. Note that array or image section index references are integer only in pixel coordinates, but that the data may be of any valid type. section refers to pix pix[] pix[i,j] pix[3,3] pix[3,-3] pix[3,3,b] pix[3,3:s] pix[3,l] pix[c,3] pix[i1:i2,j1:j2] pix[i1:i2:sx,j1:j2:sy] whole image whole image the pixel value (scalar) at [i,j] whole image, two dimensions ip y-axis band B of three dimensional image subsample in y by S line L of image column C of image subraster of image subraster with subsampling A limited set of coordinate transformations may be specied using image sections, but please observe that transpose is not one of them. The \match all" (asterisk), ip, subsample, index, and range notations shown in the table may be combined in just about any way that makes sense. As a simple example: cl> graph pix[3,10] will graph line 10 of the image PIX. To generate a contour plot of an 800-pixel square image subsampled by a factor of 16 in both dimensions: cl> contour pix[3:16,3:16] To display the fth x 0 z plane of a three dimensional image named cube on frame 1 of the image display device: