delmod(vis, otf=True, field='', scr=False)¶
Deletes model representations in the MS
delmod is a task to remove MODEL data from MeasurementSets.
The MODEL can be either the scratch-less virtual model (stored in the MS SOURCE sub-table), and/or as model visibilities the MODEL_DATA column (e.g., written by the tasks setjy, ft, tclean). In cases where both representations are present, the virtual model is used over the scratch column model and there may be a need to remove the virtual model to allow the MODEL_DATA column to take effect.
The input MeasurementSet.
otf=True will remove the virtual model informatiom from the MS SOURCE sub-table.
otf=True expandable parameters
The field ID or name to be selected.
NOTE: Currently the field selection only applies to the virtual model with otf=True, not the scratch MODEL_DATA column (scr=True)
scr=True will remove the scratch column MODEL_DATA.
To delete the on-the-fly model data from a MeasurementSet:
delmod(vis='myfile.ms', otf=True, scr=False)
No additional development details
- Parameter Details
Detailed descriptions of each function parameter
vis (path)- Name of input visibility file (MS)
otf (bool=True)- Delete the on-the-fly model data keywordsDefault=TrueThe ‘otf’ representation is the ‘scratch-less’model data, stored as keywords in the MS headercontaining model data formation instructions. Itis generated by the setjy, ft, and tclean tasks(usescratch=False), and if present, overrides theMODEL_DATA column (if present). If a user wishesto use the MODEL_DATA column _after_ havingoperated with the ‘otf’ representation, this taskcan be used to delete the ‘otf’ represenatationto make the MODEL_DATA column visible. (Createthe MODEL_DATA column by using usescratch=True insetjy, ft, or clean; or by running the clearcaltask with addmodel=True.)
field (string='')- Select field using field id(s) or field name(s)Subparameter of otfDefault: ‘’ (all fields’ models will be deleted)
scr (bool=False)- Delete the MODEL_DATA scr col (if it exists)Default: FalseNote: it is not possible to delete the MODEL_DATAcolumn per field.If otf=F and scr=F, delmod will provide a listingof the header field records.