casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
casa::AWConvFunc Class Reference


More...

#include <AWConvFunc.h>

Inheritance diagram for casa::AWConvFunc:
casa::ConvolutionFunction casa::AWConvFuncEPJones

List of all members.

Public Member Functions

 AWConvFunc (const CountedPtr< ATerm > ATerm, const CountedPtr< PSTerm > psTerm, const CountedPtr< WTerm > wTerm, const Bool wbAWP=False)
 ~AWConvFunc ()
AWConvFuncoperator= (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< DoublefindPointingOffset (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< DoublemakeFreqValList (Double &freqScale, const VisBuffer &vb, const ImageInterface< Complex > &uvGrid)
virtual Vector< DoublemakeWValList (const Double &dW, const Int &nW)
virtual void setMiscInfo (const RecordInterface &params)
virtual Matrix< DoublegetFreqRangePerSpw (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< ATermaTerm_p
CountedPtr< PSTermpsTerm_p
CountedPtr< WTermwTerm_p
Vector< DoublethePix_p
Vector< DoublepixFieldGrad_p
Double imRefFreq_p
Bool wbAWP_p

Detailed Description


Definition at line 54 of file AWConvFunc.h.


Constructor & Destructor Documentation

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().

Definition at line 65 of file AWConvFunc.h.


Member Function Documentation

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]
Bool casa::AWConvFunc::makeAverageResponse_org ( const VisBuffer vb,
const ImageInterface< Complex > &  image,
ImageInterface< Float > &  theavgPB,
Bool  reset = True 
) [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]

Member Data Documentation

Definition at line 133 of file AWConvFunc.h.

Referenced by getVisParams(), mapAntIDToAntType(), and setPolMap().

Definition at line 137 of file AWConvFunc.h.

Definition at line 136 of file AWConvFunc.h.

Referenced by AWConvFunc().

Definition at line 134 of file AWConvFunc.h.

Definition at line 136 of file AWConvFunc.h.

Definition at line 138 of file AWConvFunc.h.

Definition at line 135 of file AWConvFunc.h.


The documentation for this class was generated from the following file: