RFDataMapper.h
Classes
- RFDataMapper -- RFDataMapper: maps complex visibilities to a single real value (full description)
Interface
- Public Members
- RFDataMapper( const String &col,DDMapper *map )
- RFDataMapper( const Vector<String> &expr,const String &defcol = "" )
- ~RFDataMapper()
- MapperType type ()
- Double getValueCycle ()
- Double getValueBase ()
- Float mapValue ( uInt ich,uInt irow )
- Float mapValue ( uInt irow )
- RFlagWord corrMask (const VisibilityIterator &vi)
- void setVisBuffer (VisBuffer &vb)
- String description () const
- String descExpression () const
- Protected Members
- static CubeMapperFunc getCubeMapper( const String &col,Bool throw_excp = False )
- Float dummyRowMapper (uInt)
- Float U_RowMapper (uInt)
- Float V_RowMapper (uInt)
- Float W_RowMapper (uInt)
- Float AbsU_RowMapper (uInt)
- Float AbsV_RowMapper (uInt)
- Float AbsW_RowMapper (uInt)
- Float UVD_RowMapper (uInt)
- Float UVA_RowMapper (uInt)
- Float HA_RowMapper (uInt)
Prerequisite
Synopsis
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.
Motivation
To provide a common mechanism for all flagging agents
To Do
- add this feature
- fix this bug
- start discussion of this possible extension
Member Description
construct from a column and a DDMapper
construct from a column and an expression
destructor
MapperType type ()
returns type of mapper
If the value being mapped into is cyclic (i.e. an angle),
returns value of full cycle (e.g. 360); otherwise returns 0.
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.
Float mapValue ( uInt ich,uInt irow )
gets a value from the DDMapper
Float mapValue ( uInt irow )
gets a value from the row mapper
RFlagWord corrMask (const VisibilityIterator &vi)
uses mapper to compute a correlations mask
point the datamapper at a visbuffer - called for every new buffer
returns description
returns description of expression
static CubeMapperFunc getCubeMapper( const String &col,Bool throw_excp = False )
static helper function to interpret constructor parameters into a cube mapper
for cyclic values (i.e. angles)
various row mappers