casa
5.7.0-16
|
class ALMAAperture : public ATerm More...
#include <ALMAAperture.h>
Public Member Functions | |
ALMAAperture () | |
~ALMAAperture () | |
ALMAAperture & | operator= (const ALMAAperture &other) |
virtual void | makeFullJones (casacore::ImageInterface< casacore::Complex > &pbImage, const VisBuffer &vb, casacore::Bool doSquint, casacore::Int &bandID, casacore::Double freqVal) |
Overload these functions. More... | |
virtual casacore::String | name () |
virtual void | applySky (casacore::ImageInterface< casacore::Float > &outputImage, const VisBuffer &vb, const casacore::Bool doSquint=true, const casacore::Int &cfKey=0, const casacore::Double freqVal=-1.0) |
virtual void | applySky (casacore::ImageInterface< casacore::Complex > &outputImage, const VisBuffer &vb, const casacore::Bool doSquint=true, const casacore::Int &cfKey=0, const casacore::Double freqVal=-1.0) |
void | applySky (casacore::ImageInterface< casacore::Float > &outputImage, const VisBuffer &vb, const casacore::Bool doSquint, const casacore::Int &cfKey, const casacore::Bool raytrace) |
void | applySky (casacore::ImageInterface< casacore::Complex > &outputImage, const VisBuffer &vb, const casacore::Bool doSquint, const casacore::Int &cfKey, const casacore::Bool raytrace) |
virtual casacore::Vector < casacore::Int > | vbRow2CFKeyMap (const VisBuffer &vb, casacore::Int &nUnique) |
Not sure if the following method is requried. More... | |
void | cacheVBInfo (const casacore::String &telescopeName, const casacore::Float &diameter) |
void | cacheVBInfo (const VisBuffer &vb) |
casacore::Int | getBandID (const casacore::Double &freq, const casacore::String &telescopeName) |
virtual void | setPolMap (const casacore::Vector< casacore::Int > &polMap) |
The mapping from VisBuffer polarizations map to the Image plane polarization. More... | |
virtual void | getPolMap (casacore::Vector< casacore::Int > &polMap) |
casacore::Vector< ALMAAntennaType > | antTypeMap (const VisBuffer &vb) |
virtual casacore::Int getConvSize() {return CONVSIZE;}; virtual casacore::Int getOversampling() {return OVERSAMPLING;} virtual casacore::Float getConvWeightSizeFactor() {return CONVWTSIZEFACTOR;}; virtual casacore::Float getSupportThreshold() {return THRESHOLD;}; More... | |
void | resetAntTypeMap () |
call this before reusing the same ALMAAperture object on a different MS More... | |
casacore::Vector< ALMAAntennaType > | antTypeList (const VisBuffer &vb) |
generate the lists of antenna types for the whole vb More... | |
casacore::Int | getVisParams (const VisBuffer &vb, const casacore::CoordinateSystem &skyCoord=casacore::CoordinateSystem()) |
casacore::Int | makePBPolnCoords (const VisBuffer &vb, const casacore::Int &convSize, const casacore::Int &convSampling, const casacore::CoordinateSystem &skyCoord, const casacore::Int &skyNx, const casacore::Int &skyNy, casacore::CoordinateSystem &feedCoord) |
Not sure if the following method is requried. More... | |
void | destroyAntResp () |
Public Member Functions inherited from casa::AzElAperture | |
AzElAperture () | |
~AzElAperture () | |
virtual void | rotate (const VisBuffer &vb, CFCell &cfc, const casacore::Double &rotAngleIncrement=5.0) |
virtual void rotate(const VisBuffer& vb, CFStore2& cfs)=0; More... | |
virtual void | rotate2 (const VisBuffer &vb, CFCell &baseCFC, CFCell &cfc, const casacore::Double &rotAngleIncrement=5.0) |
Public Member Functions inherited from casa::ATerm | |
ATerm () | |
virtual | ~ATerm () |
virtual void | applySky (casacore::ImageInterface< casacore::Float > &outputImages, const VisBuffer &vb, const casacore::Bool doSquint=true, const casacore::Int &cfKey=0, const casacore::Int &muellerTerm=0, const casacore::Double freqVal=-1.0)=0 |
virtual void | applySky (casacore::ImageInterface< casacore::Complex > &outputImages, const VisBuffer &vb, const casacore::Bool doSquint=true, const casacore::Int &cfKey=0, const casacore::Int &muellerTerm=0, const casacore::Double freqVal=-1.0)=0 |
virtual void | applySky (casacore::ImageInterface< casacore::Complex > &outImages, const casacore::Double &pa, const casacore::Bool doSquint, const casacore::Int &cfKey, const casacore::Int &muellerTerm, const casacore::Double freqVal)=0 |
virtual casacore::Int | makePBPolnCoords (const casacore::Vector< casacore::Int > &vbCorrTypes, const casacore::Int &convSize, const casacore::Int &convSampling, const casacore::CoordinateSystem &skyCoord, const casacore::Int &skyNx, const casacore::Int &skyNy, casacore::CoordinateSystem &feedCoord) |
virtual casacore::Vector < casacore::Int > | getAntTypeList () |
virtual casacore::Int | getConvSize () |
virtual casacore::Int | getOversampling () |
{ casacore::Int defaultConvSize=CONVSIZE; defaultConvSize= SynthesisUtils::getenv("CONVSIZE",CONVSIZE); if (envStr != "") { sscanf(envStr.c_str,"%d",&defaultConvSize); cerr << "ConvFuncSize set to " << defaultConvSize << endl; } return defaultConvSize; }; More... | |
virtual casacore::Float | getConvWeightSizeFactor () |
{ casacore::Int defaultOverSampling=OVERSAMPLING; char *envStr; if ((envStr = getenv("OVERSAMPLING")) != NULL) { sscanf(envStr,"%d",&defaultOverSampling); cerr << "Oversampling set to " << defaultOverSampling << endl; } return defaultOverSampling; } More... | |
virtual casacore::Float | getSupportThreshold () |
virtual void | normalizeImage (casacore::Lattice< casacore::Complex > &skyImage, const casacore::Matrix< casacore::Float > &weights) |
virtual casacore::Vector<casacore::Int> vbRow2CFKeyMap(const VisBuffer& vb, casacore::Int& nUnique) = 0; virtual casacore::Int getConvSize() = 0; virtual casacore::Int getOversampling() = 0; virtual casacore::Float getConvWeightSizeFactor() = 0; virtual casacore::Float getSupportThreshold() = 0; More... | |
virtual casacore::Int | getBandID (const casacore::Double &freq, const casacore::String &telescopeName, const casacore::String &bandName)=0 |
virtual casacore::Int | mapAntIDToAntType (const casacore::Int &) |
casacore::String | getTelescopeName () |
virtual casacore::Bool | rotationallySymmetric () |
Public Member Functions inherited from casa::CFTerms | |
CFTerms () | |
virtual | ~CFTerms () |
virtual void | setOpCode (OpCodes code) |
virtual casacore::Bool | isNoOp () |
Static Public Member Functions | |
static ALMAAntennaType | antTypeFromName (const casacore::String &name) |
derive type number from first two characters in antenna name, return -1 if not recognised More... | |
static casacore::String | antTypeStrFromType (const ALMAAntennaType &aType) |
static casacore::Int | cFKeyFromAntennaTypes (const ALMAAntennaType aT1, const ALMAAntennaType aT2) |
static casacore::Vector < ALMAAntennaType > | antennaTypesFromCFKey (const casacore::Int &cFKey) |
Private Attributes | |
casacore::Vector< casacore::Int > | polMap_p |
casacore::Bool | haveCannedResponses_p |
casacore::Vector< ALMAAntennaType > | antTypeMap_p |
casacore::Vector < casacore::PagedImage < casacore::Complex > * > | respImage_p |
Static Private Attributes | |
static AntennaResponses * | aR_p |
static casacore::Bool | orderMattersInCFKey |
Additional Inherited Members | |
Public Types inherited from casa::CFTerms | |
enum | OpCodes { NOOP, NORMAL } |
Protected Member Functions inherited from casa::ATerm | |
casacore::LogIO & | logIO () |
Protected Member Functions inherited from casa::CFTerms | |
casacore::LogIO & | logIO () |
Protected Attributes inherited from casa::ATerm | |
casacore::LogIO | logIO_p |
casacore::Vector< casacore::Int > | polMap_p_base |
casacore::Int | cachedOverSampling_p |
casacore::Int | cachedConvSize_p |
casacore::Float | Diameter_p |
casacore::Float | Nant_p |
casacore::Float | HPBW |
casacore::Float | sigma |
casacore::String | telescopeName_p |
Protected Attributes inherited from casa::CFTerms | |
casacore::LogIO | logIO_p |
casacore::Vector< casacore::Int > | polMap_p_base |
OpCodes | opCode_p |
class ALMAAperture : public ATerm
Definition at line 71 of file ALMAAperture.h.
casa::ALMAAperture::ALMAAperture | ( | ) |
casa::ALMAAperture::~ALMAAperture | ( | ) |
|
static |
|
static |
derive type number from first two characters in antenna name, return -1 if not recognised
casacore::Vector<ALMAAntennaType> casa::ALMAAperture::antTypeList | ( | const VisBuffer & | vb | ) |
generate the lists of antenna types for the whole vb
casacore::Vector<ALMAAntennaType> casa::ALMAAperture::antTypeMap | ( | const VisBuffer & | vb | ) |
virtual casacore::Int getConvSize() {return CONVSIZE;}; virtual casacore::Int getOversampling() {return OVERSAMPLING;} virtual casacore::Float getConvWeightSizeFactor() {return CONVWTSIZEFACTOR;}; virtual casacore::Float getSupportThreshold() {return THRESHOLD;};
tell the antenna type number for each antenna in the antenna table
|
static |
|
inlinevirtual |
Definition at line 88 of file ALMAAperture.h.
Referenced by applySky().
|
inlinevirtual |
Definition at line 96 of file ALMAAperture.h.
References applySky().
void casa::ALMAAperture::applySky | ( | casacore::ImageInterface< casacore::Float > & | outputImage, |
const VisBuffer & | vb, | ||
const casacore::Bool | doSquint, | ||
const casacore::Int & | cfKey, | ||
const casacore::Bool | raytrace | ||
) |
void casa::ALMAAperture::applySky | ( | casacore::ImageInterface< casacore::Complex > & | outputImage, |
const VisBuffer & | vb, | ||
const casacore::Bool | doSquint, | ||
const casacore::Int & | cfKey, | ||
const casacore::Bool | raytrace | ||
) |
|
virtual |
Implements casa::ATerm.
|
virtual |
Implements casa::ATerm.
|
static |
|
inline |
Definition at line 152 of file ALMAAperture.h.
References aR_p.
casacore::Int casa::ALMAAperture::getBandID | ( | const casacore::Double & | freq, |
const casacore::String & | telescopeName | ||
) |
|
inlinevirtual |
Reimplemented from casa::ATerm.
Definition at line 121 of file ALMAAperture.h.
References polMap_p, and casacore::Vector< T >::resize().
|
virtual |
Implements casa::ATerm.
|
virtual |
|
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(casacore::Matrix<casacore::Complex>& screen, const casacore::Int wPixel, const casacore::Vector<casacore::Double>& sampling, const casacore::Int wConvSize, const casacore::Double wScale, const casacore::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.
|
inlinevirtual |
Implements casa::ATerm.
Definition at line 86 of file ALMAAperture.h.
ALMAAperture& casa::ALMAAperture::operator= | ( | const ALMAAperture & | other | ) |
|
inline |
call this before reusing the same ALMAAperture object on a different MS
Definition at line 131 of file ALMAAperture.h.
References antTypeMap_p, and casacore::Vector< T >::resize().
|
inlinevirtual |
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 120 of file ALMAAperture.h.
References polMap_p, and casacore::Vector< T >::resize().
|
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(casacore::Matrix<casacore::Complex>& screen, const casacore::Int wPixel, const casacore::Vector<casacore::Double>& sampling, const casacore::Int wConvSize, const casacore::Double wScale, const casacore::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.
|
private |
Definition at line 160 of file ALMAAperture.h.
Referenced by resetAntTypeMap().
|
staticprivate |
Definition at line 152 of file ALMAAperture.h.
Referenced by destroyAntResp().
|
private |
Definition at line 159 of file ALMAAperture.h.
|
staticprivate |
Definition at line 157 of file ALMAAperture.h.
|
private |
Definition at line 158 of file ALMAAperture.h.
Referenced by getPolMap(), and setPolMap().
|
private |
Definition at line 161 of file ALMAAperture.h.