casa
5.7.0-16
|
RFDataMapper: maps complex visibilities to a single real value. More...
#include <RFDataMapper.h>
Public Types | |
enum | MapperType { MAPROW, MAPCORR } |
type of data mapper: row or individual correlations More... | |
typedef casacore::Cube < casacore::Complex > *(* | CubeMapperFunc )(VisBuffer &) |
a cube mapper function maps a visbuffer to a data cube. More... | |
Public Member Functions | |
RFDataMapper (const casacore::String &col, DDMapper *map) | |
construct from a column and a DDMapper More... | |
RFDataMapper (const casacore::Vector< casacore::String > &expr, const casacore::String &defcol="") | |
construct from a column and an expression More... | |
~RFDataMapper () | |
destructor More... | |
MapperType | type () |
returns type of mapper More... | |
casacore::Double | getValueCycle () |
If the value being mapped into is cyclic (i.e. More... | |
casacore::Double | getValueBase () |
Returns base of a cyclic value (e.g. More... | |
casacore::Float | mapValue (casacore::uInt ich, casacore::uInt irow) |
gets a value from the DDMapper More... | |
casacore::Float | mapValue (casacore::uInt irow) |
gets a value from the row mapper More... | |
RFlagWord | corrMask (const VisibilityIterator &vi) |
uses mapper to compute a correlations mask More... | |
void | setVisBuffer (VisBuffer &vb) |
point the datamapper at a visbuffer - called for every new buffer More... | |
casacore::String | description () const |
returns description More... | |
casacore::String | descExpression () const |
returns description of expression More... | |
Static Protected Member Functions | |
static CubeMapperFunc | getCubeMapper (const casacore::String &col, casacore::Bool throw_excp=false) |
static helper function to interpret constructor parameters into a cube mapper More... | |
Protected Attributes | |
casacore::String | expr_desc |
casacore::String | desc |
DDMapper * | ddm |
RowMapperFunc | rowmapper |
casacore::Cube < casacore::Complex > * | pviscube |
casacore::Vector < casacore::RigidVector < casacore::Double, 3 > > * | puvw |
CubeMapperFunc | cubemap |
MapperType | mytype |
casacore::Double | full_cycle |
casacore::Double | cycle_base |
casacore::Double | sin_dec |
required by the HA mapper - sin(declination) of phase center; More... | |
RFDataMapper: maps complex visibilities to a single real value.
Internal
RFDataMapper provides a mechanism to derive a single real value from a set of complex visibilities in a specific column, using a user-specified expression (i.e. ABS(XX), ABS(XX)-ABS(YY), etc.) This is used by many flagging agents.
To provide a common mechanism for all flagging agents
Definition at line 73 of file RFDataMapper.h.
typedef casacore::Cube<casacore::Complex>*(* casa::RFDataMapper::CubeMapperFunc)(VisBuffer &) |
a cube mapper function maps a visbuffer to a data cube.
This belongs in private or protected, but the SGI compiler wouldn't hear of it
Definition at line 114 of file RFDataMapper.h.
type of data mapper: row or individual correlations
Enumerator | |
---|---|
MAPROW | |
MAPCORR |
Definition at line 77 of file RFDataMapper.h.
casa::RFDataMapper::RFDataMapper | ( | const casacore::String & | col, |
DDMapper * | map | ||
) |
construct from a column and a DDMapper
casa::RFDataMapper::RFDataMapper | ( | const casacore::Vector< casacore::String > & | expr, |
const casacore::String & | defcol = "" |
||
) |
construct from a column and an expression
casa::RFDataMapper::~RFDataMapper | ( | ) |
destructor
|
protected |
|
protected |
|
protected |
RFlagWord casa::RFDataMapper::corrMask | ( | const VisibilityIterator & | vi | ) |
uses mapper to compute a correlations mask
Referenced by casa::RFADiffMapBase::newCorrMask().
|
inline |
returns description of expression
Definition at line 162 of file RFDataMapper.h.
References expr_desc.
|
inline |
|
protected |
various row mappers
|
staticprotected |
static helper function to interpret constructor parameters into a cube mapper
|
inline |
Returns base of a cyclic value (e.g.
-180, if value is an angle -180..180) If value is non-cyclic, the result is undefined.
Definition at line 167 of file RFDataMapper.h.
References cycle_base.
|
inline |
If the value being mapped into is cyclic (i.e.
an angle), returns value of full cycle (e.g. 360); otherwise returns 0.
Definition at line 165 of file RFDataMapper.h.
References full_cycle.
|
protected |
|
inline |
gets a value from the DDMapper
Definition at line 149 of file RFDataMapper.h.
References ddm, casa::DDMapper::map(), and pviscube.
|
inline |
gets a value from the row mapper
Definition at line 157 of file RFDataMapper.h.
References rowmapper.
void casa::RFDataMapper::setVisBuffer | ( | VisBuffer & | vb | ) |
point the datamapper at a visbuffer - called for every new buffer
Referenced by casa::RFADiffMapBase::setupMapper().
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 126 of file RFDataMapper.h.
|
protected |
Definition at line 128 of file RFDataMapper.h.
Referenced by getValueBase().
|
protected |
Definition at line 122 of file RFDataMapper.h.
Referenced by mapValue().
|
protected |
Definition at line 121 of file RFDataMapper.h.
Referenced by description().
|
protected |
Definition at line 121 of file RFDataMapper.h.
Referenced by descExpression().
|
protected |
Definition at line 128 of file RFDataMapper.h.
Referenced by getValueCycle().
|
protected |
Definition at line 127 of file RFDataMapper.h.
Referenced by type().
|
protected |
Definition at line 125 of file RFDataMapper.h.
|
protected |
Definition at line 124 of file RFDataMapper.h.
Referenced by mapValue().
|
protected |
Definition at line 123 of file RFDataMapper.h.
Referenced by mapValue().
|
protected |
required by the HA mapper - sin(declination) of phase center;
Definition at line 143 of file RFDataMapper.h.