casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
casa::CFTerms Class Reference

The base class to represent the Aperture-Term of the Measurement Equation. More...

#include <CFTerms.h>

Inheritance diagram for casa::CFTerms:
casa::ATerm casa::PSTerm casa::WTerm casa::AzElAperture casa::NoOpATerm casa::ALMAAperture casa::EVLAAperture

List of all members.

Public Types

enum  OpCodes {
  NOOP,
  NORMAL
}

Public Member Functions

 CFTerms ()
virtual ~CFTerms ()
virtual void setOpCode (OpCodes code)
virtual Bool isNoOp ()
virtual String name ()=0
virtual void applySky (ImageInterface< Float > &outputImages, const VisBuffer &vb, const Bool doSquint=True, const Int &cfKey=0, const Double freqVal=-1)=0
virtual void applySky (ImageInterface< Complex > &outputImages, const VisBuffer &vb, const Bool doSquint=True, const Int &cfKey=0, const Double freqVal=-1)=0
virtual Vector< IntvbRow2CFKeyMap (const VisBuffer &vb, Int &nUnique)=0
 Not sure if the following method is requried.
virtual Int makePBPolnCoords (const VisBuffer &vb, const Int &convSize, const Int &convSampling, const CoordinateSystem &skyCoord, const Int &skyNx, const Int &skyNy, CoordinateSystem &feedCoord)=0
virtual Int getConvSize ()=0
virtual Int getOversampling ()=0
virtual Float getConvWeightSizeFactor ()=0
virtual Float getSupportThreshold ()=0
virtual void normalizeImage (Lattice< Complex > &skyImage, const Matrix< Float > &weights)=0
virtual int getVisParams (const VisBuffer &vb, const CoordinateSystem &skyCoord=CoordinateSystem())=0
virtual void setPolMap (const Vector< Int > &polMap)
 The mapping from VisBuffer polarizations map to the Image plane polarization.
virtual void getPolMap (Vector< Int > &polMap)

Protected Member Functions

LogIOlogIO ()

Protected Attributes

LogIO logIO_p
Vector< IntpolMap_p_base
OpCodes opCode_p

Detailed Description

The base class to represent the Aperture-Term of the Measurement Equation.

Intended use:

Public interface

Etymology

A-Term to account for the effects of the antenna primary beam(s).

Synopsis

Definition at line 55 of file CFTerms.h.


Member Enumeration Documentation

Enumerator:
NOOP 
NORMAL 

Definition at line 58 of file CFTerms.h.


Constructor & Destructor Documentation

casa::CFTerms::CFTerms ( ) [inline]

Definition at line 59 of file CFTerms.h.

virtual casa::CFTerms::~CFTerms ( ) [inline, virtual]

Definition at line 60 of file CFTerms.h.


Member Function Documentation

virtual void casa::CFTerms::applySky ( ImageInterface< Float > &  outputImages,
const VisBuffer vb,
const Bool  doSquint = True,
const Int cfKey = 0,
const Double  freqVal = -1 
) [pure virtual]
virtual void casa::CFTerms::applySky ( ImageInterface< Complex > &  outputImages,
const VisBuffer vb,
const Bool  doSquint = True,
const Int cfKey = 0,
const Double  freqVal = -1 
) [pure virtual]
virtual Int casa::CFTerms::getConvSize ( ) [pure virtual]
virtual Float casa::CFTerms::getConvWeightSizeFactor ( ) [pure virtual]
virtual Int casa::CFTerms::getOversampling ( ) [pure virtual]
virtual void casa::CFTerms::getPolMap ( Vector< Int > &  polMap) [inline, virtual]

Reimplemented in casa::NoOpATerm, casa::ATerm, casa::ALMAAperture, and casa::EVLAAperture.

Definition at line 125 of file CFTerms.h.

References polMap_p_base, and casa::Vector< T >::resize().

virtual Float casa::CFTerms::getSupportThreshold ( ) [pure virtual]
virtual int casa::CFTerms::getVisParams ( const VisBuffer vb,
const CoordinateSystem skyCoord = CoordinateSystem() 
) [pure virtual]
virtual Bool casa::CFTerms::isNoOp ( ) [inline, virtual]

Reimplemented in casa::NoOpATerm.

Definition at line 63 of file CFTerms.h.

References NOOP, and opCode_p.

LogIO& casa::CFTerms::logIO ( ) [inline, protected]

Reimplemented in casa::ATerm.

Definition at line 130 of file CFTerms.h.

References logIO_p.

virtual Int casa::CFTerms::makePBPolnCoords ( const VisBuffer vb,
const Int convSize,
const Int convSampling,
const CoordinateSystem skyCoord,
const Int skyNx,
const Int skyNy,
CoordinateSystem feedCoord 
) [pure virtual]
virtual String casa::CFTerms::name ( ) [pure virtual]
virtual void casa::CFTerms::normalizeImage ( Lattice< Complex > &  skyImage,
const Matrix< Float > &  weights 
) [pure virtual]
virtual void casa::CFTerms::setOpCode ( OpCodes  code) [inline, virtual]

Definition at line 62 of file CFTerms.h.

References opCode_p.

virtual void casa::CFTerms::setPolMap ( const Vector< Int > &  polMap) [inline, virtual]

The mapping from VisBuffer polarizations map to the Image plane polarization.

The latter is determined by the user input, which is passed to the FTMachine in Imager.cc

The map is available in the FTMachine which uses this method to set the map for the CFTerms object.

Reimplemented in casa::ATerm, casa::NoOpATerm, casa::ALMAAperture, casa::PSTerm, and casa::WTerm.

Definition at line 124 of file CFTerms.h.

References polMap_p_base, and casa::Vector< T >::resize().

virtual Vector<Int> casa::CFTerms::vbRow2CFKeyMap ( const VisBuffer vb,
Int nUnique 
) [pure virtual]

Not sure if the following method is requried.

Leaving it in the code for now with an implementation that does nothing.

virtual void applySky(Matrix<Complex>& screen, const Int wPixel, const Vector<Double>& sampling, const Int wConvSize, const Double wScale, const Int inner) {(void)screen; (void)wPixel; (void)sampling; (void)wConvSize; (void)wScale; (void)inner;};

Returns a vector of integers that map each row in the given VisBuffer to an index that is used to pick the appropriate convolution function plane. It also returns the number of unique baselines in the nUnique parameter (unique baselines are defined as the number of baselines each requiring a unique convolution function).

This is required for Heterogeneous antenna arrays (like ALMA) and for all arrays where not all antenna aperture illuminations can be treated as identical.

Implemented in casa::ATerm, casa::PSTerm, casa::ALMAAperture, casa::WTerm, and casa::EVLAAperture.


Member Data Documentation

Reimplemented in casa::ATerm.

Definition at line 131 of file CFTerms.h.

Referenced by logIO().

Definition at line 133 of file CFTerms.h.

Referenced by isNoOp(), and setOpCode().

Reimplemented in casa::ATerm.

Definition at line 132 of file CFTerms.h.

Referenced by getPolMap(), and setPolMap().


The documentation for this class was generated from the following file: