exportasdm¶
-
exportasdm
(vis, asdm='', datacolumn='data', archiveid='S0', rangeid='X1', subscanduration='24h', sbduration='2700s', apcorrected=False, verbose=True, showversion=False, useversion='deprecated')[source]¶ Convert a CASA visibility file (MS) into an ALMA or EVLA Science Data Model
[Description] [Examples] [Development] [Details]
- Parameters
vis (path) - Name of input visibility file
asdm (path=’’) - >Name of output ASDM directory (on disk)
datacolumn (string=’data’) - Which data column(s) to process.
archiveid (string=’S0’) - The X0 in uid://X0/X1/X2
rangeid (string=’X1’) - The X1 in uid://X0/X1/X2
subscanduration (string=’24h’) - Maximum duration of a subscan in the output ASDM
sbduration (string=’2700s’) - Maximum duration of a scheduling block (and therefore exec block) in the output ASDM
apcorrected (bool=False) - Data to be marked as having atmospheric phase correction
verbose (bool=True) - Produce log output
showversion (bool=False) - Deprecated: Report the version of ASDM class set being used
useversion (string=’deprecated’) - Deprecated: Selects the version of MS2asdm to be used
- Description
This task serves to convert a CASA visibility file (MS) into an ALMA or EVLA Science Data Model dataset. They are mostly identical and mostly use the general SDM and ALMA ASDM terms interchangibly. A description of the SDM format can be found here.
The main purpose of creating this task was to (a) enable the creation of simulated ASDMs and (b) facilitate the testing of (A)SDM to MS conversion. The user may think of other purposes.
The sbduration parameter controls the number of execution blocks (EBs) into which exportasdm subdivides the visibilities from your input MS. If the total observation time in the MS is shorter than what is given in sbduration, a single EB will be created.
Note concerning ALMA data: exportasdm presently is not able to export from MSs containing WVR data. If you attempt to export such an MS, you will receive an error message saying that you can only export data of processor type “CORRELATOR”. It will also give you the list of SPWs which contain CORRELATOR data. You will then have to split out these SPWs using the task split and run exportasdm on the resulting MS.
Also EVLA data can be exported. Note here that exportasdm does not produce online flags and that a subsequent re-import of the data must be done with online=False.
- Examples
To produce an ASDM named ‘uid___S021_X1418_X1’ using the datacolumn ‘corrected’ in the MS ‘ngc4826.ms’ with minimal log output:
exportasdm(vis=’ngc4826.ms’, asdm=’uid___S021_X1418_X1’, datacolumn=’corrected’, archiveid=’S021’, rangeid=’X1418’, verbose=False)
- Development
No additional development details
- Parameter Details
Detailed descriptions of each function parameter
vis (path)
- Name of input visibility fileDefault: noneExample: vis=’ngc5921.ms’asdm (path='')
- Name of output ASDM directory (on disk)Default: nonedatacolumn (string='data')
- Which data column(s) to use for processing(case-insensitive).Default: ‘corrected’Options: ‘data’, ‘model’, ‘corrected’,‘all’,’float_data’, ‘lag_data’,‘float_data,data’, ‘lag_data,data’Example: datacolumn=’data’NOTE: ‘all’ = whichever of the above that arepresent. If the requested column does not exist,the task will exit with an error.archiveid (string='S0')
- The X0 in uid://X0/X1/X2Default: ‘S0’rangeid (string='X1')
- The X1 in uid://X0/X1/X2Default: ‘X1’subscanduration (string='24h')
- Maximum duration of a subscan in the output ASDMDefault: 24hsbduration (string='2700s')
- Maximum duration of a scheduling block (and thereforeexec block) in the output ASDMDefault: ‘2700s’The sbduration parameter controls the number ofexecution blocks (EBs) into which exportasdmsubdivides the visibilities from your inputMS. If the total observation time in the MS isshorter than what is given in sbduration, asingle EB will be created.apcorrected (bool=False)
- Data to be marked as having atmospheric phase correctionDefault: FalseOptions: False|Trueverbose (bool=True)
- Produce log output?Default: TrueOptions: True|Falseshowversion (bool=False)
- Deprecated. This parameter will be removed in a future release, this is no longer relevant.Report the version of ASDM class set being usedDefault: FalseOptions: True|Falseuseversion (string='deprecated')
- Deprecated. This parameter will be removed in a future release. This is no longer relevant.Selects the version of MS2asdm to be usedDefault: ‘deprecated’Options: deprecated, v3