MSTransformDataHandler definition. More...
#include <MSTransformDataHandler.h>
Public Types | |
enum | asdmStManUseAlternatives { DONT, USE_FOR_DATA, USE_FOR_DATA_WEIGHT_SIGMA_FLAG } |
Public Member Functions | |
MSTransformDataHandler (String &theMS, Table::TableOption option, Bool virtualModelCol=False, Bool virtualCorrectedCol=False, Bool reindex=True) | |
MSTransformDataHandler (MeasurementSet &ms, Bool virtualModelCol=False, Bool virtualCorrectedCol=False, Bool reindex=True) | |
~MSTransformDataHandler () | |
Bool | setmsselect (const String &spw="", const String &field="", const String &baseline="", const String &scan="", const String &uvrange="", const String &taql="", const Vector< Int > &step=Vector< Int >(1, 1), const String &subarray="", const String &correlation="", const String &intent="", const String &obs="", const String &feed="") |
Selection method using msselection syntax. | |
Bool | selectSource (const Vector< Int > &fieldid) |
Select source or field. | |
Bool | selectSpw (const String &spwstr, const Vector< Int > &steps) |
Select spw and channels for each spw. | |
void | selectAntenna (const Vector< Int > &antennaids, const Vector< String > &antennaSel) |
Select Antennas to split out. | |
void | selectArray (const String &subarray) |
Select array IDs to use. | |
Bool | selectCorrelations (const String &corrstr) |
Setup polarization selection (for now, only from available correlations - no Stokes transformations. | |
void | selectTime (Double timeBin=-1.0, String timerng="") |
Select time parameters. | |
Bool | makeMSBasicStructure (String &msname, String &whichDataCol, const Vector< Int > &tileShape=Vector< Int >(1, 0), const String &combine="", Table::TableOption option=Table::New) |
Method to make the basic structure of the MS. | |
Bool | isAllColumns (const Vector< MS::PredefinedColumns > &colNames) |
Bool | makeSelection () |
Method that returns the selected ms (?! - but it's Boolean - RR). | |
Bool | fillSubTables (const Vector< MS::PredefinedColumns > &colNames) |
Sub-table fillers. | |
Bool | fillFieldTable () |
Bool | fillDDTables () |
Bool | fillPolTable () |
Bool | fillDDITable () |
Bool | fillSPWTable () |
void | relabelSources () |
Sets up sourceRelabel_p for mapping input SourceIDs (if any) to output ones. | |
void | copySubtable (const String &tabName, const Table &inTab, const Bool noRows=False) |
Adds and copies inTab to msOut_p without any filtering. | |
Bool | copyPointing () |
void | setupNewPointing () |
Sets up the stub of a POINTING, enough to create an MSColumns. | |
Bool | copySource () |
Bool | copyAntenna () |
Bool | copyFeed () |
Bool | copyFlag_Cmd () |
Bool | copyHistory () |
Bool | copyObservation () |
Bool | copyProcessor () |
Bool | copyState () |
Bool | copySyscal () |
Bool | copyWeather () |
void | copyMainTableKeywords (TableRecord &outKeys, const TableRecord &inKeys) |
Int | getProcessorId (Int dataDescriptionId, String msname) |
Bool | filterOptSubtable (const String &subtabname) |
This falls between copyGenericSubtables() and the copiers for standard sub-tables like copyFeed(). | |
Bool | copyGenericSubtables () |
MeasurementSet * | getInputMS () |
Accesors for the MS objects. | |
MeasurementSet * | getSelectedInputMS () |
MeasurementSet * | getOutputMS () |
ROMSColumns * | getSelectedInputMSColumns () |
MSColumns * | getOutputMSColumns () |
map< Int, Int > & | getStateRemapper () |
Accesors for the Re-mapper objects. | |
Vector< Int > & | getAntennaRemapper () |
map< Int, vector< Int > > & | getDroppedChannelsMap () |
map< Int, map< Int, vector < Int > > > & | getSelectedChannelsMap () |
void | setVirtualModelCol (Bool virtualModelCol) |
Accesors for additional parameters. | |
void | setVirtualCorrectedCol (Bool virtualCorrectedCol) |
void | setReindex (Bool reindex) |
Static Public Member Functions | |
static const Vector < MS::PredefinedColumns > & | parseColumnNames (String colNameList) |
Declared static because it's used in setupMS(). | |
static const Vector < MS::PredefinedColumns > & | parseColumnNames (String colNameList, const MeasurementSet &ms, Bool virtualModelCol=False, Bool virtualCorrectedCol=False) |
This version uses the MeasurementSet to check what columns are present, i.e. | |
static uInt | dataColStrToEnums (const String &col, Vector< MS::PredefinedColumns > &colvec) |
Helper function for parseColumnNames(). | |
static std::set< Int > | findBadSpws (MeasurementSet &ms, Vector< Int > spwv) |
Returns the set (possibly empty) of spectral windows that are in SPW but not listed in ms's DATA_DESCRIPTION sub-table. | |
static Bool | pickAntennas (Vector< Int > &selected_antennaids, Vector< String > &selected_antenna_strs, const Vector< Int > &antennaids, const Vector< String > &antennaSel) |
Helper function for selectAntenna(). | |
static Bool | getCorrMaps (MSSelection &mssel, const MeasurementSet &ms, Vector< Vector< Int > > &outToIn, const Bool areSelecting=false) |
Fills outToIn[pol] with a map from output correlation index to input correlation index, for each input polID pol. | |
static MeasurementSet * | setupMS (const String &msname, const Int nchan, const Int npol, const String &telescop, const Vector< MS::PredefinedColumns > &colNamesTok, const Int obstype=0, const Bool compress=False, const asdmStManUseAlternatives asdmStManUse=DONT, Table::TableOption option=Table::New) |
This sets up a default new ms Declared static as it can be (and is) called directly from outside Therefore it is not dependent on any member variable. | |
static MeasurementSet * | setupMS (const String &msname, const Int nchan, const Int npol, const Vector< MS::PredefinedColumns > &colNamesTok, const Vector< Int > &tileShape=Vector< Int >(1, 0), const Bool compress=False, const asdmStManUseAlternatives asdmStManUse=DONT, Table::TableOption option=Table::New) |
Same as above except allowing manual tileshapes. | |
static Bool | mustConvertToData (const uInt nTok, const Vector< MS::PredefinedColumns > &datacols) |
The output MS must have (at least?) 1 of DATA, FLOAT_DATA, or LAG_DATA. | |
static void | createSubtables (MeasurementSet &ms, Table::TableOption option) |
A customized version of MS::createDefaultSubtables(). | |
static uInt | addOptionalColumns (const Table &inTab, Table &outTab, const Bool beLazy=false) |
Add optional columns to outTab if present in inTab and possColNames. | |
static void | make_map (std::map< Int, Int > &mapper, const Vector< Int > &inv) |
Sets mapper to to a map from the distinct values of inv, in increasing order, to 0, 1, 2, . | |
static Bool | mergeSpwSubTables (Vector< String > filenames) |
To consolidate several sub-tables when dealing with MMS. | |
static Bool | mergeDDISubTables (Vector< String > filenames) |
static Bool | mergeFeedSubTables (Vector< String > filenames, Vector< uInt > mapSubmsSpwid) |
static Bool | mergeSourceSubTables (Vector< String > filenames, Vector< uInt > mapSubmsSpwid) |
static Bool | mergeSyscalSubTables (Vector< String > filenames, Vector< uInt > mapSubmsSpwid) |
static Bool | mergeFreqOffsetTables (Vector< String > filenames, Vector< uInt > mapSubmsSpwid) |
static Bool | mergeCalDeviceSubtables (Vector< String > filenames, Vector< uInt > mapSubmsSpwid) |
static Bool | mergeSysPowerSubtables (Vector< String > filenames, Vector< uInt > mapSubmsSpwid) |
template<class T > | |
static Bool | columnOk (ArrayColumn< T > column) |
----------------------------------------------------------------------- | |
template<class T > | |
static Bool | columnOk (ScalarColumn< T > column) |
----------------------------------------------------------------------- | |
Protected Member Functions | |
Bool | copyEphemerisTable (MSFieldColumns &msField) |
copy ephemeris table and reindex field table if requested | |
Protected Attributes | |
MeasurementSet | ms_p |
Initialized* by ctors. | |
MeasurementSet | mssel_p |
MSColumns * | msc_p |
ROMSColumns * | mscIn_p |
Bool | keepShape_p |
Bool | antennaSel_p |
same shape as the corresponding input one. | |
Double | timeBin_p |
String | scanString_p |
String | intentString_p |
String | obsString_p |
String | uvrangeString_p |
String | taqlString_p |
String | feedString_p |
String | timeRange_p |
String | arrayExpr_p |
String | corrString_p |
String | combine_p |
Int | fitorder_p |
scan #, observation, and/or state ID? Must be lowercase at all times. | |
String | fitspw_p |
If < 0 (default), continuum subtraction is not done. | |
String | fitoutspw_p |
MeasurementSet | msOut_p |
continuum subtraction. | |
Vector< Int > | spw_p |
Vector< Int > | spw_uniq_p |
Vector< Int > | nchan_p |
Vector< Int > | totnchan_p |
Vector< Int > | chanStart_p |
Vector< Int > | chanEnd_p |
Vector< Int > | chanStep_p |
Vector< Int > | widths_p |
input channel will be used. | |
Vector< Int > | ncorr_p |
Vector< Int > | inNumChan_p |
Vector< Int > | inNumCorr_p |
map< Int, vector< Int > > | spwDropChannelMap_p |
map< Int, map< Int, vector < Int > > > | spwSelectedChannelMap_p |
Vector< Int > | fieldid_p |
Vector< Int > | spwRelabel_p |
Vector< Int > | fieldRelabel_p |
Vector< Int > | sourceRelabel_p |
Vector< Int > | oldDDSpwMatch_p |
Vector< String > | antennaSelStr_p |
Vector< Int > | antennaId_p |
Vector< Int > | antIndexer_p |
Vector< Int > | antNewIndex_p |
Vector< Int > | selObsId_p |
Vector< Int > | polID_p |
Vector< Int > | spw2ddid_p |
Vector< Vector< Int > > | inPolOutCorrToInCorrMap_p |
inCorrInd = outPolCorrToInCorrMap_p[polID_p[ddID]][outCorrInd] | |
std::map< Int, Int > | stateRemapper_p |
Vector< Vector< Slice > > | chanSlices_p |
Vector< Slice > | corrSlice_p |
Vector< Vector< Slice > > | corrSlices_p |
Matrix< Double > | selTimeRanges_p |
Bool | virtualModelCol_p |
Bool | virtualCorrectedCol_p |
Bool | reindex_p |
MSTransformDataHandler definition.
Definition at line 49 of file MSTransformDataHandler.h.
Definition at line 54 of file MSTransformDataHandler.h.
casa::MSTransformDataHandler::MSTransformDataHandler | ( | String & | theMS, | |
Table::TableOption | option, | |||
Bool | virtualModelCol = False , |
|||
Bool | virtualCorrectedCol = False , |
|||
Bool | reindex = True | |||
) |
casa::MSTransformDataHandler::MSTransformDataHandler | ( | MeasurementSet & | ms, | |
Bool | virtualModelCol = False , |
|||
Bool | virtualCorrectedCol = False , |
|||
Bool | reindex = True | |||
) |
casa::MSTransformDataHandler::~MSTransformDataHandler | ( | ) |
static uInt casa::MSTransformDataHandler::addOptionalColumns | ( | const Table & | inTab, | |
Table & | outTab, | |||
const Bool | beLazy = false | |||
) | [static] |
Add optional columns to outTab if present in inTab and possColNames.
beLazy should only be true if outTab is in its default state. Returns the number of added columns.
static Bool casa::MSTransformDataHandler::columnOk | ( | ScalarColumn< T > | column | ) | [inline, static] |
-----------------------------------------------------------------------
----------------------------------------------------------------------- template <class t>=""> Bool MSTransformDataHandler::columnOk (ScalarColumn<T> column)
Definition at line 280 of file MSTransformDataHandler.h.
References casacore::False, and casacore::True.
static Bool casa::MSTransformDataHandler::columnOk | ( | ArrayColumn< T > | column | ) | [inline, static] |
-----------------------------------------------------------------------
----------------------------------------------------------------------- template <class t>=""> Bool MSTransformDataHandler::columnOk (ArrayColumn<T> column)
jagonzal (CAS-6206): ndimColumn only returns >0 is there is the array column has fixed size
Definition at line 260 of file MSTransformDataHandler.h.
References casacore::False, and casacore::True.
Bool casa::MSTransformDataHandler::copyAntenna | ( | ) |
Bool casa::MSTransformDataHandler::copyEphemerisTable | ( | MSFieldColumns & | msField | ) | [protected] |
copy ephemeris table and reindex field table if requested
Bool casa::MSTransformDataHandler::copyFeed | ( | ) |
Bool casa::MSTransformDataHandler::copyFlag_Cmd | ( | ) |
Bool casa::MSTransformDataHandler::copyGenericSubtables | ( | ) |
Bool casa::MSTransformDataHandler::copyHistory | ( | ) |
void casa::MSTransformDataHandler::copyMainTableKeywords | ( | TableRecord & | outKeys, | |
const TableRecord & | inKeys | |||
) |
Bool casa::MSTransformDataHandler::copyObservation | ( | ) |
Bool casa::MSTransformDataHandler::copyPointing | ( | ) |
Bool casa::MSTransformDataHandler::copyProcessor | ( | ) |
Bool casa::MSTransformDataHandler::copySource | ( | ) |
Bool casa::MSTransformDataHandler::copyState | ( | ) |
void casa::MSTransformDataHandler::copySubtable | ( | const String & | tabName, | |
const Table & | inTab, | |||
const Bool | noRows = False | |||
) |
Adds and copies inTab to msOut_p without any filtering.
tabName is the table "type", i.e. POINTING or SYSPOWER without the preceding path.
If noRows is True, the structure will be setup but no rows will be copied (useful for filtering).
Bool casa::MSTransformDataHandler::copySyscal | ( | ) |
Bool casa::MSTransformDataHandler::copyWeather | ( | ) |
static void casa::MSTransformDataHandler::createSubtables | ( | MeasurementSet & | ms, | |
Table::TableOption | option | |||
) | [static] |
A customized version of MS::createDefaultSubtables().
static uInt casa::MSTransformDataHandler::dataColStrToEnums | ( | const String & | col, | |
Vector< MS::PredefinedColumns > & | colvec | |||
) | [static] |
Helper function for parseColumnNames().
Converts col to a list of MS::PredefinedColumnss, and returns the # of recognized data columns. static because parseColumnNames() is static.
Bool casa::MSTransformDataHandler::fillDDITable | ( | ) |
Bool casa::MSTransformDataHandler::fillDDTables | ( | ) |
Bool casa::MSTransformDataHandler::fillFieldTable | ( | ) |
Bool casa::MSTransformDataHandler::fillPolTable | ( | ) |
Bool casa::MSTransformDataHandler::fillSPWTable | ( | ) |
Bool casa::MSTransformDataHandler::fillSubTables | ( | const Vector< MS::PredefinedColumns > & | colNames | ) |
Sub-table fillers.
Bool casa::MSTransformDataHandler::filterOptSubtable | ( | const String & | subtabname | ) |
This falls between copyGenericSubtables() and the copiers for standard sub-tables like copyFeed().
It is for optional sub-tables like CALDEVICE and SYSPOWER which can be watched for by name and may need their ANTENNA_ID and SPECTRAL_WINDOW_ID columns re-mapped. (Technically FEED_ID, too, if split ever starts re-mapping feeds.)
It must be called BEFORE copyGenericSubtables()!
static std::set<Int> casa::MSTransformDataHandler::findBadSpws | ( | MeasurementSet & | ms, | |
Vector< Int > | spwv | |||
) | [static] |
Returns the set (possibly empty) of spectral windows that are in SPW but not listed in ms's DATA_DESCRIPTION sub-table.
(This happens with certain calibration/hardware setups.)
Vector<Int>& casa::MSTransformDataHandler::getAntennaRemapper | ( | ) | [inline] |
Definition at line 306 of file MSTransformDataHandler.h.
References antNewIndex_p.
static Bool casa::MSTransformDataHandler::getCorrMaps | ( | MSSelection & | mssel, | |
const MeasurementSet & | ms, | |||
Vector< Vector< Int > > & | outToIn, | |||
const Bool | areSelecting = false | |||
) | [static] |
Fills outToIn[pol] with a map from output correlation index to input correlation index, for each input polID pol.
It does not yet check the appropriateness of the correlation selection string, so ignore the return value for now. outToIn[pol] defaults to an empty Vector if no correlations are selected for pol. That is not the same as the default "select everything in ms".
map<Int, vector<Int> >& casa::MSTransformDataHandler::getDroppedChannelsMap | ( | ) | [inline] |
Definition at line 307 of file MSTransformDataHandler.h.
References spwDropChannelMap_p.
MeasurementSet* casa::MSTransformDataHandler::getInputMS | ( | ) | [inline] |
Accesors for the MS objects.
Definition at line 298 of file MSTransformDataHandler.h.
References ms_p.
MeasurementSet* casa::MSTransformDataHandler::getOutputMS | ( | ) | [inline] |
Definition at line 300 of file MSTransformDataHandler.h.
References msOut_p.
MSColumns* casa::MSTransformDataHandler::getOutputMSColumns | ( | ) | [inline] |
Definition at line 302 of file MSTransformDataHandler.h.
References msc_p.
Int casa::MSTransformDataHandler::getProcessorId | ( | Int | dataDescriptionId, | |
String | msname | |||
) |
map<Int,map < Int, vector<Int> > >& casa::MSTransformDataHandler::getSelectedChannelsMap | ( | ) | [inline] |
Definition at line 308 of file MSTransformDataHandler.h.
References spwSelectedChannelMap_p.
MeasurementSet* casa::MSTransformDataHandler::getSelectedInputMS | ( | ) | [inline] |
Definition at line 299 of file MSTransformDataHandler.h.
References mssel_p.
ROMSColumns* casa::MSTransformDataHandler::getSelectedInputMSColumns | ( | ) | [inline] |
Definition at line 301 of file MSTransformDataHandler.h.
References mscIn_p.
map<Int, Int>& casa::MSTransformDataHandler::getStateRemapper | ( | ) | [inline] |
Accesors for the Re-mapper objects.
Definition at line 305 of file MSTransformDataHandler.h.
References stateRemapper_p.
Bool casa::MSTransformDataHandler::isAllColumns | ( | const Vector< MS::PredefinedColumns > & | colNames | ) |
static void casa::MSTransformDataHandler::make_map | ( | std::map< Int, Int > & | mapper, | |
const Vector< Int > & | inv | |||
) | [static] |
Sets mapper to to a map from the distinct values of inv, in increasing order, to 0, 1, 2, .
.., mapper.size() - 1.
Bool casa::MSTransformDataHandler::makeMSBasicStructure | ( | String & | msname, | |
String & | whichDataCol, | |||
const Vector< Int > & | tileShape = Vector< Int >(1, 0) , |
|||
const String & | combine = "" , |
|||
Table::TableOption | option = Table::New | |||
) |
Method to make the basic structure of the MS.
TileShape of size 1 can have 2 values [0], and [1] ...these are used in to determine the tileshape by using MSTileLayout. Otherwise it has to be a vector size 3 e.g [4, 15, 351] => a tile shape of 4 stokes, 15 channels 351 rows.
combine sets combine_p. (Columns to ignore while time averaging.)
Bool casa::MSTransformDataHandler::makeSelection | ( | ) |
Method that returns the selected ms (?! - but it's Boolean - RR).
static Bool casa::MSTransformDataHandler::mergeCalDeviceSubtables | ( | Vector< String > | filenames, | |
Vector< uInt > | mapSubmsSpwid | |||
) | [static] |
static Bool casa::MSTransformDataHandler::mergeDDISubTables | ( | Vector< String > | filenames | ) | [static] |
static Bool casa::MSTransformDataHandler::mergeFeedSubTables | ( | Vector< String > | filenames, | |
Vector< uInt > | mapSubmsSpwid | |||
) | [static] |
static Bool casa::MSTransformDataHandler::mergeFreqOffsetTables | ( | Vector< String > | filenames, | |
Vector< uInt > | mapSubmsSpwid | |||
) | [static] |
static Bool casa::MSTransformDataHandler::mergeSourceSubTables | ( | Vector< String > | filenames, | |
Vector< uInt > | mapSubmsSpwid | |||
) | [static] |
static Bool casa::MSTransformDataHandler::mergeSpwSubTables | ( | Vector< String > | filenames | ) | [static] |
To consolidate several sub-tables when dealing with MMS.
static Bool casa::MSTransformDataHandler::mergeSyscalSubTables | ( | Vector< String > | filenames, | |
Vector< uInt > | mapSubmsSpwid | |||
) | [static] |
static Bool casa::MSTransformDataHandler::mergeSysPowerSubtables | ( | Vector< String > | filenames, | |
Vector< uInt > | mapSubmsSpwid | |||
) | [static] |
static Bool casa::MSTransformDataHandler::mustConvertToData | ( | const uInt | nTok, | |
const Vector< MS::PredefinedColumns > & | datacols | |||
) | [inline, static] |
The output MS must have (at least?) 1 of DATA, FLOAT_DATA, or LAG_DATA.
MODEL_DATA or CORRECTED_DATA will be converted to DATA if necessary. jagonzal (CAS-5327): The implementation has to go here because a member function cannot have static linkage
Definition at line 177 of file MSTransformDataHandler.h.
static const Vector<MS::PredefinedColumns>& casa::MSTransformDataHandler::parseColumnNames | ( | String | colNameList, | |
const MeasurementSet & | ms, | |||
Bool | virtualModelCol = False , |
|||
Bool | virtualCorrectedCol = False | |||
) | [static] |
This version uses the MeasurementSet to check what columns are present, i.e.
it makes col=="all" smarter, and it is not necessary to call verifyColumns() after calling this. Unlike the other version, it knows about FLOAT_DATA and LAG_DATA. It throws an exception if a _specifically_ requested column is absent.
static const Vector<MS::PredefinedColumns>& casa::MSTransformDataHandler::parseColumnNames | ( | String | colNameList | ) | [static] |
Declared static because it's used in setupMS().
colNameList is internally up-cased, so it is not const or passed by reference.
static Bool casa::MSTransformDataHandler::pickAntennas | ( | Vector< Int > & | selected_antennaids, | |
Vector< String > & | selected_antenna_strs, | |||
const Vector< Int > & | antennaids, | |||
const Vector< String > & | antennaSel | |||
) | [static] |
Helper function for selectAntenna().
void casa::MSTransformDataHandler::relabelSources | ( | ) |
Sets up sourceRelabel_p for mapping input SourceIDs (if any) to output ones.
Must be called after fieldid_p is set and before calling fillFieldTable() or copySource().
void casa::MSTransformDataHandler::selectAntenna | ( | const Vector< Int > & | antennaids, | |
const Vector< String > & | antennaSel | |||
) |
Select Antennas to split out.
void casa::MSTransformDataHandler::selectArray | ( | const String & | subarray | ) |
Select array IDs to use.
Bool casa::MSTransformDataHandler::selectCorrelations | ( | const String & | corrstr | ) |
Setup polarization selection (for now, only from available correlations - no Stokes transformations.
)
Bool casa::MSTransformDataHandler::selectSource | ( | const Vector< Int > & | fieldid | ) |
Select source or field.
Bool casa::MSTransformDataHandler::selectSpw | ( | const String & | spwstr, | |
const Vector< Int > & | steps | |||
) |
Select spw and channels for each spw.
void casa::MSTransformDataHandler::selectTime | ( | Double | timeBin = -1.0 , |
|
String | timerng = "" | |||
) |
Select time parameters.
Bool casa::MSTransformDataHandler::setmsselect | ( | const String & | spw = "" , |
|
const String & | field = "" , |
|||
const String & | baseline = "" , |
|||
const String & | scan = "" , |
|||
const String & | uvrange = "" , |
|||
const String & | taql = "" , |
|||
const Vector< Int > & | step = Vector< Int >(1, 1) , |
|||
const String & | subarray = "" , |
|||
const String & | correlation = "" , |
|||
const String & | intent = "" , |
|||
const String & | obs = "" , |
|||
const String & | feed = "" | |||
) |
Selection method using msselection syntax.
Time is not handled by this method.
void casa::MSTransformDataHandler::setReindex | ( | Bool | reindex | ) | [inline] |
Definition at line 313 of file MSTransformDataHandler.h.
References reindex_p.
static MeasurementSet* casa::MSTransformDataHandler::setupMS | ( | const String & | msname, | |
const Int | nchan, | |||
const Int | npol, | |||
const Vector< MS::PredefinedColumns > & | colNamesTok, | |||
const Vector< Int > & | tileShape = Vector< Int >(1, 0) , |
|||
const Bool | compress = False , |
|||
const asdmStManUseAlternatives | asdmStManUse = DONT , |
|||
Table::TableOption | option = Table::New | |||
) | [static] |
Same as above except allowing manual tileshapes.
static MeasurementSet* casa::MSTransformDataHandler::setupMS | ( | const String & | msname, | |
const Int | nchan, | |||
const Int | npol, | |||
const String & | telescop, | |||
const Vector< MS::PredefinedColumns > & | colNamesTok, | |||
const Int | obstype = 0 , |
|||
const Bool | compress = False , |
|||
const asdmStManUseAlternatives | asdmStManUse = DONT , |
|||
Table::TableOption | option = Table::New | |||
) | [static] |
This sets up a default new ms Declared static as it can be (and is) called directly from outside Therefore it is not dependent on any member variable.
void casa::MSTransformDataHandler::setupNewPointing | ( | ) |
Sets up the stub of a POINTING, enough to create an MSColumns.
void casa::MSTransformDataHandler::setVirtualCorrectedCol | ( | Bool | virtualCorrectedCol | ) | [inline] |
Definition at line 312 of file MSTransformDataHandler.h.
References virtualCorrectedCol_p.
void casa::MSTransformDataHandler::setVirtualModelCol | ( | Bool | virtualModelCol | ) | [inline] |
Accesors for additional parameters.
Definition at line 311 of file MSTransformDataHandler.h.
References virtualModelCol_p.
Vector<Int> casa::MSTransformDataHandler::antennaId_p [protected] |
Definition at line 367 of file MSTransformDataHandler.h.
Bool casa::MSTransformDataHandler::antennaSel_p [protected] |
same shape as the corresponding input one.
sameShape_p, // Iff true, the shapes of the arrays do not vary with row number.
Definition at line 324 of file MSTransformDataHandler.h.
Vector<String> casa::MSTransformDataHandler::antennaSelStr_p [protected] |
Definition at line 366 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::antIndexer_p [protected] |
Definition at line 368 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::antNewIndex_p [protected] |
Definition at line 369 of file MSTransformDataHandler.h.
Referenced by getAntennaRemapper().
String casa::MSTransformDataHandler::arrayExpr_p [protected] |
Definition at line 334 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::chanEnd_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
Vector<Vector<Slice> > casa::MSTransformDataHandler::chanSlices_p [protected] |
Definition at line 380 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::chanStart_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::chanStep_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
String casa::MSTransformDataHandler::combine_p [protected] |
Definition at line 335 of file MSTransformDataHandler.h.
Vector<Slice> casa::MSTransformDataHandler::corrSlice_p [protected] |
Definition at line 381 of file MSTransformDataHandler.h.
Vector<Vector<Slice> > casa::MSTransformDataHandler::corrSlices_p [protected] |
Definition at line 382 of file MSTransformDataHandler.h.
String casa::MSTransformDataHandler::corrString_p [protected] |
Definition at line 334 of file MSTransformDataHandler.h.
String casa::MSTransformDataHandler::feedString_p [protected] |
Definition at line 330 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::fieldid_p [protected] |
Definition at line 363 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::fieldRelabel_p [protected] |
Definition at line 364 of file MSTransformDataHandler.h.
Int casa::MSTransformDataHandler::fitorder_p [protected] |
scan #, observation, and/or state ID? Must be lowercase at all times.
Definition at line 338 of file MSTransformDataHandler.h.
String casa::MSTransformDataHandler::fitoutspw_p [protected] |
Definition at line 342 of file MSTransformDataHandler.h.
String casa::MSTransformDataHandler::fitspw_p [protected] |
If < 0 (default), continuum subtraction is not done.
Definition at line 341 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::inNumChan_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::inNumCorr_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
Vector<Vector<Int> > casa::MSTransformDataHandler::inPolOutCorrToInCorrMap_p [protected] |
inCorrInd = outPolCorrToInCorrMap_p[polID_p[ddID]][outCorrInd]
Definition at line 376 of file MSTransformDataHandler.h.
String casa::MSTransformDataHandler::intentString_p [protected] |
Definition at line 330 of file MSTransformDataHandler.h.
Bool casa::MSTransformDataHandler::keepShape_p [protected] |
Definition at line 324 of file MSTransformDataHandler.h.
MeasurementSet casa::MSTransformDataHandler::ms_p [protected] |
Initialized* by ctors.
(Maintain order both here and in ctors.) not necessarily to anything useful.
Definition at line 321 of file MSTransformDataHandler.h.
Referenced by getInputMS().
MSColumns* casa::MSTransformDataHandler::msc_p [protected] |
Definition at line 322 of file MSTransformDataHandler.h.
Referenced by getOutputMSColumns().
ROMSColumns* casa::MSTransformDataHandler::mscIn_p [protected] |
Definition at line 323 of file MSTransformDataHandler.h.
Referenced by getSelectedInputMSColumns().
MeasurementSet casa::MSTransformDataHandler::msOut_p [protected] |
continuum subtraction.
Uninitialized by ctors.
Definition at line 346 of file MSTransformDataHandler.h.
Referenced by getOutputMS().
MeasurementSet casa::MSTransformDataHandler::mssel_p [protected] |
Definition at line 321 of file MSTransformDataHandler.h.
Referenced by getSelectedInputMS().
Vector<Int> casa::MSTransformDataHandler::nchan_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::ncorr_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
String casa::MSTransformDataHandler::obsString_p [protected] |
Definition at line 330 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::oldDDSpwMatch_p [protected] |
Definition at line 365 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::polID_p [protected] |
Definition at line 372 of file MSTransformDataHandler.h.
Bool casa::MSTransformDataHandler::reindex_p [protected] |
Definition at line 387 of file MSTransformDataHandler.h.
Referenced by setReindex().
String casa::MSTransformDataHandler::scanString_p [protected] |
Definition at line 330 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::selObsId_p [protected] |
Definition at line 371 of file MSTransformDataHandler.h.
Matrix<Double> casa::MSTransformDataHandler::selTimeRanges_p [protected] |
Definition at line 383 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::sourceRelabel_p [protected] |
Definition at line 364 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::spw2ddid_p [protected] |
Definition at line 373 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::spw_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::spw_uniq_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
map<Int,vector<Int> > casa::MSTransformDataHandler::spwDropChannelMap_p [protected] |
Definition at line 360 of file MSTransformDataHandler.h.
Referenced by getDroppedChannelsMap().
Vector<Int> casa::MSTransformDataHandler::spwRelabel_p [protected] |
Definition at line 364 of file MSTransformDataHandler.h.
map<Int,map < Int, vector<Int> > > casa::MSTransformDataHandler::spwSelectedChannelMap_p [protected] |
Definition at line 361 of file MSTransformDataHandler.h.
Referenced by getSelectedChannelsMap().
std::map<Int, Int> casa::MSTransformDataHandler::stateRemapper_p [protected] |
Definition at line 378 of file MSTransformDataHandler.h.
Referenced by getStateRemapper().
String casa::MSTransformDataHandler::taqlString_p [protected] |
Definition at line 330 of file MSTransformDataHandler.h.
Double casa::MSTransformDataHandler::timeBin_p [protected] |
Definition at line 329 of file MSTransformDataHandler.h.
String casa::MSTransformDataHandler::timeRange_p [protected] |
Definition at line 334 of file MSTransformDataHandler.h.
Vector<Int> casa::MSTransformDataHandler::totnchan_p [protected] |
Definition at line 347 of file MSTransformDataHandler.h.
String casa::MSTransformDataHandler::uvrangeString_p [protected] |
Definition at line 330 of file MSTransformDataHandler.h.
Bool casa::MSTransformDataHandler::virtualCorrectedCol_p [protected] |
Definition at line 386 of file MSTransformDataHandler.h.
Referenced by setVirtualCorrectedCol().
Bool casa::MSTransformDataHandler::virtualModelCol_p [protected] |
Definition at line 385 of file MSTransformDataHandler.h.
Referenced by setVirtualModelCol().
Vector<Int> casa::MSTransformDataHandler::widths_p [protected] |
input channel will be used.
Definition at line 347 of file MSTransformDataHandler.h.