|
|||
NRAO Home > CASA > CASA Cookbook and User Reference Manual |
|
2.2.4.3 Export using exportuvfits
The exportuvfits task will take a MS and write it out in UVFITS format. The defaults are:
vis = ’’ # Name of input visibility file
fitsfile = ’’ # Name of output UVFITS file)
datacolumn = ’corrected’ # which data to write (data, corrected, model)
field = ’’ # Field name list
spw = ’’ # Spectral window and channel selection
antenna = ’’ # antenna list to select
time = ’’ # time range selection
nchan = -1 # Number of channels to select
start = 0 # Start channel
width = 1 # Channel averaging width (value>1 indicates averaging)
writesyscal = False # Write GC and TY tables
multisource = True # Write in multi-source format
combinespw = True # Combine spectral windows (True for AIPS)
writestation = True # Write station name instead of antenna name
async = False # if True run in the background, prompt is freed
For example:
fitsfile=’NGC5921.split.fits’,
multisource=False)
The MS selection parameters field, spw, antenna, and timerange follow the standard selection syntax described in § 2.3.
ALERT: The nchan, start, and width parameters will be superseded by channel selection in spw. Currently, there is a time parameter rather than timerange.
The datacolumn parameter chooses which data-containing column of the MS (see § 2.1.1) is to be written out to the UV FITS file. Choices are: ’data’, ’corrected’, and ’model’.
There are a number of special parameters that control what is written out. These are mostly here for compatibility with AIPS.
The writesyscal parameter toggles whether GC and TY extension tables are written. These are important for VLBA data, and for JVLA data. ALERT: Not yet available.
The multisource parameter determines whether the UV FITS file is a multi-source file or a single-source file, if you have a single-source MS or choose only a single source. Note: the difference between a single-source and multi-source UVFITS file here is whether it has a source (SU) table and the source ID in the random parameters. Some programs (i.e. difmap) only accept single-source files. If you select more than one source in fields, then the multisource parameter will be overridden to be True regardless.
The combinespw parameter allows, if some conditions are met, exporting all of spectral windows (SpW) as a set of ”IF”s in a single ”FREQID” setup instead of giving each SpW its own FREQID in the FITS file. In this context an IF (Intermediate Frequency) is a specialization of an SpW, where each IF in a UV FITS file must have the same number of channels and polarizations, each channel must have the same width, and each IF must be present (even if flagged) throughout the entire observation. If these conditions are not met the data must be exported using multiple FREQIDs, the UV FITS equivalent of a general SpW. This matters since many (sub)programs will work with multiple IFs, but not multiple FREQIDs. For example, a UV FITS file with multiple FREQIDs can be read by AIPS, but you may find that you have to separate the FREQIDs with SPLIT before you can do very much with them. Therefore combinespw=True should be True if possible. Typically MSes where each band was observed simultaneously can be exported with combinespw=True. MSes where the tuning changed with time, e.g. 10 minutes at 4.8 GHz followed by 15 minutes at 8.4 GHz, should be exported to multiple UV FITS files using spw to select one tuning (set of simultaneous SpWs) per file.
The multisource parameter determines whether the UV FITS file is a multi-source file or a single-source file, if you have a single-source MS or choose only a single source. Note: the difference between a single-source and multi-source UVFITS file here is whether it has a source (SU) table and the source ID in the random parameters. If you select more than one source in fields, then the multisource parameter will be overridden to be True regardless.
The combinespw parameter allows combination of all spectral windows at one time. If True, then all spectral windows must have the same shape. For AIPS to read an exported file, then set combinespw=True.
The writestation parameter toggles the writing of the station name instead of antenna name.
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