casa::AWConvFunc Class Reference

------------------------------------------------------------------------------------------- More...

#include <AWConvFunc.h>

Inheritance diagram for casa::AWConvFunc:
casa::ConvolutionFunction casa::AWConvFunc2 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, Bool fillCF=True)
 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 void fillConvFuncBuffer (CFBuffer &cfb, CFBuffer &cfWtb, const Int &nx, const Int &ny, const Vector< Double > &freqValues, const Vector< Double > &wValues, const Double &wScale, const Double &vbPA, const Double &freqHi, const PolMapType &muellerElements, const PolMapType &muellerElementsIndex, const VisBuffer &vb, const Float &psScale, PSTerm &psTerm, WTerm &wTerm, ATerm &aTerm, Bool isDryRun=False)
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 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 &params)
virtual Matrix< Double > getFreqRangePerSpw (const VisBuffer &vb)
virtual CountedPtr< CFTermsgetTerm (const String &name)

Static Public Member Functions

static void makeConvFunction2 (const String &uvGridDiskimage, const Vector< Double > &uvScale, const Vector< Double > &uvOffset, const Matrix< Double > &vbFreqSelection, CFStore2 &cfs, CFStore2 &cfwts, const Bool psTermOn, const Bool aTermOn)
static void fillConvFuncBuffer2 (CFBuffer &cfb, CFBuffer &cfWtb, const Int &nx, const Int &ny, const ImageInterface< Complex > &skyImage, const CFCStruct &miscInfo, PSTerm &psTerm, WTerm &wTerm, ATerm &aTerm)
static void makeConjPolAxis (CoordinateSystem &cs, Int conjStokes_in=-1)
 Global methods (services).
static Complex cfArea (Matrix< Complex > &cf, const Int &xSupport, const Int &ySupport, const Float &sampling)
static Bool awFindSupport (Array< Complex > &func, Float &threshold, Int &origin, Int &radius)
static Bool setUpCFSupport (Array< Complex > &func, Int &xSupport, Int &ySupport, const Float &sampling, const Complex &peak)
static Bool resizeCF (Array< Complex > &func, Int &xSupport, Int &ySupport, const Int &supportBuffer, const Float &sampling, const Complex &peak)
static Int getOversampling (PSTerm &psTerm, WTerm &wTerm, ATerm &aTerm)

Public Attributes

CountedPtr< ATermaTerm_p
CountedPtr< PSTermpsTerm_p
CountedPtr< WTermwTerm_p

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)

Protected Attributes

Vector< Double > thePix_p
Vector< Double > pixFieldGrad_p
Double imRefFreq_p
Bool wbAWP_p
CountedPtr< CFBufferbaseCFB_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.

casa::AWConvFunc::~AWConvFunc (  )  [inline]

Definition at line 65 of file AWConvFunc.h.


Member Function Documentation

static Bool casa::AWConvFunc::awFindSupport ( Array< Complex > &  func,
Float &  threshold,
Int &  origin,
Int &  radius 
) [static]
static Complex casa::AWConvFunc::cfArea ( Matrix< Complex > &  cf,
const Int &  xSupport,
const Int &  ySupport,
const Float &  sampling 
) [static]
virtual 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 Double &  vbPA,
const Double &  freqHi,
const PolMapType &  muellerElements,
const PolMapType &  muellerElementsIndex,
const VisBuffer vb,
const Float &  psScale,
PSTerm psTerm,
WTerm wTerm,
ATerm aTerm,
Bool  isDryRun = False 
) [virtual]
static void casa::AWConvFunc::fillConvFuncBuffer2 ( CFBuffer cfb,
CFBuffer cfWtb,
const Int &  nx,
const Int &  ny,
const ImageInterface< Complex > &  skyImage,
const CFCStruct miscInfo,
PSTerm psTerm,
WTerm wTerm,
ATerm aTerm 
) [static]
Parameters:
miscInfo const CoordinateSystem& skyCoords,
virtual Vector<Double> casa::AWConvFunc::findPointingOffset ( const ImageInterface< Complex > &  ,
const VisBuffer  
) [inline, virtual]

Implements casa::ConvolutionFunction.

Reimplemented in casa::AWConvFuncEPJones.

Definition at line 116 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]
static Int casa::AWConvFunc::getOversampling ( PSTerm psTerm,
WTerm wTerm,
ATerm aTerm 
) [static]
virtual CountedPtr<CFTerms> casa::AWConvFunc::getTerm ( const String &  name  )  [inline, virtual]

Reimplemented from casa::ConvolutionFunction.

Definition at line 142 of file AWConvFunc.h.

References aTerm_p.

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 111 of file AWConvFunc.h.

References aTerm_p.

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

Bool casa::AWConvFunc::makeAverageResponse_org ( const VisBuffer vb,
const ImageInterface< Complex > &  image,
ImageInterface< Float > &  theavgPB,
Bool  reset = True 
) [protected]
static void casa::AWConvFunc::makeConjPolAxis ( CoordinateSystem &  cs,
Int  conjStokes_in = -1 
) [static]

Global methods (services).

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,
Bool  fillCF = True 
) [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.

static void casa::AWConvFunc::makeConvFunction2 ( const String &  uvGridDiskimage,
const Vector< Double > &  uvScale,
const Vector< Double > &  uvOffset,
const Matrix< Double > &  vbFreqSelection,
CFStore2 cfs,
CFStore2 cfwts,
const Bool  psTermOn,
const Bool  aTermOn 
) [static]
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 119 of file AWConvFunc.h.

References aTerm_p.

void casa::AWConvFunc::normalizeAvgPB ( ImageInterface< Complex > &  inImage,
ImageInterface< Float > &  outImage 
) [protected]
AWConvFunc& casa::AWConvFunc::operator= ( const AWConvFunc other  ) 

Reimplemented in casa::AWConvFuncEPJones.

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.

static Bool casa::AWConvFunc::resizeCF ( Array< Complex > &  func,
Int &  xSupport,
Int &  ySupport,
const Int &  supportBuffer,
const Float &  sampling,
const Complex &  peak 
) [static]
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 113 of file AWConvFunc.h.

References aTerm_p.

static Bool casa::AWConvFunc::setUpCFSupport ( Array< Complex > &  func,
Int &  xSupport,
Int &  ySupport,
const Float &  sampling,
const Complex &  peak 
) [static]

Member Data Documentation

Definition at line 146 of file AWConvFunc.h.

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

CountedPtr<CFBuffer> casa::AWConvFunc::baseCFB_p [protected]

Definition at line 163 of file AWConvFunc.h.

Double casa::AWConvFunc::imRefFreq_p [protected]

Definition at line 161 of file AWConvFunc.h.

Vector<Double> casa::AWConvFunc::pixFieldGrad_p [protected]

Definition at line 160 of file AWConvFunc.h.

Referenced by AWConvFunc().

Definition at line 147 of file AWConvFunc.h.

Vector<Double> casa::AWConvFunc::thePix_p [protected]

Definition at line 160 of file AWConvFunc.h.

Bool casa::AWConvFunc::wbAWP_p [protected]

Definition at line 162 of file AWConvFunc.h.

Definition at line 148 of file AWConvFunc.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1