casa
5.7.0-16
|
#include <SkyCal.h>
Public Member Functions | |
SkyCal () | |
all the member functions are inline More... | |
virtual | ~SkyCal () |
casacore::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. More... | |
void | setNumChannel (casacore::uInt n) |
void | setNumPolarization (casacore::uInt n) |
void | setScalarData (casacore::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. More... | |
void | sync (CalDataType &mat) |
Synchronize with leading element in external array. More... | |
void | sync (CalDataType &mat, casacore::Bool &ok) |
void | origin () |
Reset to origin. More... | |
void | operator++ () |
Increment to next vector (according to len) In practice, this operator increments row index. More... | |
void | operator++ (int) |
void | advance (const casacore::Int &step) |
Advance step matrices forward (according to len) More... | |
void | invert () |
In-place invert. More... | |
void | setMatByOk () |
Set matrix elements according to ok flag (so we don't have to check ok flags atomically in apply) More... | |
void | apply (casacore::Matrix< DataType > &v, casacore::Matrix< casacore::Bool > &f) |
In-place multiply onto a data with flag information apply implements position switch calibration: (ON - OFF)/OFF. More... | |
void | apply (casacore::Matrix< DataType > &v, casacore::Matrix< casacore::Bool > &f, casacore::Vector< casacore::Bool > &vflag) |
void | applyFlag (casacore::Vector< casacore::Bool > &vflag) |
Apply only flags according to cal flags. More... | |
void | flag (casacore::Matrix< casacore::Bool > &v) |
void | apply (casacore::Matrix< DataType > &out, casacore::Matrix< casacore::Bool > &outFlag, const casacore::Matrix< DataType > &in, const casacore::Matrix< casacore::Bool > &inFlag) |
Multiply onto a vis VisVector, preserving input (copy then in-place apply) More... | |
Private Member Functions | |
SkyCal (const SkyCal< DataType, CalDataType > &mat) | |
Copy ctor protected. More... | |
Private Attributes | |
casacore::uInt | npol_ |
print it out unused More... | |
casacore::uInt | nchan_ |
CalDataType * | m0_ |
Pointer to origin. More... | |
casacore::Bool * | ok0_ |
CalDataType * | m_ |
Moving pointer. More... | |
CalDataType * | mi_ |
casacore::Bool * | ok_ |
casacore::Bool * | oki_ |
const CalDataType | cOne_ |
casacore::Complex unity, zero (for use in invert and similar methods) More... | |
const CalDataType | cZero_ |
casacore::Bool | scalardata_ |
Internal or
Internal
|
inline |
|
inlinevirtual |
|
private |
Copy ctor protected.
|
inline |
Advance step matrices forward (according to len)
Definition at line 187 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m_, casa::SkyCal< DataType, CalDataType >::ok_, and casa::SkyCal< DataType, CalDataType >::typesize().
|
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 casacore::Stokes vector, i.e., process each channel individually.
(ON - OFF) / OFF
Definition at line 206 of file SkyCal.h.
References casa::data, casa::SkyCal< DataType, CalDataType >::flag(), casacore::Array< T >::getStorage(), casa::SkyCal< DataType, CalDataType >::m_, casa::SkyCal< DataType, CalDataType >::nchan_, casa::SkyCal< DataType, CalDataType >::npol_, casacore::Array< T >::putStorage(), and casacore::Matrix< T >::shape().
Referenced by casa::SkyCal< DataType, CalDataType >::apply().
|
inline |
Definition at line 227 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::apply(), casa::SkyCal< DataType, CalDataType >::applyFlag(), and casa::SkyCal< DataType, CalDataType >::ok_.
|
inline |
Multiply onto a vis VisVector, preserving input (copy then in-place apply)
Definition at line 275 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::apply().
|
inline |
Apply only flags according to cal flags.
Similar to apply, flagging also processes each DATA cell together.
Definition at line 238 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().
|
inline |
Definition at line 258 of file SkyCal.h.
References casa::data, casacore::Array< T >::getStorage(), casa::SkyCal< DataType, CalDataType >::nchan_, casa::SkyCal< DataType, CalDataType >::npol_, casa::SkyCal< DataType, CalDataType >::ok_, and casacore::Array< T >::putStorage().
Referenced by casa::SkyCal< DataType, CalDataType >::apply().
|
inline |
|
inline |
Increment to next vector (according to len) In practice, this operator increments row index.
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().
|
inline |
Definition at line 184 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m_, casa::SkyCal< DataType, CalDataType >::ok_, and casa::SkyCal< DataType, CalDataType >::typesize().
|
inline |
Reset to origin.
Definition at line 179 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().
|
inline |
|
inline |
Definition at line 165 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::nchan_.
|
inline |
Definition at line 166 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::npol_.
|
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 172 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::scalardata_.
|
inline |
Synchronize with leading element in external array.
Definition at line 175 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m0_, and casa::SkyCal< DataType, CalDataType >::origin().
|
inline |
Definition at line 176 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::m0_, casa::SkyCal< DataType, CalDataType >::ok0_, and casa::SkyCal< DataType, CalDataType >::origin().
|
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 164 of file SkyCal.h.
References casa::SkyCal< DataType, CalDataType >::nchan_, and casa::SkyCal< DataType, CalDataType >::npol_.
Referenced by casa::SkyCal< DataType, CalDataType >::advance(), and casa::SkyCal< DataType, CalDataType >::operator++().
|
private |
|
private |
|
private |
Pointer to origin.
Definition at line 299 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::origin(), and casa::SkyCal< DataType, CalDataType >::sync().
|
private |
Moving pointer.
Definition at line 303 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().
|
private |
|
private |
Definition at line 296 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::apply(), casa::SkyCal< DataType, CalDataType >::applyFlag(), casa::SkyCal< DataType, CalDataType >::flag(), casa::SkyCal< DataType, CalDataType >::setNumChannel(), and casa::SkyCal< DataType, CalDataType >::typesize().
|
private |
print it out unused
Definition at line 295 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::apply(), casa::SkyCal< DataType, CalDataType >::applyFlag(), casa::SkyCal< DataType, CalDataType >::flag(), casa::SkyCal< DataType, CalDataType >::setNumPolarization(), and casa::SkyCal< DataType, CalDataType >::typesize().
|
private |
Definition at line 300 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::origin(), and casa::SkyCal< DataType, CalDataType >::sync().
|
private |
Definition at line 304 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().
|
private |
|
mutableprivate |
Definition at line 309 of file SkyCal.h.
Referenced by casa::SkyCal< DataType, CalDataType >::applyFlag(), and casa::SkyCal< DataType, CalDataType >::setScalarData().