casa
$Rev:20696$
|
Fits and subtracts or models the continuum in spectra. More...
#include <MSContinuumSubtractor.h>
Public Member Functions | |
MSContinuumSubtractor (MeasurementSet &ms) | |
Constructor. | |
MSContinuumSubtractor & | operator= (MSContinuumSubtractor &other) |
Assignment (only copies reference to MS, need to reset selection etc) | |
~MSContinuumSubtractor () | |
Destructor. | |
void | setField (const String &field) |
Set the required field Ids. | |
void | setFields (const Vector< Int > &fieldIds) |
void | setFitSpw (const String &fitspw) |
Set the channels to use in the fit. | |
void | setSubSpw (const String &subspw) |
void | setDataDescriptionIds (const Vector< Int > &ddIds) |
Set the required spws (ddids) | |
void | setSolutionInterval (Float solInt) |
Set the solution interval in seconds, the value zero implies scan averaging. | |
void | setSolutionInterval (String solInt) |
Set the solution interval in seconds, the value zero implies scan averaging. | |
void | setOrder (Int order) |
Set the order of the fit (1=linear) | |
void | setMode (const String &mode) |
Set the processing mode: subtract, model or replace. | |
void | subtract () |
Do the subtraction (or save the model) | |
Private Attributes | |
MeasurementSet * | ms_p |
Pointer to MS. | |
Vector< Int > | itsDDIds |
DataDescription Ids to process. | |
Vector< Int > | itsFieldIds |
Field Ids to process. | |
Matrix< Int > | itsFitChans |
Channels to use in fit. | |
Matrix< Int > | itsSubChans |
Channels to subtract from. | |
Float | itsSolInt |
Solution interval for fit. | |
Int | itsOrder |
Order of the fit. | |
String | itsMode |
Processing mode. | |
Int | nSpw_ |
Number of spws. |
Fits and subtracts or models the continuum in spectra.
Public interface
This class's main aim is to subtract the continuum from spectral line data.
Spectral line observations often contain continuum emission which is present in all channels (often with small slope across band). This class fits this continuum and subtracts it, replacing either the corrected data or the model data column.
MS inMS(fileName); MSContinuumSubtractor mssub(inMS); mssub.setDataDescriptionIds(ddIds); mssub.setFields(fieldIds); mssub.setSolutionInterval(10.0); mssub.setMode("subtract"); mssub.subtract();
A MSContinuumSubtractor
object is constructed and the continuum is subtracted with a 10.0s averaging time for the fit.
This class replaces existing functionality at the glish level, in an attempt to speed up the continuum subtraction process.
Definition at line 83 of file MSContinuumSubtractor.h.
Constructor.
Destructor.
MSContinuumSubtractor& casa::MSContinuumSubtractor::operator= | ( | MSContinuumSubtractor & | other | ) |
Assignment (only copies reference to MS, need to reset selection etc)
void casa::MSContinuumSubtractor::setDataDescriptionIds | ( | const Vector< Int > & | ddIds | ) |
Set the required spws (ddids)
void casa::MSContinuumSubtractor::setField | ( | const String & | field | ) |
Set the required field Ids.
void casa::MSContinuumSubtractor::setFields | ( | const Vector< Int > & | fieldIds | ) |
void casa::MSContinuumSubtractor::setFitSpw | ( | const String & | fitspw | ) |
Set the channels to use in the fit.
void casa::MSContinuumSubtractor::setMode | ( | const String & | mode | ) |
Set the processing mode: subtract, model or replace.
void casa::MSContinuumSubtractor::setOrder | ( | Int | order | ) |
Set the order of the fit (1=linear)
void casa::MSContinuumSubtractor::setSolutionInterval | ( | Float | solInt | ) |
Set the solution interval in seconds, the value zero implies scan averaging.
void casa::MSContinuumSubtractor::setSolutionInterval | ( | String | solInt | ) |
Set the solution interval in seconds, the value zero implies scan averaging.
void casa::MSContinuumSubtractor::setSubSpw | ( | const String & | subspw | ) |
Do the subtraction (or save the model)
Vector<Int> casa::MSContinuumSubtractor::itsDDIds [private] |
DataDescription Ids to process.
Definition at line 124 of file MSContinuumSubtractor.h.
Vector<Int> casa::MSContinuumSubtractor::itsFieldIds [private] |
Field Ids to process.
Definition at line 126 of file MSContinuumSubtractor.h.
Matrix<Int> casa::MSContinuumSubtractor::itsFitChans [private] |
Channels to use in fit.
Definition at line 128 of file MSContinuumSubtractor.h.
String casa::MSContinuumSubtractor::itsMode [private] |
Processing mode.
Definition at line 136 of file MSContinuumSubtractor.h.
Int casa::MSContinuumSubtractor::itsOrder [private] |
Order of the fit.
Definition at line 134 of file MSContinuumSubtractor.h.
Float casa::MSContinuumSubtractor::itsSolInt [private] |
Solution interval for fit.
Definition at line 132 of file MSContinuumSubtractor.h.
Matrix<Int> casa::MSContinuumSubtractor::itsSubChans [private] |
Channels to subtract from.
Definition at line 130 of file MSContinuumSubtractor.h.
MeasurementSet* casa::MSContinuumSubtractor::ms_p [private] |
Pointer to MS.
Definition at line 122 of file MSContinuumSubtractor.h.
Int casa::MSContinuumSubtractor::nSpw_ [private] |
Number of spws.
Definition at line 138 of file MSContinuumSubtractor.h.