importuvfits(fitsfile, vis='', antnamescheme='old')¶
Convert a UVFITS file to a CASA visibility data set
This is primarily designed for importing AIPS data into CASA, but also works for other UVFITS data (e.g., MIRIAD).
The current UVFITS specification can be found in AIPS Memo 117.
The antnamescheme parameter specifies the naming scheme for VLA/JVLA/CARMA antennas. The default is “old”. For “old”, antnnea names are numerical, eg “04”. This option exists for backwards compatibility but can lead to ambiguous results when antenna indices are used for data selection. When set to “new”, Antenna names are not strictly numerical, eg “VA04” or “EA04”. With this scheme, data selection via antenna names and indices is non-ambiguous.
A NOTE ON WEIGHTS: importuvfits will generate a WEIGHT_SPECTRUM column in which it will fill the absolute value of the weight associated with each visibility in the uvfits file. Negative weights will have the associated FLAGs set to True. It will compute the associated WEIGHT value for that MS row to be the sum of the absolute values of the associated WEIGHT_SPECTRUM values.
NOTE: Remember to flag the autocorrelations if you do not want them, using the task flagdata with parameter autocorr = true
No additional development details
- Parameter Details
Detailed descriptions of each function parameter
fitsfile (string)- Name of input UV FITS file
vis (string='')- Name of output visibility file (MS)
antnamescheme (string='old')- VLA/EVLA/CARMA only; 'new' or 'old'; 'VA04' or '04' for VLA ant 4