The base class to compute convolution functions for convolutional gridding. More...
#include <ConvolutionFunction.h>
Public Member Functions | |
ConvolutionFunction () | |
ConvolutionFunction (Int dim) | |
virtual | ~ConvolutionFunction () |
virtual void | setDimension (Int n) |
Set the dimention of the convolution function. | |
virtual CF_TYPE | getValue (Vector< CF_TYPE > &, Vector< CF_TYPE > &) |
Given the pixel co-ordinates and an offset values, this returns the value of the convolution function. | |
virtual int | getVisParams (const VisBuffer2 &vb, const CoordinateSystem &skyCoord=CoordinateSystem())=0 |
A support function which, for now, returns and integer ID corresponding to the on-sky frequency of the supplied VisBuffer. | |
virtual void | makeConvFunction (const ImageInterface< Complex > &image, const VisBuffer2 &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, Bool fillCF=True)=0 |
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. | |
virtual Bool | makeAverageResponse (const VisBuffer2 &vb, const ImageInterface< Complex > &image, ImageInterface< Float > &theavgPB, Bool reset=True)=0 |
This method computes the average response function. | |
virtual Bool | makeAverageResponse (const VisBuffer2 &vb, const ImageInterface< Complex > &image, ImageInterface< Complex > &theavgPB, Bool reset=True)=0 |
virtual void | setPolMap (const Vector< Int > &polMap)=0 |
virtual void | setSpwSelection (const Cube< Int > &spwChanSelFlag) |
virtual void | setSpwFreqSelection (const Matrix< Double > &spwFreqSel) |
virtual void | setRotateCF (const Double &computeCFAngleRad, const Double &rotateOTF) |
virtual Bool | findSupport (Array< Complex > &func, Float &threshold, Int &origin, Int &R)=0 |
virtual void setFeedStokes(const Vector<Int>& feedStokes) = 0; | |
virtual Vector< Double > | findPointingOffset (const ImageInterface< Complex > &image, const VisBuffer2 &vb)=0 |
virtual void | prepareConvFunction (const VisBuffer2 &vb, VBRow2CFBMapType &theMap)=0 |
virtual void setParams(const Vector<Int>& polMap, const Vector<Int>& feedStokes) {setPolMap(polMap); setFeedStokes(feedStokes);}; | |
virtual Matrix< Int > | makeBaselineList (const Vector< Int > &antList) |
virtual Int | mapAntIDToAntType (const Int &) |
virtual void | setMiscInfo (const RecordInterface &) |
virtual CountedPtr< CFTerms > | getTerm (const String &) |
Protected Member Functions | |
LogIO & | logIO () |
Protected Attributes | |
LogIO | logIO_p |
Cube< Int > | spwChanSelFlag_p |
Matrix< Double > | spwFreqSelection_p |
Double | computeCFAngleRad_p |
Double | rotateCFOTFAngleRad_p |
Private Attributes | |
Int | nDim |
The base class to compute convolution functions for convolutional gridding.
Public interface
Class to encapsulate the convolution function for convolutional gridding.
Standard method of re-sampling data to or from a
regular grid is done by convolutional gridding. This requires a convolution function which a finte support size and well behaved function in the Fourier domain. For standard gridding, the Prolate Spheroidal function are used. Convolution functions used in Projection algorithms (like W-Projection, A-Projection, etc. and their combinations) each require potentially different mechanisms to compute. These are implemented in separate classes in the Synthesis module. Since these are used in common framework for gridding and de-gridding, these are all derived from a common base class. ConvolutionFunction (this class) is that base class.
Most of the methods in this base class are pure virtual. I.e., only surviving offsprings (derived classes) of this class will be those that will have the wisdom that they methods represent.
Definition at line 78 of file ConvolutionFunction.h.
casa::refim::ConvolutionFunction::ConvolutionFunction | ( | ) | [inline] |
Definition at line 81 of file ConvolutionFunction.h.
casa::refim::ConvolutionFunction::ConvolutionFunction | ( | Int | dim | ) | [inline] |
Definition at line 85 of file ConvolutionFunction.h.
References nDim.
virtual casa::refim::ConvolutionFunction::~ConvolutionFunction | ( | ) | [virtual] |
virtual Vector<Double> casa::refim::ConvolutionFunction::findPointingOffset | ( | const ImageInterface< Complex > & | image, | |
const VisBuffer2 & | vb | |||
) | [pure virtual] |
Implemented in casa::refim::AWConvFunc, casa::refim::AWConvFuncEPJones, and casa::refim::IlluminationConvFunc.
virtual Bool casa::refim::ConvolutionFunction::findSupport | ( | Array< Complex > & | func, | |
Float & | threshold, | |||
Int & | origin, | |||
Int & | R | |||
) | [pure virtual] |
virtual void setFeedStokes(const Vector<Int>& feedStokes) = 0;
Implemented in casa::refim::AWConvFunc, casa::refim::EVLAConvFunc, casa::refim::IlluminationConvFunc, and casa::refim::VLACalcIlluminationConvFunc.
virtual CountedPtr<CFTerms> casa::refim::ConvolutionFunction::getTerm | ( | const String & | ) | [inline, virtual] |
Reimplemented in casa::refim::AWConvFunc.
Definition at line 156 of file ConvolutionFunction.h.
virtual CF_TYPE casa::refim::ConvolutionFunction::getValue | ( | Vector< CF_TYPE > & | , | |
Vector< CF_TYPE > & | ||||
) | [inline, virtual] |
Given the pixel co-ordinates and an offset values, this returns the value of the convolution function.
This is however not used anywhere yet (and is therefore also not a pure virtual function).
Reimplemented in casa::refim::IlluminationConvFunc.
Definition at line 98 of file ConvolutionFunction.h.
virtual int casa::refim::ConvolutionFunction::getVisParams | ( | const VisBuffer2 & | vb, | |
const CoordinateSystem & | skyCoord = CoordinateSystem() | |||
) | [pure virtual] |
A support function which, for now, returns and integer ID corresponding to the on-sky frequency of the supplied VisBuffer.
Implemented in casa::refim::AWConvFunc, and casa::refim::IlluminationConvFunc.
LogIO& casa::refim::ConvolutionFunction::logIO | ( | ) | [inline, protected] |
Reimplemented in casa::refim::EVLAConvFunc.
Definition at line 160 of file ConvolutionFunction.h.
References logIO_p.
virtual Bool casa::refim::ConvolutionFunction::makeAverageResponse | ( | const VisBuffer2 & | vb, | |
const ImageInterface< Complex > & | image, | |||
ImageInterface< Complex > & | theavgPB, | |||
Bool | reset = True | |||
) | [pure virtual] |
Implemented in casa::refim::AWConvFunc, and casa::refim::IlluminationConvFunc.
virtual Bool casa::refim::ConvolutionFunction::makeAverageResponse | ( | const VisBuffer2 & | vb, | |
const ImageInterface< Complex > & | image, | |||
ImageInterface< Float > & | theavgPB, | |||
Bool | reset = True | |||
) | [pure 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.
Implemented in casa::refim::AWConvFunc, casa::refim::IlluminationConvFunc, and casa::refim::VLACalcIlluminationConvFunc.
virtual Matrix<Int> casa::refim::ConvolutionFunction::makeBaselineList | ( | const Vector< Int > & | antList | ) | [virtual] |
virtual void casa::refim::ConvolutionFunction::makeConvFunction | ( | const ImageInterface< Complex > & | image, | |
const VisBuffer2 & | 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, | |||
Bool | fillCF = True | |||
) | [pure 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.
Implemented in casa::refim::AWConvFunc, and casa::refim::AWConvFuncEPJones.
virtual Int casa::refim::ConvolutionFunction::mapAntIDToAntType | ( | const Int & | ) | [inline, virtual] |
Reimplemented in casa::refim::AWConvFunc.
Definition at line 154 of file ConvolutionFunction.h.
virtual void casa::refim::ConvolutionFunction::prepareConvFunction | ( | const VisBuffer2 & | vb, | |
VBRow2CFBMapType & | theMap | |||
) | [pure virtual] |
virtual void setParams(const Vector<Int>& polMap, const Vector<Int>& feedStokes) {setPolMap(polMap); setFeedStokes(feedStokes);};
virtual void prepareConvFunction(const VisBuffer2& vb, CFStore2& cfs)=0;
Implemented in casa::refim::AWConvFunc, casa::refim::IlluminationConvFunc, and casa::refim::TabulatedConvFunc.
virtual void casa::refim::ConvolutionFunction::setDimension | ( | Int | n | ) | [inline, virtual] |
Set the dimention of the convolution function.
Definition at line 92 of file ConvolutionFunction.h.
References nDim.
virtual void casa::refim::ConvolutionFunction::setMiscInfo | ( | const RecordInterface & | ) | [inline, virtual] |
Reimplemented in casa::refim::AWConvFunc.
Definition at line 155 of file ConvolutionFunction.h.
virtual void casa::refim::ConvolutionFunction::setPolMap | ( | const Vector< Int > & | polMap | ) | [pure virtual] |
Implemented in casa::refim::AWConvFunc, and casa::refim::EVLAConvFunc.
virtual void casa::refim::ConvolutionFunction::setRotateCF | ( | const Double & | computeCFAngleRad, | |
const Double & | rotateOTF | |||
) | [inline, virtual] |
Definition at line 140 of file ConvolutionFunction.h.
References computeCFAngleRad_p, and rotateCFOTFAngleRad_p.
virtual void casa::refim::ConvolutionFunction::setSpwFreqSelection | ( | const Matrix< Double > & | spwFreqSel | ) | [inline, virtual] |
Definition at line 139 of file ConvolutionFunction.h.
References spwFreqSelection_p.
virtual void casa::refim::ConvolutionFunction::setSpwSelection | ( | const Cube< Int > & | spwChanSelFlag | ) | [inline, virtual] |
Definition at line 138 of file ConvolutionFunction.h.
References spwChanSelFlag_p.
Double casa::refim::ConvolutionFunction::computeCFAngleRad_p [protected] |
Definition at line 164 of file ConvolutionFunction.h.
Referenced by setRotateCF().
LogIO casa::refim::ConvolutionFunction::logIO_p [protected] |
Reimplemented in casa::refim::EVLAConvFunc.
Definition at line 161 of file ConvolutionFunction.h.
Referenced by logIO().
Int casa::refim::ConvolutionFunction::nDim [private] |
Definition at line 158 of file ConvolutionFunction.h.
Referenced by ConvolutionFunction(), and setDimension().
Double casa::refim::ConvolutionFunction::rotateCFOTFAngleRad_p [protected] |
Definition at line 164 of file ConvolutionFunction.h.
Referenced by setRotateCF().
Cube<Int> casa::refim::ConvolutionFunction::spwChanSelFlag_p [protected] |
Definition at line 162 of file ConvolutionFunction.h.
Referenced by setSpwSelection().
Matrix<Double> casa::refim::ConvolutionFunction::spwFreqSelection_p [protected] |
Definition at line 163 of file ConvolutionFunction.h.
Referenced by setSpwFreqSelection().