Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: Overview of imager tool functions: Up: imager - Module Previous: What improvement to imager are in the works:

Advanced use of imager:

As with all AIPS++ applications, imager is designed to be open: all the results are written to and read from standard AIPS++ table files. This open design of imager also allows the user to try out new methods of processing data. Models may be read into Glish, edited or manipulated via standard Glish facilities, and then written out and used subsequently in imager. Suppose that we want to halve the Stokes I of all pixels with negative Stokes I. The following Glish fragment does the trick:

m:=image('myimage')
shape:=im.shape()
blc:=[1,1,1,1]
trc:=[shape[1],shape[2],1,shape[4]]
a:=m.getchunk(blc,trc)
a[a<0.]*:=0.5
m.putchunk(a,blc)
m.flush()
m.close()


next up previous contents index
Next: Overview of imager tool functions: Up: imager - Module Previous: What improvement to imager are in the works:   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15