from casa_stack_manip import stack_frame_find
class __msview_class(object):
"msview() 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 msview will display measurement sets in raster form
Many display and editing options are available.
msview "mymeasurementset.ms"
msview "myrestorefile.rstr"
Executing the msview task 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 msview task -- 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 msview task.
infile -- Name of file to visualize
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).
Note: there is no longer a filetype parameter; typing of
data files is now done automatically.
example: msview infile='my.ms'
obsolete: msview infile='my.ms', filetype='ms'
vi = myf['vi'] if myf.has_key('vi') else None
ving = myf['ving'] if myf.has_key('ving') else None