class MsRowAttributes { More...
#include <MsRows.h>
Public Member Functions | |
MsRow (Int row, const vi::VisBuffer2 *vb) | |
Constructors. | |
MsRow (Int row, vi::VisBuffer2 *vb) | |
Constructor for read/write access. | |
virtual | ~MsRow () |
virtual void | changeRow (Int row) |
virtual Int | antenna1 () const =0 |
virtual Int | antenna2 () const =0 |
virtual Int | arrayId () const =0 |
virtual Int | correlationType () const =0 |
virtual Int | dataDescriptionId () const =0 |
virtual Int | feed1 () const =0 |
virtual Int | feed2 () const =0 |
virtual Int | fieldId () const =0 |
virtual Int | observationId () const =0 |
virtual Int | processorId () const =0 |
virtual Int | scanNumber () const =0 |
virtual Int | stateId () const =0 |
virtual Double | exposure () const =0 |
virtual Double | interval () const =0 |
virtual Int | rowId () const =0 |
virtual Int | spectralWindow () const =0 |
virtual Double | time () const =0 |
virtual Double | timeCentroid () const =0 |
virtual void | setAntenna1 (Int)=0 |
virtual void | setAntenna2 (Int)=0 |
virtual void | setArrayId (Int)=0 |
virtual void | setCorrelationType (Int)=0 |
virtual void | setDataDescriptionId (Int)=0 |
virtual void | setFeed1 (Int)=0 |
virtual void | setFeed2 (Int)=0 |
virtual void | setFieldId (Int)=0 |
virtual void | setObservationId (Int)=0 |
virtual void | setProcessorId (Int)=0 |
virtual void | setScanNumber (Int)=0 |
virtual void | setStateId (Int)=0 |
virtual void | setExposure (Double)=0 |
virtual void | setInterval (Double)=0 |
virtual void | setRowId (Int)=0 |
virtual void | setSigma (Int correlation, Float value)=0 |
virtual void | setSigma (const Vector< Float > &value)=0 |
virtual void | setTime (Double)=0 |
virtual void | setTimeCentroid (Double)=0 |
virtual void | setWeight (Int correlation, Float value)=0 |
virtual void | setWeight (const Vector< Float > &value)=0 |
virtual const Vector< Double > | uvw () const =0 |
virtual void | setUvw (const Vector< Double > &)=0 |
virtual const Complex & | corrected (Int correlation, Int channel) const =0 |
virtual const Matrix< Complex > & | corrected () const =0 |
virtual void | setCorrected (Int correlation, Int channel, const Complex &value)=0 |
virtual void | setCorrected (const Matrix< Complex > &value)=0 |
virtual const Complex & | model (Int correlation, Int channel) const =0 |
virtual const Matrix< Complex > & | model () const =0 |
virtual void | setModel (Int correlation, Int channel, const Complex &value)=0 |
virtual void | setModel (const Matrix< Complex > &value)=0 |
virtual const Complex & | observed (Int correlation, Int channel) const =0 |
virtual const Matrix< Complex > & | observed () const =0 |
virtual void | setObserved (Int correlation, Int channel, const Complex &value)=0 |
virtual void | setObserved (const Matrix< Complex > &value)=0 |
virtual const Float & | singleDishData (Int correlation, Int channel) const =0 |
virtual const Matrix< Float > | singleDishData () const =0 |
virtual void | setSingleDishData (Int correlation, Int channel, const Float &value)=0 |
virtual void | setSingleDishData (const Matrix< Float > &value)=0 |
virtual Float | sigma (Int correlation) const =0 |
virtual const Vector< Float > & | sigma () const =0 |
virtual Float | weight (Int correlation) const =0 |
virtual const Vector< Float > & | weight () const =0 |
virtual Float | weightSpectrum (Int correlation, Int channel) const =0 |
virtual const Matrix< Float > & | weightSpectrum () const =0 |
virtual Float | sigmaSpectrum (Int correlation, Int channel) const =0 |
virtual const Matrix< Float > & | sigmaSpectrum () const =0 |
virtual Bool | isRowFlagged () const =0 |
virtual const Matrix< Bool > & | flags () const =0 |
virtual void | setFlags (const Matrix< Bool > &)=0 |
virtual Bool | isFlagged (Int correlation, Int channel) const =0 |
virtual void | setRowFlag (Bool isFlagged)=0 |
virtual void | setFlags (Bool isFlagged, Int correlation, Int channel)=0 |
Protected Member Functions | |
Bool | isWritable () const |
uInt | row () const |
vi::VisBuffer2 * | vb () const |
Private Member Functions | |
MsRow (const MsRow &other) | |
Private Attributes | |
const Bool | isWritable_p |
Int | row_p |
vi::VisBuffer2 * | vb_p |
class MsRowAttributes {
public:
MsRowAttributes (Int row, VisBuffer2 * vb) : row_p (row), vb_p (vb) {}
Int antenna1 () const; Int antenna2 () const; Int array () const; Int dataDescriptionId () const; Int feed1 () const; Int feed2 () const; Int field () const; Int observation () const; Int processorId () const; Int scan () const; Int state () const;
private: };
class MsRowCoordinates {
public:
MsRowCoordinates (Int row, VisBuffer2 * vb) : row_p (row), vb_p (vb) {}
Double exposure () const; Int fieldId () const; Double interval () const; Double time () const { return vb_p->time() (row_p); } Double timeCentroid () const; const Vector<Double> & uvw () const;
private:
Int row_p; vi::VisBuffer2 * vb_p;
};
class MsRowData {
public:
MsRowData (Int row, VisBuffer2 * vb) : row_p (row), vb_p (vb) {}
const Complex & corrected (Int correlation, Int channel) const; const Complex & model (Int correlation, Int channel) const; const Complex & observed (Int correlation, Int channel) const { return vb_p->visCube () (correlation, channel, row_p); } const Float sigma () const; const Float weight () const; const Float weightSpectrum (Int correlation, Int channel) const;
private:
Int row_p; const vi::VisBuffer2 * vb_p;
};
class MsRowFlagging {
public:
MsRowFlagging (Int row, VisBuffer2 * vb) : row_p (row), vb_p (vb) {}
Bool isFlagged () const; Bool isFlagged (Int correlation, Int channel) const;
void setFlag (Bool isFlagged); void setFlag (Bool isFlagged, Int correlation, Int channel);
private:
Int row_p; vi::VisBuffer2 * vb_p; };
class MsRow {
public:
const MsRowAttributes & attributes () const; const MsRowCoordinates & coordinates () const; const MsRowData & data () const; const MsRowFlagging & flagging () const;
protected:
private:
int row_p; };
Definition at line 131 of file MsRows.h.
casa::ms::MsRow::MsRow | ( | Int | row, | |
const vi::VisBuffer2 * | vb | |||
) |
Constructors.
Constructor for read-only access. Attempt to write will throw exception.
casa::ms::MsRow::MsRow | ( | Int | row, | |
vi::VisBuffer2 * | vb | |||
) |
Constructor for read/write access.
casa::ms::MsRow::MsRow | ( | const MsRow & | other | ) | [private] |
virtual Int casa::ms::MsRow::antenna1 | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::antenna2 | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::arrayId | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::changeRow | ( | Int | row | ) | [inline, virtual] |
virtual const Matrix<Complex>& casa::ms::MsRow::corrected | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Complex& casa::ms::MsRow::corrected | ( | Int | correlation, | |
Int | channel | |||
) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::correlationType | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::dataDescriptionId | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Double casa::ms::MsRow::exposure | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::feed1 | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::feed2 | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::fieldId | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Matrix<Bool>& casa::ms::MsRow::flags | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Double casa::ms::MsRow::interval | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Bool casa::ms::MsRow::isFlagged | ( | Int | correlation, | |
Int | channel | |||
) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Bool casa::ms::MsRow::isRowFlagged | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
Bool casa::ms::MsRow::isWritable | ( | ) | const [protected] |
virtual const Matrix<Complex>& casa::ms::MsRow::model | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Complex& casa::ms::MsRow::model | ( | Int | correlation, | |
Int | channel | |||
) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::observationId | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Matrix<Complex>& casa::ms::MsRow::observed | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Complex& casa::ms::MsRow::observed | ( | Int | correlation, | |
Int | channel | |||
) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::processorId | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
uInt casa::ms::MsRow::row | ( | ) | const [protected] |
virtual Int casa::ms::MsRow::rowId | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::scanNumber | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setAntenna1 | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setAntenna2 | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setArrayId | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setCorrected | ( | const Matrix< Complex > & | value | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setCorrected | ( | Int | correlation, | |
Int | channel, | |||
const Complex & | value | |||
) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setCorrelationType | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setDataDescriptionId | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setExposure | ( | Double | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setFeed1 | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setFeed2 | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setFieldId | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setFlags | ( | Bool | isFlagged, | |
Int | correlation, | |||
Int | channel | |||
) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setFlags | ( | const Matrix< Bool > & | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setInterval | ( | Double | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setModel | ( | const Matrix< Complex > & | value | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setModel | ( | Int | correlation, | |
Int | channel, | |||
const Complex & | value | |||
) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setObservationId | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setObserved | ( | const Matrix< Complex > & | value | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setObserved | ( | Int | correlation, | |
Int | channel, | |||
const Complex & | value | |||
) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setProcessorId | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setRowFlag | ( | Bool | isFlagged | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setRowId | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setScanNumber | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setSigma | ( | const Vector< Float > & | value | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setSigma | ( | Int | correlation, | |
Float | value | |||
) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setSingleDishData | ( | const Matrix< Float > & | value | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setSingleDishData | ( | Int | correlation, | |
Int | channel, | |||
const Float & | value | |||
) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setStateId | ( | Int | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setTime | ( | Double | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setTimeCentroid | ( | Double | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setUvw | ( | const Vector< Double > & | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setWeight | ( | const Vector< Float > & | value | ) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual void casa::ms::MsRow::setWeight | ( | Int | correlation, | |
Float | value | |||
) | [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Vector<Float>& casa::ms::MsRow::sigma | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Float casa::ms::MsRow::sigma | ( | Int | correlation | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Matrix<Float>& casa::ms::MsRow::sigmaSpectrum | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Float casa::ms::MsRow::sigmaSpectrum | ( | Int | correlation, | |
Int | channel | |||
) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Matrix<Float> casa::ms::MsRow::singleDishData | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Float& casa::ms::MsRow::singleDishData | ( | Int | correlation, | |
Int | channel | |||
) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::spectralWindow | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Int casa::ms::MsRow::stateId | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Double casa::ms::MsRow::time | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Double casa::ms::MsRow::timeCentroid | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Vector<Double> casa::ms::MsRow::uvw | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
vi::VisBuffer2* casa::ms::MsRow::vb | ( | ) | const [protected] |
virtual const Vector<Float>& casa::ms::MsRow::weight | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Float casa::ms::MsRow::weight | ( | Int | correlation | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual const Matrix<Float>& casa::ms::MsRow::weightSpectrum | ( | ) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
virtual Float casa::ms::MsRow::weightSpectrum | ( | Int | correlation, | |
Int | channel | |||
) | const [pure virtual] |
Implemented in casa::ms::Vbi2MsRow.
const Bool casa::ms::MsRow::isWritable_p [private] |
Int casa::ms::MsRow::row_p [private] |
Definition at line 242 of file MsRows.h.
Referenced by changeRow().
vi::VisBuffer2* casa::ms::MsRow::vb_p [private] |