casa
$Rev:20696$
|
A class to apply the W-Term to the given image. More...
#include <WTerm.h>
Public Member Functions | |
WTerm () | |
~WTerm () | |
virtual void | applySky (Matrix< Complex > &screen, const Int wPixel, const Vector< Double > &sampling, const Double wScale, const Int inner) |
virtual void | applySky (Matrix< Complex > &screen, const Vector< Double > &sampling, const Double wValue, const Int inner) |
int | getVisParams (const VisBuffer &vb, const CoordinateSystem &skyCoord=CoordinateSystem()) |
void | setPolMap (const Vector< Int > &polMap) |
The mapping from VisBuffer polarizations map to the Image plane polarization. | |
virtual Float | getSupportThreshold () |
virtual void | normalizeImage (Lattice< Complex > &skyImage, const Matrix< Float > &weights) |
WTerm normalizes the image be unity. | |
virtual String | name () |
void | applySky (ImageInterface< Float > &outputImages, const VisBuffer &vb, const Bool doSquint=True, const Int &cfKey=0, const Double=-1) |
The following functions are not required for W-Term but need to be implemented here since they are pure virtuals in CFTerms base class. | |
void | applySky (ImageInterface< Complex > &outputImages, const VisBuffer &vb, const Bool doSquint=True, const Int &cfKey=0, const Double=-1) |
Vector< Int > | vbRow2CFKeyMap (const VisBuffer &vb, Int &nUnique) |
Not sure if the following method is requried. | |
Int | makePBPolnCoords (const VisBuffer &vb, const Int &convSize, const Int &convSampling, const CoordinateSystem &skyCoord, const Int &skyNx, const Int &skyNy, CoordinateSystem &feedCoord) |
Int | getConvSize () |
Int | getOversampling () |
Float | getConvWeightSizeFactor () |
A class to apply the W-Term to the given image.
Public interface
<h3>Etymology</h3> W-Term to account for non co-planar baselines <h3>Synopsis</h3>
casa::WTerm::WTerm | ( | ) | [inline] |
casa::WTerm::~WTerm | ( | ) | [inline] |
virtual void casa::WTerm::applySky | ( | Matrix< Complex > & | screen, |
const Int | wPixel, | ||
const Vector< Double > & | sampling, | ||
const Double | wScale, | ||
const Int | inner | ||
) | [virtual] |
virtual void casa::WTerm::applySky | ( | Matrix< Complex > & | screen, |
const Vector< Double > & | sampling, | ||
const Double | wValue, | ||
const Int | inner | ||
) | [virtual] |
void casa::WTerm::applySky | ( | ImageInterface< Float > & | outputImages, |
const VisBuffer & | vb, | ||
const Bool | doSquint = True , |
||
const Int & | cfKey = 0 , |
||
const Double | = -1 |
||
) | [inline, virtual] |
The following functions are not required for W-Term but need to be implemented here since they are pure virtuals in CFTerms base class.
Implements casa::CFTerms.
void casa::WTerm::applySky | ( | ImageInterface< Complex > & | outputImages, |
const VisBuffer & | vb, | ||
const Bool | doSquint = True , |
||
const Int & | cfKey = 0 , |
||
const Double | = -1 |
||
) | [inline, virtual] |
Implements casa::CFTerms.
Int casa::WTerm::getConvSize | ( | ) | [inline, virtual] |
Implements casa::CFTerms.
Float casa::WTerm::getConvWeightSizeFactor | ( | ) | [inline, virtual] |
Implements casa::CFTerms.
Int casa::WTerm::getOversampling | ( | ) | [inline, virtual] |
Implements casa::CFTerms.
virtual Float casa::WTerm::getSupportThreshold | ( | ) | [inline, virtual] |
int casa::WTerm::getVisParams | ( | const VisBuffer & | vb, |
const CoordinateSystem & | skyCoord = CoordinateSystem() |
||
) | [inline, virtual] |
Implements casa::CFTerms.
Definition at line 69 of file WTerm.h.
Referenced by casa::WOnlyConvFunc::getVisParams().
Int casa::WTerm::makePBPolnCoords | ( | const VisBuffer & | vb, |
const Int & | convSize, | ||
const Int & | convSampling, | ||
const CoordinateSystem & | skyCoord, | ||
const Int & | skyNx, | ||
const Int & | skyNy, | ||
CoordinateSystem & | feedCoord | ||
) | [inline, virtual] |
Implements casa::CFTerms.
virtual String casa::WTerm::name | ( | ) | [inline, virtual] |
virtual void casa::WTerm::normalizeImage | ( | Lattice< Complex > & | skyImage, |
const Matrix< Float > & | weights | ||
) | [inline, virtual] |
WTerm normalizes the image be unity.
Implements casa::CFTerms.
void casa::WTerm::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 from casa::CFTerms.
Definition at line 71 of file WTerm.h.
Referenced by casa::WOnlyConvFunc::setPolMap().
Vector<Int> casa::WTerm::vbRow2CFKeyMap | ( | const VisBuffer & | vb, |
Int & | nUnique | ||
) | [inline, 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.
Implements casa::CFTerms.