NRAO Home > CASA > CASA Cookbook and User Reference Manual
3.3.2.5 The plotrange parameter

The plotrange parameter can be used to specify the size of the plot. The format is [xmin, xmax, ymin, ymax]. The units are those on the plot. For example,

   plotrange = [-20,100,15,30]

Note that if xmin=xmax and/or ymin=ymax, then the values will be ignored and a best guess will be made to auto-range that axis.

Unfortunately, the units for the time axis must be in Julian seconds. This is somewhat inconvenient as the usual time parameter is given in Julian days. To calculate the Julian seconds the me.epoch tool can be used. An example: For 02:00 UT on 2012/05/22, the value of MJD seconds can be calculated via

86400*(me.epoch(’utc’,’2012/05/22’)[’m0’][’value’]+2/24.)

which results in 4844368800.0.


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