from casa_stack_manip import stack_frame_find
class __viewer_class(object):
"viewer() task with local state for created viewer tool"
def __call__(self, infile=None,displaytype=None,channel=None,zoom=None,outfile=None,outscale=None,outdpi=None,outformat=None,outlandscape=None,gui=None):
""" The viewer will display images in raster, contour, vector or
marker form. Images can be blinked, and movies are available
for spectral-line image cubes. For measurement sets, many
display and editing options are available.
viewer "mymeasurementset.ms"
viewer "myrestorefile.rstr"
viewer "myimage.im", "contour"
viewer "'myimage1.im' - 2 * 'myimage2.im'", "lel"
The viewer can be run outside of casapy by typing <casaviewer>.
Executing viewer <viewer> will bring up a display panel
window, which can be resized. If no data file was specified,
a Load Data window will also appear. Click on the desired data
file and choose the display type; the rendered data should appear
A Data Display Options window will also appear. It has drop-down
subsections for related options, most of which are self-explanatory.
The state of the viewer -- loaded data and related display
options -- can be saved in a 'restore' file for later use.
You can provide the restore filename on the command line or
select it from the Load Data window.
See the cookbook for more details on using the viewer.
infile -- Name of file to visualize
example: infile='ngc5921.image'
If no infile is specified the Load Data window
will appear for selecting data.
displaytype -- (optional): method of rendering data
visually (raster, contour, vector or marker).
You can also set this parameter to 'lel' and
provide an lel expression for infile (advanced).
example: displaytype='contour'
Note: there is no longer a filetype parameter; typing of