importmiriad(mirfile, vis='', tsys=False, spw=[- 1], vel='', linecal=False, wide='', debug=0)¶
Convert a Miriad visibility file into a CASA MeasurementSet
mirfile (string) - Name of input Miriad visibility file
vis (string=’’) - Name of output MeasurementSet
tsys (bool=False) - Use the Tsys to set the visibility weights
spw (intArray=[-1]) - Select spectral window/channels
vel (string=’’) - Select velocity reference (TOPO,LSRK,LSRD)
linecal (bool=False) - (CARMA) Apply line calibration
wide (intArray=’’) - (CARMA) Select wide window averages
debug (int=0) - Display increasingly verbose debug messages
The task importmiriad allows one to import visibilities in the MIRIAD data format to be converted to a MeasurementSet. The task has mainly been tested on data from the ATCA and CARMA telescopes and the inputs are:
#In CASA # importmiriad :: Convert a Miriad visibility file into a CASA MeasurementSet mirfile = '' # Name of input Miriad visibility file vis = '' # Name of output MeasurementSet tsys = False # Use the Tsys to set the visibility # weights spw = [-1] # Select spectral windows, default is # all vel = '' # Select velocity reference # (TOPO,LSRK,LSRD) linecal = False # (CARMA) Apply line calibration wide =  # (CARMA) Select wide window averages debug = 0 # Display increasingly verbose debug # messages
The mirfile parameter specifies a single MIRIAD visibility dataset which must have any calibration done in MIRIAD already applied to it. MIRIAD calibration tables are usually applied on the fly within MIRIAD; such steps (e.g., uvaver) need to be taken within MIRIAD such that your MIRIAD visibilities have the calibration permanently applied.
Set the tsys parameter to True to change the visibility weights from the MIRIAD default (usually the integration time) to the inverse of the noise variance using the recorded system temperature.
The spw parameter can be used to select all or some of the simultaneous spectral windows from the input file. Use the default of ’all’ for all the data or use e.g., spw=’0,2’ to select the first and third window.
The vel parameter can be used to set the output velocity frame reference. For ATCA this defaults to ’TOPO’ and for CARMA it defaults to ’LSRK’. Only change this if your data comes out with the incorrect velocity.
The linecal parameter is only useful for CARMA data and can apply the line calibration if it is stored with the MIRIAD data.
The wide parameter is only useful for CARMA data and can select which of the wide-band channels should be loaded.
Reading a MIRIAD file and converting it into a MeasurementSet
#In CASA importmiriad(mirfile='ngc5921.uv', vis='ngc5921.ms',tsys=True)
We read the MIRIAD dataset ngc5921.uv and converted it to a MeasurementSet, using the recorded Tsys values to set the weights.
No additional development details
- Parameter Details
Detailed descriptions of each function parameter
mirfile (string)- Name of input Miriad visibility fileDefault: noneExample: mirfile=’mydata.uv’
vis (string='')- Name of output MeasurementSetDefault: noneExample: vis=’mydata.ms’
tsys (bool=False)- Use the Tsys to set the visibility weightsDefault: FalseOptions: False|True
spw (intArray=[-1])- Select spectral window/channelsDefault: ‘’ (all spectral windows and channels)Examples:spw=’0~2,4’; spectral windows 0,1,2,4 (all channels)spw=’<2’; spectral windows less than 2 (i.e. 0,1)spw=’0:5~61’; spw 0, channels 5 to 61spw=’0,10,3:3~45’; spw 0,10 all channels, spw3 - chans 3 to 45.spw=’0~2:2~6’; spw 0,1,2 with channels 2through 6 in each.spw = ‘*:3~64’ channels 3 through 64 for all sp id’sspw = ‘ :3~64’ will NOT work.
vel (string='')- Select velocity referenceDefault: telescope dependent, ATCA -> TOPO, CARMA-> LSRKOptions: TOPO|LSRK|LSRDExample: vel=’LSRK’
linecal (bool=False)- (CARMA) Apply line calibrationDefault: FalseOptions: False|TrueOnly useful for CARMA data
wide (intArray='')- (CARMA) Select wide window averagesSelect which of the wide-band channels should be loadedOnly useful for CARMA data
debug (int=0)- Display increasingly verbose debug messagesDefault: 0Example: debug=1