|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
calibrater.delmod - Function
2.1.1 Delete model data representations in the MS.
Description
This method can be used to delete the model visibility data representations in
the MS. The ’otf’ representation is the new (as of v3.4) ’scratch-less’ model
data, stored as keywords in the MS header containing model data formation
instructions. It is generated by the im tool (setjy, ft, and clean methods;
usescratch=F in im.open), and if present, overrides the old-fashioned
MODEL_DATA column (if present). If a user wishes to use the
MODEL_DATA column _after_ having operated with the ’otf’ representation,
this method can be used to delete the ’otf’ represenatation to make the
MODEL_DATA column visible. (Create the MODEL_DATA column by using
usescratch=T in the im tool, or by running the cb.open with addmodel=T.)
If otf=T, the user may selectively remove only a selection of fields model from the MS by specifying the field parameter. Similarly if the field parameter is specified, selected spws model for those fields may be deleted by specifying the spw.
For convenience, this method also provides a means for deleting the MODEL_DATA column by setting scr=T.
Arguments
Inputs |
| ||
otf |
| If T, delete the otf model data keywords
| |
| allowed: | bool | |
| Default: | false |
|
field |
| Select on field | |
| allowed: | any |
|
| Default: | variant
|
|
spw |
| Select on spw only if field is defined
| |
| allowed: | any |
|
| Default: | variant
|
|
scr |
| If T, delete the MODEL_DATA column
| |
| allowed: | bool |
|
| Default: | false |
|
bool
Example
cb.open(’ngc5921.ms’);
cb.delmod(otf=T,scr=F); # delete only the otf model for all fields
cb.solve();
cb.open(’n4826.ms’)
cb.delmod(otf=T, field=’1’)
#delete otf model of field 1 only, all other fields model are untouched
#if present
cb.open(’n4826.ms’)
cb.delmod(otf=T, field=’1’, spw=’2’)
#delete otf model of field 1 and spectralwindow 2 only.
####NOTE doing:
cb.delmod(otf=T, field=’’, spw=’2’)
#will delete all otf models and spw will be ignored
__________________________________________________________________
More information about CASA may be found at the
CASA web page
Copyright © 2016 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