Usage of plotmosaic
Return to directory of Todd's CASA extensions
Also see the casaguide page for this function
Produce a plot of the pointings in an ms with the primary beam FWHM circles and field IDs overlaid.
Usage:
au.plotmosaic(vis, sourceid='', figfile='', coord='relative',
skipsource=-1, doplot=True, help=False, sciencespws=False,
vm='', debug=False, intent='OBSERVE_TARGET#ON_SOURCE',
plotrange=[])
Required parameters:
Optional parameters:
- sourceid: int or string (name or ID)
- figfile: name of the png to produce
- coord: 'relative' or 'absolute'
- skipsource: source ID to avoid
- doplot: if False, then the central field ID is returned as an integer. if True, the a list of values is returned: [central field, maxRA, minRA, minDec, maxDec] where the latter 4 values are in units of arcsec relative to the center.
- sciencespws: if True, then only use the science spws
- vm: a ValueMapping structure (obsolete, only for CASA < 4.1)
- debug: if True, print extra messages
- intent: determine the source IDs to use from this intent (if sourceid='')
- plotrange: for the 'relative' option only: [x0,x1,y0,y1]
Examples
CASA <4>: au.plotMosaic("30dor.cal.ms",sourceid='30 Doradus',coord='abs',figfile='/tmp/absolute.png')
Field IDs with matching source ID = [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23]
Got longitude = -67.755 deg
Mean frequency = 225.180484 GHz
Found 24 pointings
Field 12 is closest to the center of the area covered (3.3 arcsec away).
Wrote file = /tmp/absolute.png
CASA <4>: au.plotMosaic("30dor.cal.ms",sourceid='30 Doradus',coord='rel',figfile='/tmp/relative.png')
Field IDs with matching source ID = [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23]
Got longitude = -67.755 deg
Mean frequency = 225.180484 GHz
Found 24 pointings
Field 12 is closest to the center of the area covered (3.3 arcsec away).
Wrote file = /tmp/relative.png
--
ToddHunter - 2011-10-07