#include <SkyCal.h>
Public Member Functions | |
SkyCal () | |
all the member functions are inline | |
virtual | ~SkyCal () |
uInt | typesize () const |
stride In Mueller series, typesize is defined as "number of polarizations" while SkyCal definition is "number of elements in the DATA cell", which is npol * nchan in practice. | |
void | setNumChannel (uInt n) |
void | setNumPolarization (uInt n) |
void | setScalarData (Bool scalardata) const |
Set scalardata_ TBD: Handle this better; for now, we need to set this from an external call so we handle single-corr data properly when setting non-corr-dep flags. | |
void | sync (CalDataType &mat) |
Synchronize with leading element in external array. | |
void | sync (CalDataType &mat, Bool &ok) |
void | origin () |
Reset to origin. | |
void | operator++ () |
Increment to next vector (according to len) In practice, this operator increments row index. | |
void | operator++ (int) |
void | advance (const Int &step) |
Advance step matrices forward (according to len). | |
void | invert () |
In-place invert. | |
void | setMatByOk () |
Set matrix elements according to ok flag (so we don't have to check ok flags atomically in apply). | |
void | apply (Matrix< DataType > &v, Matrix< Bool > &f) |
In-place multiply onto a data with flag information apply implements position switch calibration: (ON - OFF)/OFF. | |
void | apply (Matrix< DataType > &v, Matrix< Bool > &f, Vector< Bool > &vflag) |
void | applyFlag (Vector< Bool > &vflag) |
Apply only flags according to cal flags. | |
void | flag (Matrix< Bool > &v) |
void | apply (Matrix< DataType > &out, Matrix< Bool > &outFlag, const Matrix< DataType > &in, const Matrix< Bool > &inFlag) |
Multiply onto a vis VisVector, preserving input (copy then in-place apply). | |
Private Member Functions | |
SkyCal (const SkyCal< DataType, CalDataType > &mat) | |
Copy ctor protected. | |
Private Attributes | |
uInt | npol_ |
uInt | nchan_ |
CalDataType * | m0_ |
Pointer to origin. | |
Bool * | ok0_ |
CalDataType * | m_ |
Moving pointer. | |
CalDataType * | mi_ |
Bool * | ok_ |
Bool * | oki_ |
const CalDataType | cOne_ |
Complex unity, zero (for use in invert and similar methods). | |
const CalDataType | cZero_ |
Bool | scalardata_ |
Friends | |
ostream & | operator<< (ostream &os, const SkyCal< DataType, CalDataType > &mat) |
print it out |
Internal or
Internal
Definition at line 139 of file SkyCal.h.
casa::SkyCal< DataType, CalDataType >::SkyCal | ( | ) | [inline] |
virtual casa::SkyCal< DataType, CalDataType >::~SkyCal | ( | ) | [inline, virtual] |
casa::SkyCal< DataType, CalDataType >::SkyCal | ( | const SkyCal< DataType, CalDataType > & | mat | ) | [private] |
Copy ctor protected.
void casa::SkyCal< DataType, CalDataType >::advance | ( | const Int & | step | ) | [inline] |
Advance step matrices forward (according to len).
Definition at line 186 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m_, casa::SkyCal< DataType, CalDataType >::ok_, and casa::SkyCal< DataType, CalDataType >::typesize().
void casa::SkyCal< DataType, CalDataType >::apply | ( | Matrix< DataType > & | out, | |
Matrix< Bool > & | outFlag, | |||
const Matrix< DataType > & | in, | |||
const Matrix< Bool > & | inFlag | |||
) | [inline] |
Multiply onto a vis VisVector, preserving input (copy then in-place apply).
Definition at line 260 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::apply().
void casa::SkyCal< DataType, CalDataType >::apply | ( | Matrix< DataType > & | v, | |
Matrix< Bool > & | f, | |||
Vector< Bool > & | vflag | |||
) | [inline] |
Definition at line 220 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::apply(), casa::SkyCal< DataType, CalDataType >::applyFlag(), and casa::SkyCal< DataType, CalDataType >::ok_.
void casa::SkyCal< DataType, CalDataType >::apply | ( | Matrix< DataType > & | v, | |
Matrix< Bool > & | f | |||
) | [inline] |
In-place multiply onto a data with flag information apply implements position switch calibration: (ON - OFF)/OFF.
This processes the data corresponding to each DATA cell (npol * nchan) together in contrast to Mueller series, which processes one Stokes vector, i.e., process each channel individually.
(ON - OFF) / OFF
Definition at line 205 of file SkyCal.h.
References casa::data, casa::SkyCal< DataType, CalDataType >::flag(), casa::SkyCal< DataType, CalDataType >::m_, casa::SkyCal< DataType, CalDataType >::nchan_, and casa::SkyCal< DataType, CalDataType >::npol_.
Referenced by casa::SkyCal< DataType, CalDataType >::apply().
void casa::SkyCal< DataType, CalDataType >::applyFlag | ( | Vector< Bool > & | vflag | ) | [inline] |
Apply only flags according to cal flags.
Similar to apply, flagging also processes each DATA cell together.
Definition at line 231 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::nchan_, casa::SkyCal< DataType, CalDataType >::npol_, casa::SkyCal< DataType, CalDataType >::ok_, and casa::SkyCal< DataType, CalDataType >::scalardata_.
Referenced by casa::SkyCal< DataType, CalDataType >::apply().
void casa::SkyCal< DataType, CalDataType >::flag | ( | Matrix< Bool > & | v | ) | [inline] |
Definition at line 249 of file SkyCal.h.
References casa::data, casa::SkyCal< DataType, CalDataType >::ok_, and casa::SkyCal< DataType, CalDataType >::typesize().
Referenced by casa::SkyCal< DataType, CalDataType >::apply().
void casa::SkyCal< DataType, CalDataType >::invert | ( | ) | [inline] |
void casa::SkyCal< DataType, CalDataType >::operator++ | ( | int | ) | [inline] |
Definition at line 183 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m_, casa::SkyCal< DataType, CalDataType >::ok_, and casa::SkyCal< DataType, CalDataType >::typesize().
void casa::SkyCal< DataType, CalDataType >::operator++ | ( | ) | [inline] |
Increment to next vector (according to len) In practice, this operator increments row index.
Definition at line 182 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m_, casa::SkyCal< DataType, CalDataType >::ok_, and casa::SkyCal< DataType, CalDataType >::typesize().
void casa::SkyCal< DataType, CalDataType >::origin | ( | ) | [inline] |
Reset to origin.
Definition at line 178 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m0_, casa::SkyCal< DataType, CalDataType >::m_, casa::SkyCal< DataType, CalDataType >::ok0_, and casa::SkyCal< DataType, CalDataType >::ok_.
Referenced by casa::SkyCal< DataType, CalDataType >::sync().
void casa::SkyCal< DataType, CalDataType >::setMatByOk | ( | ) | [inline] |
void casa::SkyCal< DataType, CalDataType >::setNumChannel | ( | uInt | n | ) | [inline] |
Definition at line 164 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::nchan_.
void casa::SkyCal< DataType, CalDataType >::setNumPolarization | ( | uInt | n | ) | [inline] |
Definition at line 165 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::npol_.
void casa::SkyCal< DataType, CalDataType >::setScalarData | ( | Bool | scalardata | ) | const [inline] |
Set scalardata_ TBD: Handle this better; for now, we need to set this from an external call so we handle single-corr data properly when setting non-corr-dep flags.
Definition at line 171 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::scalardata_.
void casa::SkyCal< DataType, CalDataType >::sync | ( | CalDataType & | mat, | |
Bool & | ok | |||
) | [inline] |
Definition at line 175 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m0_, casa::SkyCal< DataType, CalDataType >::ok0_, and casa::SkyCal< DataType, CalDataType >::origin().
void casa::SkyCal< DataType, CalDataType >::sync | ( | CalDataType & | mat | ) | [inline] |
Synchronize with leading element in external array.
Definition at line 174 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m0_, and casa::SkyCal< DataType, CalDataType >::origin().
uInt casa::SkyCal< DataType, CalDataType >::typesize | ( | ) | const [inline] |
stride In Mueller series, typesize is defined as "number of polarizations" while SkyCal definition is "number of elements in the DATA cell", which is npol * nchan in practice.
Definition at line 163 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::nchan_, and casa::SkyCal< DataType, CalDataType >::npol_.
Referenced by casa::SkyCal< DataType, CalDataType >::advance(), casa::SkyCal< DataType, CalDataType >::flag(), and casa::SkyCal< DataType, CalDataType >::operator++().
ostream& operator<< | ( | ostream & | os, | |
const SkyCal< DataType, CalDataType > & | mat | |||
) | [friend] |
const CalDataType casa::SkyCal< DataType, CalDataType >::cOne_ [private] |
const CalDataType casa::SkyCal< DataType, CalDataType >::cZero_ [private] |
CalDataType* casa::SkyCal< DataType, CalDataType >::m0_ [private] |
Pointer to origin.
Definition at line 281 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::origin(), and casa::SkyCal< DataType, CalDataType >::sync().
CalDataType* casa::SkyCal< DataType, CalDataType >::m_ [private] |
Moving pointer.
Definition at line 285 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::advance(), casa::SkyCal< DataType, CalDataType >::apply(), casa::SkyCal< DataType, CalDataType >::operator++(), and casa::SkyCal< DataType, CalDataType >::origin().
CalDataType * casa::SkyCal< DataType, CalDataType >::mi_ [private] |
uInt casa::SkyCal< DataType, CalDataType >::nchan_ [private] |
Definition at line 278 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::apply(), casa::SkyCal< DataType, CalDataType >::applyFlag(), casa::SkyCal< DataType, CalDataType >::setNumChannel(), and casa::SkyCal< DataType, CalDataType >::typesize().
uInt casa::SkyCal< DataType, CalDataType >::npol_ [private] |
Definition at line 277 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::apply(), casa::SkyCal< DataType, CalDataType >::applyFlag(), casa::SkyCal< DataType, CalDataType >::setNumPolarization(), and casa::SkyCal< DataType, CalDataType >::typesize().
Bool* casa::SkyCal< DataType, CalDataType >::ok0_ [private] |
Definition at line 282 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::origin(), and casa::SkyCal< DataType, CalDataType >::sync().
Bool* casa::SkyCal< DataType, CalDataType >::ok_ [private] |
Definition at line 286 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::advance(), casa::SkyCal< DataType, CalDataType >::apply(), casa::SkyCal< DataType, CalDataType >::applyFlag(), casa::SkyCal< DataType, CalDataType >::flag(), casa::SkyCal< DataType, CalDataType >::operator++(), and casa::SkyCal< DataType, CalDataType >::origin().
Bool * casa::SkyCal< DataType, CalDataType >::oki_ [private] |
Bool casa::SkyCal< DataType, CalDataType >::scalardata_ [mutable, private] |
Definition at line 291 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::applyFlag(), and casa::SkyCal< DataType, CalDataType >::setScalarData().