casa
$Rev:20696$
|
#include <AWConvFunc.h>
Public Member Functions | |
AWConvFunc (const CountedPtr< ATerm > ATerm, const CountedPtr< PSTerm > psTerm, const CountedPtr< WTerm > wTerm, const Bool wbAWP=False) | |
~AWConvFunc () | |
AWConvFunc & | operator= (const AWConvFunc &other) |
virtual void | makeConvFunction (const ImageInterface< Complex > &image, const VisBuffer &vb, const Int wConvSize, const CountedPtr< PolOuterProduct > &pop, const Float pa, const Float dpa, const Vector< Double > &uvScale, const Vector< Double > &uvOffset, const Matrix< Double > &vbFreqSelection, CFStore2 &cfs, CFStore2 &cfwts) |
This method computes the convolution function and the convolution function used for gridding the weights (typically these are the same) and returns them in the cfs and cfwts parameters. | |
void | fillConvFuncBuffer (CFBuffer &cfb, CFBuffer &cfWtb, const Int &nx, const Int &ny, const Vector< Double > &freqValues, const Vector< Double > &wValues, const Double &wScale, const PolMapType &muellerElements, const PolMapType &muellerElementsIndex, const VisBuffer &vb, const Float &psScale, PSTerm &psTerm, WTerm &wTerm, ATerm &aTerm) |
virtual Bool | makeAverageResponse (const VisBuffer &vb, const ImageInterface< Complex > &image, ImageInterface< Float > &theavgPB, Bool reset=True) |
This method computes the average response function. | |
virtual Bool | makeAverageResponse (const VisBuffer &vb, const ImageInterface< Complex > &image, ImageInterface< Complex > &theavgPB, Bool reset=True) |
virtual int | getVisParams (const VisBuffer &vb, const CoordinateSystem &skyCoord=CoordinateSystem()) |
A support function which, for now, returns and integer ID corresponding to the on-sky frequency of the supplied VisBuffer. | |
virtual void | setPolMap (const Vector< Int > &polMap) |
virtual Bool | findSupport (Array< Complex > &func, Float &threshold, Int &origin, Int &R) |
virtual void setFeedStokes(const Vector<Int>& feedStokes) {aTerm_p->setFeedStokes(feedStokes);}; | |
virtual Vector< Double > | findPointingOffset (const ImageInterface< Complex > &, const VisBuffer &) |
virtual Bool | setUpCFSupport (Array< Complex > &func, Int &xSupport, Int &ySupport, const Float &sampling, const Complex &peak) |
virtual Bool | resizeCF (Array< Complex > &func, Int &xSupport, Int &ySupport, const Float &sampling, const Complex &peak) |
virtual void | prepareConvFunction (const VisBuffer &vb, VBRow2CFBMapType &cfs) |
virtual void setParams(const Vector<Int>& polMap, const Vector<Int>& feedStokes) {setPolMap(polMap); setFeedStokes(feedStokes);}; | |
Int | mapAntIDToAntType (const Int &ant) |
virtual Vector< Double > | makeFreqValList (Double &freqScale, const VisBuffer &vb, const ImageInterface< Complex > &uvGrid) |
virtual Vector< Double > | makeWValList (const Double &dW, const Int &nW) |
virtual void | setMiscInfo (const RecordInterface ¶ms) |
virtual Matrix< Double > | getFreqRangePerSpw (const VisBuffer &vb) |
Protected Member Functions | |
void | normalizeAvgPB (ImageInterface< Complex > &inImage, ImageInterface< Float > &outImage) |
Bool | makeAverageResponse_org (const VisBuffer &vb, const ImageInterface< Complex > &image, ImageInterface< Float > &theavgPB, Bool reset=True) |
void | makePBSq (ImageInterface< Complex > &inImage) |
void | makeConjPolAxis (CoordinateSystem &cs) |
Complex | cfArea (Matrix< Complex > &cf, const Int &xSupport, const Int &ySupport, const Float &sampling) |
Protected Attributes | |
CountedPtr< ATerm > | aTerm_p |
CountedPtr< PSTerm > | psTerm_p |
CountedPtr< WTerm > | wTerm_p |
Vector< Double > | thePix_p |
Vector< Double > | pixFieldGrad_p |
Double | imRefFreq_p |
Bool | wbAWP_p |
Definition at line 54 of file AWConvFunc.h.
casa::AWConvFunc::AWConvFunc | ( | const CountedPtr< ATerm > | ATerm, |
const CountedPtr< PSTerm > | psTerm, | ||
const CountedPtr< WTerm > | wTerm, | ||
const Bool | wbAWP = False |
||
) | [inline] |
Definition at line 57 of file AWConvFunc.h.
References pixFieldGrad_p, and casa::Vector< T >::resize().
casa::AWConvFunc::~AWConvFunc | ( | ) | [inline] |
Definition at line 65 of file AWConvFunc.h.
Complex casa::AWConvFunc::cfArea | ( | Matrix< Complex > & | cf, |
const Int & | xSupport, | ||
const Int & | ySupport, | ||
const Float & | sampling | ||
) | [protected] |
void casa::AWConvFunc::fillConvFuncBuffer | ( | CFBuffer & | cfb, |
CFBuffer & | cfWtb, | ||
const Int & | nx, | ||
const Int & | ny, | ||
const Vector< Double > & | freqValues, | ||
const Vector< Double > & | wValues, | ||
const Double & | wScale, | ||
const PolMapType & | muellerElements, | ||
const PolMapType & | muellerElementsIndex, | ||
const VisBuffer & | vb, | ||
const Float & | psScale, | ||
PSTerm & | psTerm, | ||
WTerm & | wTerm, | ||
ATerm & | aTerm | ||
) |
virtual Vector<Double> casa::AWConvFunc::findPointingOffset | ( | const ImageInterface< Complex > & | , |
const VisBuffer & | |||
) | [inline, virtual] |
Implements casa::ConvolutionFunction.
Reimplemented in casa::AWConvFuncEPJones.
Definition at line 100 of file AWConvFunc.h.
virtual Bool casa::AWConvFunc::findSupport | ( | Array< Complex > & | func, |
Float & | threshold, | ||
Int & | origin, | ||
Int & | R | ||
) | [virtual] |
virtual void setFeedStokes(const Vector<Int>& feedStokes) {aTerm_p->setFeedStokes(feedStokes);};
Implements casa::ConvolutionFunction.
virtual Matrix<Double> casa::AWConvFunc::getFreqRangePerSpw | ( | const VisBuffer & | vb | ) | [virtual] |
virtual int casa::AWConvFunc::getVisParams | ( | const VisBuffer & | vb, |
const CoordinateSystem & | skyCoord = CoordinateSystem() |
||
) | [inline, virtual] |
A support function which, for now, returns and integer ID corresponding to the on-sky frequency of the supplied VisBuffer.
Implements casa::ConvolutionFunction.
Definition at line 95 of file AWConvFunc.h.
References aTerm_p, and casa::ATerm::getVisParams().
virtual Bool casa::AWConvFunc::makeAverageResponse | ( | const VisBuffer & | vb, |
const ImageInterface< Complex > & | image, | ||
ImageInterface< Float > & | theavgPB, | ||
Bool | reset = True |
||
) | [virtual] |
This method computes the average response function.
This is typically image-plane equivalent of the convolution functions, averaged over various axis. The precise averaging will be implementation dependent in the derived classes.
Implements casa::ConvolutionFunction.
virtual Bool casa::AWConvFunc::makeAverageResponse | ( | const VisBuffer & | vb, |
const ImageInterface< Complex > & | image, | ||
ImageInterface< Complex > & | theavgPB, | ||
Bool | reset = True |
||
) | [virtual] |
Implements casa::ConvolutionFunction.
Bool casa::AWConvFunc::makeAverageResponse_org | ( | const VisBuffer & | vb, |
const ImageInterface< Complex > & | image, | ||
ImageInterface< Float > & | theavgPB, | ||
Bool | reset = True |
||
) | [protected] |
void casa::AWConvFunc::makeConjPolAxis | ( | CoordinateSystem & | cs | ) | [protected] |
virtual void casa::AWConvFunc::makeConvFunction | ( | const ImageInterface< Complex > & | image, |
const VisBuffer & | vb, | ||
const Int | wConvSize, | ||
const CountedPtr< PolOuterProduct > & | pop, | ||
const Float | pa, | ||
const Float | dpa, | ||
const Vector< Double > & | uvScale, | ||
const Vector< Double > & | uvOffset, | ||
const Matrix< Double > & | vbFreqSelection, | ||
CFStore2 & | cfs, | ||
CFStore2 & | cfwts | ||
) | [virtual] |
This method computes the convolution function and the convolution function used for gridding the weights (typically these are the same) and returns them in the cfs and cfwts parameters.
The required information about the image and visibility parameters is dervided from the given image and VisBuffer objects. wConvSize is the number of w-term planes and pa is the Parallactic Angle in radians for which the convolution function(s) are computed.
Implements casa::ConvolutionFunction.
Reimplemented in casa::AWConvFuncEPJones.
virtual Vector<Double> casa::AWConvFunc::makeFreqValList | ( | Double & | freqScale, |
const VisBuffer & | vb, | ||
const ImageInterface< Complex > & | uvGrid | ||
) | [virtual] |
void casa::AWConvFunc::makePBSq | ( | ImageInterface< Complex > & | inImage | ) | [protected] |
virtual Vector<Double> casa::AWConvFunc::makeWValList | ( | const Double & | dW, |
const Int & | nW | ||
) | [virtual] |
Int casa::AWConvFunc::mapAntIDToAntType | ( | const Int & | ant | ) | [inline, virtual] |
Reimplemented from casa::ConvolutionFunction.
Definition at line 111 of file AWConvFunc.h.
References aTerm_p, and casa::ATerm::mapAntIDToAntType().
void casa::AWConvFunc::normalizeAvgPB | ( | ImageInterface< Complex > & | inImage, |
ImageInterface< Float > & | outImage | ||
) | [protected] |
AWConvFunc& casa::AWConvFunc::operator= | ( | const AWConvFunc & | other | ) |
virtual void casa::AWConvFunc::prepareConvFunction | ( | const VisBuffer & | vb, |
VBRow2CFBMapType & | theMap | ||
) | [virtual] |
virtual void setParams(const Vector<Int>& polMap, const Vector<Int>& feedStokes) {setPolMap(polMap); setFeedStokes(feedStokes);};
virtual void prepareConvFunction(const VisBuffer& vb, CFStore2& cfs)=0;
Implements casa::ConvolutionFunction.
virtual Bool casa::AWConvFunc::resizeCF | ( | Array< Complex > & | func, |
Int & | xSupport, | ||
Int & | ySupport, | ||
const Float & | sampling, | ||
const Complex & | peak | ||
) | [virtual] |
virtual void casa::AWConvFunc::setMiscInfo | ( | const RecordInterface & | params | ) | [virtual] |
Reimplemented from casa::ConvolutionFunction.
virtual void casa::AWConvFunc::setPolMap | ( | const Vector< Int > & | polMap | ) | [inline, virtual] |
Implements casa::ConvolutionFunction.
Definition at line 97 of file AWConvFunc.h.
References aTerm_p, and casa::ATerm::setPolMap().
virtual Bool casa::AWConvFunc::setUpCFSupport | ( | Array< Complex > & | func, |
Int & | xSupport, | ||
Int & | ySupport, | ||
const Float & | sampling, | ||
const Complex & | peak | ||
) | [virtual] |
CountedPtr<ATerm> casa::AWConvFunc::aTerm_p [protected] |
Definition at line 133 of file AWConvFunc.h.
Referenced by getVisParams(), mapAntIDToAntType(), and setPolMap().
Double casa::AWConvFunc::imRefFreq_p [protected] |
Definition at line 137 of file AWConvFunc.h.
Vector<Double> casa::AWConvFunc::pixFieldGrad_p [protected] |
Definition at line 136 of file AWConvFunc.h.
Referenced by AWConvFunc().
CountedPtr<PSTerm> casa::AWConvFunc::psTerm_p [protected] |
Definition at line 134 of file AWConvFunc.h.
Vector<Double> casa::AWConvFunc::thePix_p [protected] |
Definition at line 136 of file AWConvFunc.h.
Bool casa::AWConvFunc::wbAWP_p [protected] |
Definition at line 138 of file AWConvFunc.h.
CountedPtr<WTerm> casa::AWConvFunc::wTerm_p [protected] |
Definition at line 135 of file AWConvFunc.h.