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

A class to apply the W-Term to the given image. More...

#include <WTerm.h>

Inheritance diagram for casa::WTerm:
casa::CFTerms

List of all members.

Public Member Functions

 WTerm ()
 ~WTerm ()
virtual void applySky (Matrix< Complex > &screen, const Int wPixel, const Vector< Double > &sampling, const Double wScale, const Int inner)
virtual void applySky (Matrix< Complex > &screen, const Vector< Double > &sampling, const Double wValue, const Int inner)
int getVisParams (const VisBuffer &vb, const CoordinateSystem &skyCoord=CoordinateSystem())
void setPolMap (const Vector< Int > &polMap)
 The mapping from VisBuffer polarizations map to the Image plane polarization.
virtual Float getSupportThreshold ()
virtual void normalizeImage (Lattice< Complex > &skyImage, const Matrix< Float > &weights)
 WTerm normalizes the image be unity.
virtual String name ()
void applySky (ImageInterface< Float > &outputImages, const VisBuffer &vb, const Bool doSquint=True, const Int &cfKey=0, const Double=-1)
 The following functions are not required for W-Term but need to be implemented here since they are pure virtuals in CFTerms base class.
void applySky (ImageInterface< Complex > &outputImages, const VisBuffer &vb, const Bool doSquint=True, const Int &cfKey=0, const Double=-1)
Vector< IntvbRow2CFKeyMap (const VisBuffer &vb, Int &nUnique)
 Not sure if the following method is requried.
Int makePBPolnCoords (const VisBuffer &vb, const Int &convSize, const Int &convSampling, const CoordinateSystem &skyCoord, const Int &skyNx, const Int &skyNy, CoordinateSystem &feedCoord)
Int getConvSize ()
Int getOversampling ()
Float getConvWeightSizeFactor ()

Detailed Description

A class to apply the W-Term to the given image.

Intended use:

Public interface

  <h3>Etymology</h3>
  W-Term to account for non co-planar baselines

  <h3>Synopsis</h3> 

Definition at line 54 of file WTerm.h.


Constructor & Destructor Documentation

casa::WTerm::WTerm ( ) [inline]

Definition at line 57 of file WTerm.h.

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

Definition at line 58 of file WTerm.h.


Member Function Documentation

virtual void casa::WTerm::applySky ( Matrix< Complex > &  screen,
const Int  wPixel,
const Vector< Double > &  sampling,
const Double  wScale,
const Int  inner 
) [virtual]
virtual void casa::WTerm::applySky ( Matrix< Complex > &  screen,
const Vector< Double > &  sampling,
const Double  wValue,
const Int  inner 
) [virtual]
void casa::WTerm::applySky ( ImageInterface< Float > &  outputImages,
const VisBuffer vb,
const Bool  doSquint = True,
const Int cfKey = 0,
const Double  = -1 
) [inline, virtual]

The following functions are not required for W-Term but need to be implemented here since they are pure virtuals in CFTerms base class.

Implements casa::CFTerms.

Definition at line 83 of file WTerm.h.

void casa::WTerm::applySky ( ImageInterface< Complex > &  outputImages,
const VisBuffer vb,
const Bool  doSquint = True,
const Int cfKey = 0,
const Double  = -1 
) [inline, virtual]

Implements casa::CFTerms.

Definition at line 89 of file WTerm.h.

Int casa::WTerm::getConvSize ( ) [inline, virtual]

Implements casa::CFTerms.

Definition at line 108 of file WTerm.h.

Implements casa::CFTerms.

Definition at line 110 of file WTerm.h.

Int casa::WTerm::getOversampling ( ) [inline, virtual]

Implements casa::CFTerms.

Definition at line 109 of file WTerm.h.

virtual Float casa::WTerm::getSupportThreshold ( ) [inline, virtual]

Implements casa::CFTerms.

Definition at line 72 of file WTerm.h.

References casa::C::e.

int casa::WTerm::getVisParams ( const VisBuffer vb,
const CoordinateSystem skyCoord = CoordinateSystem() 
) [inline, virtual]

Implements casa::CFTerms.

Definition at line 69 of file WTerm.h.

Referenced by casa::WOnlyConvFunc::getVisParams().

Int casa::WTerm::makePBPolnCoords ( const VisBuffer vb,
const Int convSize,
const Int convSampling,
const CoordinateSystem skyCoord,
const Int skyNx,
const Int skyNy,
CoordinateSystem feedCoord 
) [inline, virtual]

Implements casa::CFTerms.

Definition at line 97 of file WTerm.h.

virtual String casa::WTerm::name ( ) [inline, virtual]

Implements casa::CFTerms.

Definition at line 78 of file WTerm.h.

References String.

virtual void casa::WTerm::normalizeImage ( Lattice< Complex > &  skyImage,
const Matrix< Float > &  weights 
) [inline, virtual]

WTerm normalizes the image be unity.

Implements casa::CFTerms.

Definition at line 75 of file WTerm.h.

void casa::WTerm::setPolMap ( const Vector< Int > &  polMap) [inline, virtual]

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 CFTerms object.

Reimplemented from casa::CFTerms.

Definition at line 71 of file WTerm.h.

Referenced by casa::WOnlyConvFunc::setPolMap().

Vector<Int> casa::WTerm::vbRow2CFKeyMap ( const VisBuffer vb,
Int nUnique 
) [inline, 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(Matrix<Complex>& screen, const Int wPixel, const Vector<Double>& sampling, const Int wConvSize, const Double wScale, const 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.

Implements casa::CFTerms.

Definition at line 95 of file WTerm.h.


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