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

#include <SolveDataBuffer.h>

Public Member Functions

 SDBList ()
 Construct empty list. More...
 
 ~SDBList ()
 Destructor. More...
 
casacore::Int nSDB () const
 How many SDBs? More...
 
void add (const vi::VisBuffer2 &vb)
 Generate a new SDB from an input VB2. More...
 
SolveDataBufferoperator() (casacore::Int i)
 Access an SDB by index. More...
 
int aggregateObsId () const
 Aggregate meta info. More...
 
int aggregateScan () const
 
int aggregateSpw () const
 
int aggregateFld () const
 
double aggregateTime () const
 
double aggregateTimeCentroid () const
 
casacore::String polBasis () const
 Return pol basis. More...
 
int nAntennas () const
 How many antennas Currently, this insists on uniformity over all SDBs. More...
 
int nCorrelations () const
 How man correlations Currently, this insists on uniformity over all SDBs. More...
 
int nChannels () const
 How many data chans? Currently, this insists on uniformity over all SDBs. More...
 
const casacore::Vector< double > & freqs () const
 The frequencies Currently, this insists on uniformity over all SDBs. More...
 
casacore::Double centroidFreq () const
 ~Centroid frequency over all SDBs More...
 
casacore::Double aggregateCentroidFreq () const
 Simple centroid of per-SDB centroidFreqs NB: this differs from centroidFreq in that it is not a simple average of all SDB channel freqs this matters when different SDBs have different spws with different bandwidths/channelizations Eventually, this aggregation should be weighted by aggregate bandwidth, but this is not yet available from the VB2. More...
 
bool Ok ()
 Does the SDBList contain usable data? (at least one SDB, with non-zero net weight) More...
 
void enforceAPonData (const casacore::String &apmode)
 Aggregated methods. More...
 
void enforceSolveWeights (const casacore::Bool pHandOnly)
 
void sizeResiduals (const casacore::Int &nPar, const casacore::Int &nDiff)
 
void initResidWithModel ()
 
void finalizeResiduals ()
 
void updateWorkingFlags ()
 NB: disable for now, may not be needed... More...
 
void updateWorkingWeights (casacore::Bool doL1=false, casacore::Float clamp=0.0)
 
void reportData ()
 Print out data, weights, flags for debugging purposes. More...
 
void extendBaselineFlags ()
 Extend baseline-dependent flags to all SDBs in the list This uniformizes the baseline-dependent flags NB: Cross-hands only, for now! More...
 

Private Attributes

casacore::Int nSDB_
 How many SDBs contained herein. More...
 
casacore::PtrBlock
< SolveDataBuffer * > 
SDB_
 Keep SDBs as a list of pointers. More...
 
casacore::Vector< double > freqs_
 Aggregate frequency storage (so we can calculate once-ish and return a reference) More...
 
double aggCentroidFreq_
 
bool aggCentroidFreqOK_
 

Detailed Description

Definition at line 243 of file SolveDataBuffer.h.

Constructor & Destructor Documentation

casa::SDBList::SDBList ( )

Construct empty list.

casa::SDBList::~SDBList ( )

Destructor.

Member Function Documentation

void casa::SDBList::add ( const vi::VisBuffer2 vb)

Generate a new SDB from an input VB2.

casacore::Double casa::SDBList::aggregateCentroidFreq ( ) const

Simple centroid of per-SDB centroidFreqs NB: this differs from centroidFreq in that it is not a simple average of all SDB channel freqs this matters when different SDBs have different spws with different bandwidths/channelizations Eventually, this aggregation should be weighted by aggregate bandwidth, but this is not yet available from the VB2.

int casa::SDBList::aggregateFld ( ) const
int casa::SDBList::aggregateObsId ( ) const

Aggregate meta info.

int casa::SDBList::aggregateScan ( ) const
int casa::SDBList::aggregateSpw ( ) const
double casa::SDBList::aggregateTime ( ) const
double casa::SDBList::aggregateTimeCentroid ( ) const
casacore::Double casa::SDBList::centroidFreq ( ) const

~Centroid frequency over all SDBs

void casa::SDBList::enforceAPonData ( const casacore::String apmode)

Aggregated methods.

void casa::SDBList::enforceSolveWeights ( const casacore::Bool  pHandOnly)
void casa::SDBList::extendBaselineFlags ( )

Extend baseline-dependent flags to all SDBs in the list This uniformizes the baseline-dependent flags NB: Cross-hands only, for now!

void casa::SDBList::finalizeResiduals ( )
const casacore::Vector<double>& casa::SDBList::freqs ( ) const

The frequencies Currently, this insists on uniformity over all SDBs.

void casa::SDBList::initResidWithModel ( )
int casa::SDBList::nAntennas ( ) const

How many antennas Currently, this insists on uniformity over all SDBs.

int casa::SDBList::nChannels ( ) const

How many data chans? Currently, this insists on uniformity over all SDBs.

int casa::SDBList::nCorrelations ( ) const

How man correlations Currently, this insists on uniformity over all SDBs.

casacore::Int casa::SDBList::nSDB ( ) const
inline

How many SDBs?

Definition at line 254 of file SolveDataBuffer.h.

References nSDB_.

bool casa::SDBList::Ok ( )

Does the SDBList contain usable data? (at least one SDB, with non-zero net weight)

SolveDataBuffer& casa::SDBList::operator() ( casacore::Int  i)

Access an SDB by index.

casacore::String casa::SDBList::polBasis ( ) const

Return pol basis.

void casa::SDBList::reportData ( )

Print out data, weights, flags for debugging purposes.

void casa::SDBList::sizeResiduals ( const casacore::Int nPar,
const casacore::Int nDiff 
)
void casa::SDBList::updateWorkingFlags ( )

NB: disable for now, may not be needed...

void divideCorrByModel();

Manage working flags and weights

void casa::SDBList::updateWorkingWeights ( casacore::Bool  doL1 = false,
casacore::Float  clamp = 0.0 
)

Member Data Documentation

double casa::SDBList::aggCentroidFreq_
mutableprivate

Definition at line 335 of file SolveDataBuffer.h.

bool casa::SDBList::aggCentroidFreqOK_
mutableprivate

Definition at line 336 of file SolveDataBuffer.h.

casacore::Vector<double> casa::SDBList::freqs_
mutableprivate

Aggregate frequency storage (so we can calculate once-ish and return a reference)

Definition at line 334 of file SolveDataBuffer.h.

casacore::Int casa::SDBList::nSDB_
private

How many SDBs contained herein.

Definition at line 328 of file SolveDataBuffer.h.

Referenced by nSDB().

casacore::PtrBlock<SolveDataBuffer*> casa::SDBList::SDB_
private

Keep SDBs as a list of pointers.

Definition at line 331 of file SolveDataBuffer.h.


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