Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | ms | |
Tool | ms |
fldid | in | Desired fields to fit | |
Allowed: | Vector of integers | ||
Default: | no default | ||
spwid | in | Desired spectral windows to fit | |
Allowed: | Vector of integers | ||
Default: | all | ||
chans | in | Range of channels to fit | |
Allowed: | Vector of integers | ||
Default: | all | ||
solint | in | Averaging time (s) | |
Allowed: | Float | ||
Default: | 0.0 (scans) | ||
fitorder | in | Polynomial order for fit | |
Allowed: | Integer | ||
Default: | 0 | ||
mode | in | Desired use of fit model (see below) | |
Allowed: | String | ||
Default: | 'subtract' |
It is important to start the ms tool with readonly=F so that changes to the dataset will be allowed (see example below).
For now, the only way to recover the un-subtracted CORRECTED_DATA column is to use calibrater.correct() again.
Note that the MODEL_DATA and CORRECTED_DATA columns must be present for continuumsub to work correctly. The function will warn the user if they are not present, and abort. To add these scratch columns (for now), done the ms tool, then start a calibrater or an imager tool, which will add the scratch columns. Then restart the ms tool, and try continuumsub again.
Options for shifting known bright sources to the phase center and for editing based on the rms fit will be added in the near future.
include 'ms.g' myms := ms('ngc5921.ms',readonly=F); # writable! myms.continuumsub(fldid=3,spwid=1,chans=[5:9,50:59], solint=0.0,fitorder=1,mode='sub'); myms.done();This example will fit a line to channels 5-9 and 50-59 in spectral window 1 in each scan-averaged spectrum for field 3, and store the result in the MODEL_DATA column and subtract it from the CORRECTED_DATA column.