casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
casa::refim::VisModelData Class Reference

Object to provide MODEL_DATA visibilities on demand. More...

#include <VisModelData.h>

Inheritance diagram for casa::refim::VisModelData:
casa::VisModelDataI

Public Member Functions

 VisModelData ()
 empty constructor More...
 
virtual ~VisModelData ()
 From a FTMachine Record VisModelData(const casacore::Record& ftmachinerec, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds);. More...
 
void addFlatModel (const casacore::Vector< casacore::Double > &value, const casacore::Vector< casacore::Int > &validfieldids, const casacore::Vector< casacore::Int > &msIds)
 Add Image/FTMachine to generate visibilities for void addFTMachine(const casacore::Record& recordFTMachine, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds); Add componentlist to generate visibilities for void addCompFTMachine(const ComponentList& cl, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds); For simple model a special case for speed. More...
 
void addModel (const casacore::RecordInterface &rec, const casacore::Vector< casacore::Int > &msids, const vi::VisBuffer2 &vb)
 add componentlists or ftmachines More...
 
void addModel (const casacore::RecordInterface &, const casacore::Vector< casacore::Int > &, const VisBuffer &)
 Add Image/FTMachine to generate visibilities for void addFTMachine(const casacore::Record& recordFTMachine, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds); Add componentlist to generate visibilities for void addCompFTMachine(const ComponentList& cl, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds); For simple model a special case for speed. More...
 
VisModelDataIclone ()
 
casacore::Bool getModelVis (vi::VisBuffer2 &vb)
 put the model data for this VisBuffer in the modelVisCube More...
 
casacore::Bool getModelVis (VisBuffer &)
 //put the model data for this VisBuffer in the modelVisCube More...
 
void putModelI (const casacore::MeasurementSet &thems, const casacore::RecordInterface &rec, const casacore::Vector< casacore::Int > &validfields, const casacore::Vector< casacore::Int > &spws, const casacore::Vector< casacore::Int > &starts, const casacore::Vector< casacore::Int > &nchan, const casacore::Vector< casacore::Int > &incr, casacore::Bool iscomponentlist=true, casacore::Bool incremental=false)
 this is a helper function that writes the model record to the ms More...
 
void putModelI (const casacore::MeasurementSet &thems, const casacore::RecordInterface &rec, const casacore::Matrix< casacore::Int > &indexComb, const casacore::Matrix< casacore::Int > &chansel, casacore::Bool iscomponentlist=true, casacore::Bool incremental=false)
 Version 2 record to keep track of state and scan number. More...
 
void clearModelI (const casacore::MeasurementSet &thems)
 helper function to clear the keywordSet of the ms of the model for the fields in that ms More...
 
casacore::Bool isModelDefinedI (const casacore::Int fieldId, const casacore::MeasurementSet &thems, casacore::String &key, casacore::Int &sourceRow)
 Functions to see if model is defined in the casacore::MS either in the SOURCE table or else in the MAIN. More...
 
casacore::Bool getModelRecordI (const casacore::String &theKey, casacore::TableRecord &theRec, const casacore::MeasurementSet &theMs)
 Get a given model that is defined by key Forcing user to use a casacore::TableRecord rather than Generic casacore::RecordInterface...just so as to avoid a copy. More...
 
casacore::Int hasModel (casacore::Int msid, casacore::Int field, casacore::Int spw)
 check if an addFT or addCompFT is necessary casacore::Bool hasFT(casacore::Int msid, casacore::Int fieldid); casacore::Bool hasCL(casacore::Int msid, casacore::Int fieldid); returns a -1 if there is no model for this combination of ms,field,spw...but has not been // checked yet if there is one returns a -2 if it has been tested before but does have it. More...
 
casacore::Bool isVersion2 ()
 
void init (const vi::VisBuffer2 &vb)
 
void init (const VisBuffer &)
 Make sure that VisModel has been called once loaded checks and detection of version 1 or 2 is valid. More...
 
- Public Member Functions inherited from casa::VisModelDataI
 VisModelDataI ()
 empty constructor More...
 
virtual ~VisModelDataI ()
 From a FTMachine Record VisModelDataI(const casacore::Record& ftmachinerec, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds);. More...
 

Static Public Member Functions

static void putModel (const casacore::MeasurementSet &thems, const casacore::RecordInterface &rec, const casacore::Vector< casacore::Int > &validfields, const casacore::Vector< casacore::Int > &spws, const casacore::Vector< casacore::Int > &starts, const casacore::Vector< casacore::Int > &nchan, const casacore::Vector< casacore::Int > &incr, casacore::Bool iscomponentlist=true, casacore::Bool incremental=false)
 
static void putModel (const casacore::MeasurementSet &thems, const casacore::RecordInterface &rec, const casacore::Matrix< casacore::Int > &indexComb, const casacore::Matrix< casacore::Int > &chansel, casacore::Bool iscomponentlist=true, casacore::Bool incremental=false)
 Verion 2.0 of putModel to support Intent index Comb is a Matrix of n rows 4 columns Each row is a unique combination of field_id, spw_id, scan_number, state_id for which this record is valid chansel is Matrix of nspw rows and 4 columns (spw_id, start, nchan, incr) More...
 
static void clearModel (const casacore::MeasurementSet &thems)
 
static void clearModel (const casacore::MeasurementSet &thems, const casacore::String field, const casacore::String spws=casacore::String(""))
 ...with field selection and optionally spw More...
 
static casacore::Bool isModelDefined (const casacore::Int fieldId, const casacore::MeasurementSet &thems, casacore::String &key, casacore::Int &sourceRow)
 
static casacore::Bool isModelDefined (const casacore::String &elkey, const casacore::MeasurementSet &thems)
 
static casacore::Bool getModelRecord (const casacore::String &theKey, casacore::TableRecord &theRec, const casacore::MeasurementSet &theMs)
 
static void listModel (const casacore::MeasurementSet &thems)
 List the fields in the logger. More...
 
static casacore::Bool hasAnyModel (const casacore::MeasurementSet &thems, casacore::Vector< casacore::Int > &fieldids)
 Returns true if any valid virtual model is found, fieldids of which are also returned. More...
 
static FTMachineNEW_FT (const casacore::Record &ftrec)
 
- Static Public Member Functions inherited from casa::VisModelDataI
static bool setFactory (Factory, casacore::Int whichone=0)
 
static VisModelDataIcreate ()
 
static VisModelDataIcreate2 ()
 

Private Member Functions

void initializeToVis ()
 
casacore::Vector
< casacore::CountedPtr
< ComponentList > > 
getCL (const casacore::Int msId, const casacore::Int fieldId, casacore::Int spw)
 
casacore::Vector
< casacore::CountedPtr
< FTMachine > > 
getFT (const casacore::Int msId, const casacore::Int fieldId, casacore::Int spw)
 
void getMatchingMachines (casacore::Vector< casacore::CountedPtr< FTMachine > > &ft, casacore::Vector< casacore::CountedPtr< ComponentList > > &cl, const vi::VisBuffer2 &vb)
 
void updateHolders (const vi::VisBuffer2 &vb, const std::vector< casacore::Int > &index)
 
void getUniqueIndicesComb (const vi::VisBuffer2 &vb, casacore::Vector< casacore::Vector< casacore::Int > > &retval)
 get all the combinations of field, spw, scan, state in this visbuffer More...
 

Static Private Member Functions

static casacore::Bool addToRec (casacore::TableRecord &therec, const casacore::Vector< casacore::Int > &spws)
 
static casacore::Bool addToRec (casacore::TableRecord &therec, const casacore::Matrix< casacore::Int > &combindex)
 Version 2.0. More...
 
static casacore::Bool removeSpwFromMachineRec (casacore::RecordInterface &ftclrec, const casacore::Vector< casacore::Int > &spws)
 
static casacore::Bool removeFTFromRec (casacore::TableRecord &therec, const casacore::String &keyval, const casacore::Bool relabel=true)
 
static casacore::Bool removeSpw (casacore::TableRecord &therec, const casacore::Vector< casacore::Int > &spws, const casacore::Vector< casacore::Int > &fields=casacore::Vector< casacore::Int >(0))
 
static casacore::Bool putModelRecord (const casacore::Vector< casacore::Int > &fieldIds, casacore::TableRecord &theRec, casacore::MeasurementSet &theMS)
 
static void removeRecordByKey (casacore::MeasurementSet &theMS, const casacore::String &theKey)
 Remove the casacore::Record which has the given key...will exterminate it from both the Source table or Main table. More...
 
static void putRecordByKey (casacore::MeasurementSet &theMS, const casacore::String &theKey, const casacore::TableRecord &theRec, const casacore::Int sourceRowNum=-1)
 put the casacore::Record by key if sourcerownum=-1 then it is saved in the main table this default should only be used if the optional SOURCE table in non-existant More...
 
static void deleteDiskImage (casacore::MeasurementSet &theMS, const casacore::String &theKey)
 
static casacore::Int firstSourceRowRecord (const casacore::Int field, const casacore::MeasurementSet &theMS, casacore::TableRecord &rec)
 
static void modifyDiskImagePath (casacore::Record &rec, const vi::VisBuffer2 &vb)
 

Private Attributes

casacore::Block
< casacore::Vector
< casacore::CountedPtr
< ComponentList > > > 
clholder_p
 
casacore::Block
< casacore::Vector
< casacore::CountedPtr
< FTMachine > > > 
ftholder_p
 
casacore::Block
< casacore::Vector
< casacore::Double > > 
flatholder_p
 
casacore::CountedPtr
< ComponentFTMachine
cft_p
 
casacore::Cube< casacore::Intftindex_p
 
casacore::Cube< casacore::Intclindex_p
 
std::map< std::vector
< casacore::Int >
, casacore::Int
ftindex2_p
 These 2 maps will hold the index of ftholder_p or clholder_p from key (field_id, spw_id, scan, state, msid) More...
 
std::map< std::vector
< casacore::Int >
, casacore::Int
clindex2_p
 
casacore::Int version_p
 

Static Private Attributes

static casacore::Bool initialize
 

Additional Inherited Members

- Public Types inherited from casa::VisModelDataI
typedef VisModelDataI *(* Factory )()
 

Detailed Description

Object to provide MODEL_DATA visibilities on demand.

Prerequisite

and ComponentFTMachine

Etymology

Vis for Visibility ModelData is self explanatory

Synopsis

This Class also offer a lot of helper functions to query add and delete/modify models To be noted the models that are supported are FTMachines and Componentlist A given FIELD_ID can have multiple models added to the same record (i.e for e.g multiple spw models or multiple outlier images or in the case of componentlist multiple component list models. A model may be valid for multiple fields e.g a mosaic To save storage in such cases multiple field id will point to the same model Look for the keyword "definedmodel_field_x" in the Source table keywords (or the main table if source is not present). This will point to another key which is going to point to the model. Thus multiple "definedmodel_field_x" may point to the same key. If there is no valid SOURCE table the key will hold a casacore::Record of the model to use in the main table Otherwise in the SOURCE table the key will hold the row of the SOURCE table in whose SOURCE_MODEL cell the casacore::Record of the model to use will be resident. Now a given model casacore::Record in a SOURCE_MODEL cell can hold multiple FTMachine's or Compnentlist (e.g multiple direction images or spw images associated with a given field) and they are all cumulative (while respecting spw selection conditions) when a request is made for the model visibility

Example

VisibilityIterator vi(theMS,sort);
VisBuffer vb(vi);
casacore::MDirection myDir=vi.msColumns().field().phaseDirMeas(0);
ComponentList cl;
SkyComponent otherPoint(ComponentType::POINT);
otherPoint.flux() = Flux<casacore::Double>(0.00001, 0.0, 0.0, 0.00000);
otherPoint.shape().setRefDirection(myDir);
cl.add(otherPoint);
casacore::Record clrec;
clrec.define("type", "componentlist");
clrec.define("fields", field);
clrec.define("spws", casacore::Vector<casacore::Int>(1, 0));
clrec.defineRecord("container", container);
casacore::Record outRec;
outRec.define("numcl", 1);
outRec.defineRecord("cl_0", clrec);
casacore::Vector<casacore::Int>spws(1,0);
Save model to the MS
VisModelData.putModel(theMS, container, field, spws, casacore::Vector<casacore::Int>(1,0), casacore::Vector<casacore::Int>(1,63), casacore::Vector<casacore::Int>(1,1), true, false);
vi.origin();
// casacore::String modelkey;
casacore::Int snum;
casacore::Bool hasmodkey=VisModelData::isModelDefined(vb.fieldId(), vi.ms(), modelkey, snum);
Setup vm to serve the model for the fieldid()
if(hasmodkey){
VisModelData::getModelRecord(modelkey, modrec, visIter_p->ms())
vm.addModel(modrec, casacore::Vector<casacore::Int>(1, msId()), vb);
}
for (vi.originChunks();vi.moreChunks(); vi.nextChunk()){
for (vi.origin(); vi.more(); vi++){
This fills the vb.modelVisCube with the appropriate model visibility
vm.getModelVis(vb);
cerr << "field " << vb.fieldId() << " spw " << vb.spectralWindow() <<" max " << max(amplitude(vb.modelVisCube())) << endl;
}
}

Motivation

Definition at line 148 of file VisModelData.h.

Constructor & Destructor Documentation

casa::refim::VisModelData::VisModelData ( )

empty constructor

virtual casa::refim::VisModelData::~VisModelData ( )
virtual

From a FTMachine Record VisModelData(const casacore::Record& ftmachinerec, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds);.

Member Function Documentation

void casa::refim::VisModelData::addFlatModel ( const casacore::Vector< casacore::Double > &  value,
const casacore::Vector< casacore::Int > &  validfieldids,
const casacore::Vector< casacore::Int > &  msIds 
)

Add Image/FTMachine to generate visibilities for void addFTMachine(const casacore::Record& recordFTMachine, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds); Add componentlist to generate visibilities for void addCompFTMachine(const ComponentList& cl, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds); For simple model a special case for speed.

void casa::refim::VisModelData::addModel ( const casacore::RecordInterface rec,
const casacore::Vector< casacore::Int > &  msids,
const vi::VisBuffer2 vb 
)
virtual

add componentlists or ftmachines

Implements casa::VisModelDataI.

void casa::refim::VisModelData::addModel ( const casacore::RecordInterface rec,
const casacore::Vector< casacore::Int > &  msids,
const VisBuffer vb 
)
inlinevirtual

Add Image/FTMachine to generate visibilities for void addFTMachine(const casacore::Record& recordFTMachine, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds); Add componentlist to generate visibilities for void addCompFTMachine(const ComponentList& cl, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds); For simple model a special case for speed.

void addFlatModel(const casacore::Vector<casacore::Double>& value, const casacore::Vector<casacore::Int>& validfieldids, const casacore::Vector<casacore::Int>& msIds);

add componentlists or ftmachines

Implements casa::VisModelDataI.

Definition at line 167 of file VisModelData.h.

static casacore::Bool casa::refim::VisModelData::addToRec ( casacore::TableRecord therec,
const casacore::Vector< casacore::Int > &  spws 
)
staticprivate
static casacore::Bool casa::refim::VisModelData::addToRec ( casacore::TableRecord therec,
const casacore::Matrix< casacore::Int > &  combindex 
)
staticprivate

Version 2.0.

static void casa::refim::VisModelData::clearModel ( const casacore::MeasurementSet thems)
static

Referenced by clearModelI().

static void casa::refim::VisModelData::clearModel ( const casacore::MeasurementSet thems,
const casacore::String  field,
const casacore::String  spws = casacore::String("") 
)
static

...with field selection and optionally spw

void casa::refim::VisModelData::clearModelI ( const casacore::MeasurementSet thems)
inlinevirtual

helper function to clear the keywordSet of the ms of the model for the fields in that ms

Implements casa::VisModelDataI.

Definition at line 201 of file VisModelData.h.

References clearModel().

VisModelDataI* casa::refim::VisModelData::clone ( )
virtual

Implements casa::VisModelDataI.

static void casa::refim::VisModelData::deleteDiskImage ( casacore::MeasurementSet theMS,
const casacore::String theKey 
)
staticprivate
static casacore::Int casa::refim::VisModelData::firstSourceRowRecord ( const casacore::Int  field,
const casacore::MeasurementSet theMS,
casacore::TableRecord rec 
)
staticprivate
casacore::Vector<casacore::CountedPtr<ComponentList> > casa::refim::VisModelData::getCL ( const casacore::Int  msId,
const casacore::Int  fieldId,
casacore::Int  spw 
)
private
casacore::Vector<casacore::CountedPtr<FTMachine> > casa::refim::VisModelData::getFT ( const casacore::Int  msId,
const casacore::Int  fieldId,
casacore::Int  spw 
)
private
void casa::refim::VisModelData::getMatchingMachines ( casacore::Vector< casacore::CountedPtr< FTMachine > > &  ft,
casacore::Vector< casacore::CountedPtr< ComponentList > > &  cl,
const vi::VisBuffer2 vb 
)
private
static casacore::Bool casa::refim::VisModelData::getModelRecord ( const casacore::String theKey,
casacore::TableRecord theRec,
const casacore::MeasurementSet theMs 
)
static

Referenced by getModelRecordI().

casacore::Bool casa::refim::VisModelData::getModelRecordI ( const casacore::String theKey,
casacore::TableRecord theRec,
const casacore::MeasurementSet theMs 
)
inlinevirtual

Get a given model that is defined by key Forcing user to use a casacore::TableRecord rather than Generic casacore::RecordInterface...just so as to avoid a copy.

Implements casa::VisModelDataI.

Definition at line 216 of file VisModelData.h.

References getModelRecord().

casacore::Bool casa::refim::VisModelData::getModelVis ( vi::VisBuffer2 vb)
virtual

put the model data for this VisBuffer in the modelVisCube

Implements casa::VisModelDataI.

casacore::Bool casa::refim::VisModelData::getModelVis ( VisBuffer vb)
inlinevirtual

//put the model data for this VisBuffer in the modelVisCube

Implements casa::VisModelDataI.

Definition at line 174 of file VisModelData.h.

void casa::refim::VisModelData::getUniqueIndicesComb ( const vi::VisBuffer2 vb,
casacore::Vector< casacore::Vector< casacore::Int > > &  retval 
)
private

get all the combinations of field, spw, scan, state in this visbuffer

static casacore::Bool casa::refim::VisModelData::hasAnyModel ( const casacore::MeasurementSet thems,
casacore::Vector< casacore::Int > &  fieldids 
)
static

Returns true if any valid virtual model is found, fieldids of which are also returned.

casacore::Int casa::refim::VisModelData::hasModel ( casacore::Int  msid,
casacore::Int  field,
casacore::Int  spw 
)
virtual

check if an addFT or addCompFT is necessary casacore::Bool hasFT(casacore::Int msid, casacore::Int fieldid); casacore::Bool hasCL(casacore::Int msid, casacore::Int fieldid); returns a -1 if there is no model for this combination of ms,field,spw...but has not been // checked yet if there is one returns a -2 if it has been tested before but does have it.

returns a 1 if it has a model stored

Implements casa::VisModelDataI.

void casa::refim::VisModelData::init ( const vi::VisBuffer2 vb)
virtual

Implements casa::VisModelDataI.

void casa::refim::VisModelData::init ( const VisBuffer vb)
inlinevirtual

Make sure that VisModel has been called once loaded checks and detection of version 1 or 2 is valid.

Implements casa::VisModelDataI.

Definition at line 237 of file VisModelData.h.

void casa::refim::VisModelData::initializeToVis ( )
private
static casacore::Bool casa::refim::VisModelData::isModelDefined ( const casacore::Int  fieldId,
const casacore::MeasurementSet thems,
casacore::String key,
casacore::Int sourceRow 
)
static

Referenced by isModelDefinedI().

static casacore::Bool casa::refim::VisModelData::isModelDefined ( const casacore::String elkey,
const casacore::MeasurementSet thems 
)
static
casacore::Bool casa::refim::VisModelData::isModelDefinedI ( const casacore::Int  fieldId,
const casacore::MeasurementSet thems,
casacore::String key,
casacore::Int sourceRow 
)
inlinevirtual

Functions to see if model is defined in the casacore::MS either in the SOURCE table or else in the MAIN.

Implements casa::VisModelDataI.

Definition at line 207 of file VisModelData.h.

References isModelDefined().

casacore::Bool casa::refim::VisModelData::isVersion2 ( )
inlinevirtual

Implements casa::VisModelDataI.

Definition at line 235 of file VisModelData.h.

References version_p.

static void casa::refim::VisModelData::listModel ( const casacore::MeasurementSet thems)
static

List the fields in the logger.

static void casa::refim::VisModelData::modifyDiskImagePath ( casacore::Record rec,
const vi::VisBuffer2 vb 
)
staticprivate
static FTMachine* casa::refim::VisModelData::NEW_FT ( const casacore::Record ftrec)
static
static void casa::refim::VisModelData::putModel ( const casacore::MeasurementSet thems,
const casacore::RecordInterface rec,
const casacore::Vector< casacore::Int > &  validfields,
const casacore::Vector< casacore::Int > &  spws,
const casacore::Vector< casacore::Int > &  starts,
const casacore::Vector< casacore::Int > &  nchan,
const casacore::Vector< casacore::Int > &  incr,
casacore::Bool  iscomponentlist = true,
casacore::Bool  incremental = false 
)
static

Referenced by putModelI().

static void casa::refim::VisModelData::putModel ( const casacore::MeasurementSet thems,
const casacore::RecordInterface rec,
const casacore::Matrix< casacore::Int > &  indexComb,
const casacore::Matrix< casacore::Int > &  chansel,
casacore::Bool  iscomponentlist = true,
casacore::Bool  incremental = false 
)
static

Verion 2.0 of putModel to support Intent index Comb is a Matrix of n rows 4 columns Each row is a unique combination of field_id, spw_id, scan_number, state_id for which this record is valid chansel is Matrix of nspw rows and 4 columns (spw_id, start, nchan, incr)

void casa::refim::VisModelData::putModelI ( const casacore::MeasurementSet thems,
const casacore::RecordInterface rec,
const casacore::Vector< casacore::Int > &  validfields,
const casacore::Vector< casacore::Int > &  spws,
const casacore::Vector< casacore::Int > &  starts,
const casacore::Vector< casacore::Int > &  nchan,
const casacore::Vector< casacore::Int > &  incr,
casacore::Bool  iscomponentlist = true,
casacore::Bool  incremental = false 
)
inlinevirtual

this is a helper function that writes the model record to the ms

Implements casa::VisModelDataI.

Definition at line 176 of file VisModelData.h.

References putModel().

void casa::refim::VisModelData::putModelI ( const casacore::MeasurementSet thems,
const casacore::RecordInterface rec,
const casacore::Matrix< casacore::Int > &  indexComb,
const casacore::Matrix< casacore::Int > &  chansel,
casacore::Bool  iscomponentlist = true,
casacore::Bool  incremental = false 
)
inlinevirtual

Version 2 record to keep track of state and scan number.

Implements casa::VisModelDataI.

Definition at line 192 of file VisModelData.h.

References putModel().

static casacore::Bool casa::refim::VisModelData::putModelRecord ( const casacore::Vector< casacore::Int > &  fieldIds,
casacore::TableRecord theRec,
casacore::MeasurementSet theMS 
)
staticprivate
static void casa::refim::VisModelData::putRecordByKey ( casacore::MeasurementSet theMS,
const casacore::String theKey,
const casacore::TableRecord theRec,
const casacore::Int  sourceRowNum = -1 
)
staticprivate

put the casacore::Record by key if sourcerownum=-1 then it is saved in the main table this default should only be used if the optional SOURCE table in non-existant

static casacore::Bool casa::refim::VisModelData::removeFTFromRec ( casacore::TableRecord therec,
const casacore::String keyval,
const casacore::Bool  relabel = true 
)
staticprivate
static void casa::refim::VisModelData::removeRecordByKey ( casacore::MeasurementSet theMS,
const casacore::String theKey 
)
staticprivate

Remove the casacore::Record which has the given key...will exterminate it from both the Source table or Main table.

static casacore::Bool casa::refim::VisModelData::removeSpw ( casacore::TableRecord therec,
const casacore::Vector< casacore::Int > &  spws,
const casacore::Vector< casacore::Int > &  fields = casacore::Vectorcasacore::Int >(0) 
)
staticprivate
static casacore::Bool casa::refim::VisModelData::removeSpwFromMachineRec ( casacore::RecordInterface ftclrec,
const casacore::Vector< casacore::Int > &  spws 
)
staticprivate
void casa::refim::VisModelData::updateHolders ( const vi::VisBuffer2 vb,
const std::vector< casacore::Int > &  index 
)
private

Member Data Documentation

casacore::CountedPtr<ComponentFTMachine> casa::refim::VisModelData::cft_p
private

Definition at line 265 of file VisModelData.h.

casacore::Block<casacore::Vector<casacore::CountedPtr<ComponentList> > > casa::refim::VisModelData::clholder_p
private

Definition at line 262 of file VisModelData.h.

std::map<std::vector<casacore::Int>, casacore::Int > casa::refim::VisModelData::clindex2_p
private

Definition at line 270 of file VisModelData.h.

casacore::Cube<casacore::Int> casa::refim::VisModelData::clindex_p
private

Definition at line 267 of file VisModelData.h.

casacore::Block<casacore::Vector<casacore::Double> > casa::refim::VisModelData::flatholder_p
private

Definition at line 264 of file VisModelData.h.

casacore::Block<casacore::Vector<casacore::CountedPtr<FTMachine> > > casa::refim::VisModelData::ftholder_p
private

Definition at line 263 of file VisModelData.h.

std::map<std::vector<casacore::Int>, casacore::Int > casa::refim::VisModelData::ftindex2_p
private

These 2 maps will hold the index of ftholder_p or clholder_p from key (field_id, spw_id, scan, state, msid)

Definition at line 269 of file VisModelData.h.

casacore::Cube<casacore::Int> casa::refim::VisModelData::ftindex_p
private

Definition at line 266 of file VisModelData.h.

casacore::Bool casa::refim::VisModelData::initialize
staticprivate

Definition at line 272 of file VisModelData.h.

casacore::Int casa::refim::VisModelData::version_p
private

Definition at line 271 of file VisModelData.h.

Referenced by isVersion2().


The documentation for this class was generated from the following file: