casa
$Rev:20696$
|
The base class to represent the Aperture-Term of the Measurement Equation. More...
#include <CFTerms.h>
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< Int > | vbRow2CFKeyMap (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 | |
LogIO & | logIO () |
Protected Attributes | |
LogIO | logIO_p |
Vector< Int > | polMap_p_base |
OpCodes | opCode_p |
The base class to represent the Aperture-Term of the Measurement Equation.
Public interface
A-Term to account for the effects of the antenna primary beam(s).
casa::CFTerms::CFTerms | ( | ) | [inline] |
virtual casa::CFTerms::~CFTerms | ( | ) | [inline, virtual] |
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] |
Implemented in casa::PSTerm, casa::WTerm, casa::ATerm, casa::NoOpATerm, and casa::EVLAAperture.
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] |
Implemented in casa::PSTerm, casa::WTerm, casa::ATerm, casa::NoOpATerm, and casa::EVLAAperture.
virtual Int casa::CFTerms::getConvSize | ( | ) | [pure virtual] |
Implemented in casa::PSTerm, casa::ATerm, casa::WTerm, and casa::ALMAAperture.
virtual Float casa::CFTerms::getConvWeightSizeFactor | ( | ) | [pure virtual] |
Implemented in casa::PSTerm, casa::ATerm, casa::WTerm, and casa::ALMAAperture.
virtual Int casa::CFTerms::getOversampling | ( | ) | [pure virtual] |
Implemented in casa::PSTerm, casa::ATerm, casa::WTerm, and casa::ALMAAperture.
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] |
Implemented in casa::ATerm, casa::NoOpATerm, casa::ALMAAperture, casa::PSTerm, and casa::WTerm.
virtual int casa::CFTerms::getVisParams | ( | const VisBuffer & | vb, |
const CoordinateSystem & | skyCoord = CoordinateSystem() |
||
) | [pure virtual] |
Implemented in casa::ATerm, casa::ALMAAperture, casa::NoOpATerm, casa::PSTerm, casa::EVLAAperture, and casa::WTerm.
virtual Bool casa::CFTerms::isNoOp | ( | ) | [inline, virtual] |
Reimplemented in casa::NoOpATerm.
LogIO& casa::CFTerms::logIO | ( | ) | [inline, protected] |
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] |
Implemented in casa::ALMAAperture, casa::PSTerm, casa::ATerm, casa::WTerm, and casa::EVLAAperture.
virtual String casa::CFTerms::name | ( | ) | [pure virtual] |
Implemented in casa::PSTerm, casa::ALMAAperture, casa::WTerm, casa::ATerm, casa::NoOpATerm, and casa::EVLAAperture.
virtual void casa::CFTerms::normalizeImage | ( | Lattice< Complex > & | skyImage, |
const Matrix< Float > & | weights | ||
) | [pure virtual] |
Implemented in casa::ATerm, casa::NoOpATerm, casa::PSTerm, and casa::WTerm.
virtual void casa::CFTerms::setOpCode | ( | OpCodes | code | ) | [inline, virtual] |
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.
LogIO casa::CFTerms::logIO_p [protected] |
OpCodes casa::CFTerms::opCode_p [protected] |
Definition at line 133 of file CFTerms.h.
Referenced by isNoOp(), and setOpCode().
Vector<Int> casa::CFTerms::polMap_p_base [protected] |
Reimplemented in casa::ATerm.
Definition at line 132 of file CFTerms.h.
Referenced by getPolMap(), and setPolMap().