class ALMAAperture : public ATerm More...
#include <ALMAAperture.h>
Public Member Functions | |
ALMAAperture () | |
~ALMAAperture () | |
ALMAAperture & | operator= (const ALMAAperture &other) |
virtual void | makeFullJones (ImageInterface< Complex > &pbImage, const VisBuffer &vb, Bool doSquint, Int &bandID, Double freqVal) |
Overload these functions. | |
virtual String | name () |
virtual void | applySky (ImageInterface< Float > &outputImage, const VisBuffer &vb, const Bool doSquint=True, const Int &cfKey=0, const Double freqVal=-1.0) |
virtual void | applySky (ImageInterface< Complex > &outputImage, const VisBuffer &vb, const Bool doSquint=True, const Int &cfKey=0, const Double freqVal=-1.0) |
void | applySky (ImageInterface< Float > &outputImage, const VisBuffer &vb, const Bool doSquint, const Int &cfKey, const Bool raytrace) |
void | applySky (ImageInterface< Complex > &outputImage, const VisBuffer &vb, const Bool doSquint, const Int &cfKey, const Bool raytrace) |
virtual Vector< Int > | vbRow2CFKeyMap (const VisBuffer &vb, Int &nUnique) |
Not sure if the following method is requried. | |
void | cacheVBInfo (const String &telescopeName, const Float &diameter) |
void | cacheVBInfo (const VisBuffer &vb) |
Int | getBandID (const Double &freq, const String &telescopeName) |
virtual void | setPolMap (const Vector< Int > &polMap) |
The mapping from VisBuffer polarizations map to the Image plane polarization. | |
virtual void | getPolMap (Vector< Int > &polMap) |
Vector< ALMAAntennaType > | antTypeMap (const VisBuffer &vb) |
virtual Int getConvSize() {return CONVSIZE;}; virtual Int getOversampling() {return OVERSAMPLING;} virtual Float getConvWeightSizeFactor() {return CONVWTSIZEFACTOR;}; virtual Float getSupportThreshold() {return THRESHOLD;}; | |
void | resetAntTypeMap () |
call this before reusing the same ALMAAperture object on a different MS | |
Vector< ALMAAntennaType > | antTypeList (const VisBuffer &vb) |
generate the lists of antenna types for the whole vb | |
Int | getVisParams (const VisBuffer &vb, const CoordinateSystem &skyCoord=CoordinateSystem()) |
Int | makePBPolnCoords (const VisBuffer &vb, const Int &convSize, const Int &convSampling, const CoordinateSystem &skyCoord, const Int &skyNx, const Int &skyNy, CoordinateSystem &feedCoord) |
Not sure if the following method is requried. | |
void | destroyAntResp () |
Static Public Member Functions | |
static ALMAAntennaType | antTypeFromName (const String &name) |
derive type number from first two characters in antenna name, return -1 if not recognised | |
static String | antTypeStrFromType (const ALMAAntennaType &aType) |
static Int | cFKeyFromAntennaTypes (const ALMAAntennaType aT1, const ALMAAntennaType aT2) |
static Vector< ALMAAntennaType > | antennaTypesFromCFKey (const Int &cFKey) |
Private Attributes | |
Vector< Int > | polMap_p |
Bool | haveCannedResponses_p |
Vector< ALMAAntennaType > | antTypeMap_p |
Vector< PagedImage< Complex > * > | respImage_p |
Static Private Attributes | |
static AntennaResponses * | aR_p |
static Bool | orderMattersInCFKey |
class ALMAAperture : public ATerm
Definition at line 68 of file ALMAAperture.h.
casa::ALMAAperture::ALMAAperture | ( | ) |
casa::ALMAAperture::~ALMAAperture | ( | ) |
static Vector<ALMAAntennaType> casa::ALMAAperture::antennaTypesFromCFKey | ( | const Int & | cFKey | ) | [static] |
static ALMAAntennaType casa::ALMAAperture::antTypeFromName | ( | const String & | name | ) | [static] |
derive type number from first two characters in antenna name, return -1 if not recognised
Vector<ALMAAntennaType> casa::ALMAAperture::antTypeList | ( | const VisBuffer & | vb | ) |
generate the lists of antenna types for the whole vb
Vector<ALMAAntennaType> casa::ALMAAperture::antTypeMap | ( | const VisBuffer & | vb | ) |
virtual Int getConvSize() {return CONVSIZE;}; virtual Int getOversampling() {return OVERSAMPLING;} virtual Float getConvWeightSizeFactor() {return CONVWTSIZEFACTOR;}; virtual Float getSupportThreshold() {return THRESHOLD;};
tell the antenna type number for each antenna in the antenna table
static String casa::ALMAAperture::antTypeStrFromType | ( | const ALMAAntennaType & | aType | ) | [static] |
void casa::ALMAAperture::applySky | ( | ImageInterface< Complex > & | outputImage, | |
const VisBuffer & | vb, | |||
const Bool | doSquint, | |||
const Int & | cfKey, | |||
const Bool | raytrace | |||
) |
void casa::ALMAAperture::applySky | ( | ImageInterface< Float > & | outputImage, | |
const VisBuffer & | vb, | |||
const Bool | doSquint, | |||
const Int & | cfKey, | |||
const Bool | raytrace | |||
) |
virtual void casa::ALMAAperture::applySky | ( | ImageInterface< Complex > & | outputImage, | |
const VisBuffer & | vb, | |||
const Bool | doSquint = True , |
|||
const Int & | cfKey = 0 , |
|||
const Double | freqVal = -1.0 | |||
) | [inline, virtual] |
Definition at line 93 of file ALMAAperture.h.
References applySky(), and casacore::False.
Referenced by applySky().
virtual void casa::ALMAAperture::applySky | ( | ImageInterface< Float > & | outputImage, | |
const VisBuffer & | vb, | |||
const Bool | doSquint = True , |
|||
const Int & | cfKey = 0 , |
|||
const Double | freqVal = -1.0 | |||
) | [inline, virtual] |
Definition at line 85 of file ALMAAperture.h.
References casacore::False.
void casa::ALMAAperture::cacheVBInfo | ( | const VisBuffer & | vb | ) | [virtual] |
Implements casa::ATerm.
void casa::ALMAAperture::cacheVBInfo | ( | const String & | telescopeName, | |
const Float & | diameter | |||
) | [virtual] |
Implements casa::ATerm.
static Int casa::ALMAAperture::cFKeyFromAntennaTypes | ( | const ALMAAntennaType | aT1, | |
const ALMAAntennaType | aT2 | |||
) | [static] |
void casa::ALMAAperture::destroyAntResp | ( | ) | [inline] |
Definition at line 149 of file ALMAAperture.h.
References aR_p.
Int casa::ALMAAperture::getBandID | ( | const Double & | freq, | |
const String & | telescopeName | |||
) | [virtual] |
Implements casa::ATerm.
virtual void casa::ALMAAperture::getPolMap | ( | Vector< Int > & | polMap | ) | [inline, virtual] |
Int casa::ALMAAperture::getVisParams | ( | const VisBuffer & | vb, | |
const CoordinateSystem & | skyCoord = CoordinateSystem() | |||
) | [virtual] |
Implements casa::ATerm.
virtual void casa::ALMAAperture::makeFullJones | ( | ImageInterface< Complex > & | pbImage, | |
const VisBuffer & | vb, | |||
Bool | doSquint, | |||
Int & | bandID, | |||
Double | freqVal | |||
) | [virtual] |
Int casa::ALMAAperture::makePBPolnCoords | ( | const VisBuffer & | vb, | |
const Int & | convSize, | |||
const Int & | convSampling, | |||
const CoordinateSystem & | skyCoord, | |||
const Int & | skyNx, | |||
const Int & | skyNy, | |||
CoordinateSystem & | feedCoord | |||
) | [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.
Reimplemented from casa::ATerm.
virtual String casa::ALMAAperture::name | ( | ) | [inline, virtual] |
ALMAAperture& casa::ALMAAperture::operator= | ( | const ALMAAperture & | other | ) |
void casa::ALMAAperture::resetAntTypeMap | ( | ) | [inline] |
call this before reusing the same ALMAAperture object on a different MS
Definition at line 128 of file ALMAAperture.h.
References antTypeMap_p.
virtual void casa::ALMAAperture::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 ATerm object.
Reimplemented from casa::ATerm.
Definition at line 117 of file ALMAAperture.h.
References polMap_p.
virtual Vector<Int> casa::ALMAAperture::vbRow2CFKeyMap | ( | const VisBuffer & | vb, | |
Int & | nUnique | |||
) | [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.
Reimplemented from casa::ATerm.
Vector<ALMAAntennaType> casa::ALMAAperture::antTypeMap_p [private] |
Definition at line 157 of file ALMAAperture.h.
Referenced by resetAntTypeMap().
AntennaResponses* casa::ALMAAperture::aR_p [static, private] |
Definition at line 149 of file ALMAAperture.h.
Referenced by destroyAntResp().
Bool casa::ALMAAperture::haveCannedResponses_p [private] |
Definition at line 156 of file ALMAAperture.h.
Bool casa::ALMAAperture::orderMattersInCFKey [static, private] |
Definition at line 154 of file ALMAAperture.h.
Vector<Int> casa::ALMAAperture::polMap_p [private] |
Definition at line 155 of file ALMAAperture.h.
Referenced by getPolMap(), and setPolMap().
Vector<PagedImage<Complex>* > casa::ALMAAperture::respImage_p [private] |
Definition at line 158 of file ALMAAperture.h.