RFDataMapper.h

Classes

RFDataMapper -- RFDataMapper: maps complex visibilities to a single real value (full description)

class RFDataMapper

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)

Description

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

Member Description

RFDataMapper( const String &col,DDMapper *map )

construct from a column and a DDMapper

RFDataMapper( const Vector<String> &expr,const String &defcol = "" )

construct from a column and an expression

~RFDataMapper()

destructor

MapperType type ()

returns type of mapper

Double getValueCycle ()

If the value being mapped into is cyclic (i.e. an angle), returns value of full cycle (e.g. 360); otherwise returns 0.

Double getValueBase ()

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

void setVisBuffer (VisBuffer &vb)

point the datamapper at a visbuffer - called for every new buffer

String description () const

returns description

String descExpression () const

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

Float dummyRowMapper (uInt)

for cyclic values (i.e. angles)

various row mappers

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)