NRAO Home > CASA > CASA Task Reference Manual

0.1.120 viewer

Requires:

Synopsis
View an image or visibility data set

Description

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.

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 on the display panel.

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.



Arguments





Inputs

infile

(Optional) Name of file to visualize.

allowed:

string

Default:

displaytype

(Optional) Type of visual rendering (raster, contour, vector or marker). lel if an lel expression is given for infile (advanced).

allowed:

string

Default:

raster

channel

(Optional) access a specific channel in the image cube

allowed:

int

Default:

0

zoom

(Optional) zoom in/out by increments

allowed:

int

Default:

1

outfile

(Optional) name of the output file to generate

allowed:

string

Default:

outscale

(Optional) amount to scale output bitmap formats (non-PS, non-PDF)

allowed:

double

Default:

1.0

outdpi

(Optional) output DPI for PS/PDF

allowed:

int

Default:

300

outformat

(Optional) format of the output e.g. jpg or pdf (this is overridden by the output files extension

allowed:

string

Default:

jpg

outlandscape

(Optional) should the output mode be landscape (PS or PDF)

allowed:

bool

Default:

False

gui

(Optional) Display the panel in a GUI.

allowed:

bool

Default:

True

Returns
void

Example

 
 
examples of usage:  
 
viewer  
viewer "myimage.im"  
viewer "mymeasurementset.ms"  
viewer "myrestorefile.rstr"  
 
viewer "myimage.im", "contour"  
 
viewer "’myimage1.im’ - 2 * ’myimage2.im’", "lel"  
 
 
Keyword arguments:  
infile -- Name of file to visualize  
default: ’’  
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).  
default: ’raster’  
example: displaytype=’contour’  
 
Note: the filetype parameter is optional; typing of  
data files is now inferred:  
        example:  viewer infile=’my.im’  
obsolete: viewer infile=’my.im’, filetype=’raster’  
        the filetype is still used to load contours, etc.  
 


More information about CASA may be found at the CASA web page

Copyright © 2010 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search