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

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

#include <PSTerm.h>

Inheritance diagram for casa::PSTerm:
casa::CFTerms

List of all members.

Public Member Functions

 PSTerm ()
 PSTerm (const IPosition shape, const Vector< Double > &uvScale, const Vector< Double > &uvOffset, const Double &psScale)
virtual ~PSTerm ()
void init (const IPosition shape, const Vector< Double > &uvScale, const Vector< Double > &uvOffset, const Double &psScale)
Matrix< Complex > & operator= (Matrix< Complex > &)
Matrix< Complex > & operator*= (Matrix< Complex > &)
void applySky (Matrix< Complex > &screen, Bool multiply=False)
void applySky (Matrix< Complex > &screen, const Vector< Double > &sampling, const Int inner)
void normalizeImage (Lattice< Complex > &skyImage, const Matrix< Float > &weights)
virtual String name ()
int getVisParams (const VisBuffer &vb, const CoordinateSystem &skyCoord=CoordinateSystem())
 
Implementation of pure-virtual methods of CFTerms parent class.
void setPolMap (const Vector< Int > &polMap)
 The mapping from VisBuffer polarizations map to the Image plane polarization.
virtual Float getSupportThreshold ()
void applySky (ImageInterface< Float > &outputImages, const VisBuffer &vb, const Bool doSquint=True, const Int &cfKey=0, const Double=-1)
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 ()

Private Attributes

CountedPtr< ConvolveGridder
< Double, Complex > > 
psCtor_p
 spheroidal function
Vector< Doublesupport_p
Vector< Intsampling_p
Double psScale_p

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 55 of file PSTerm.h.


Constructor & Destructor Documentation

casa::PSTerm::PSTerm ( ) [inline]

Definition at line 58 of file PSTerm.h.

casa::PSTerm::PSTerm ( const IPosition  shape,
const Vector< Double > &  uvScale,
const Vector< Double > &  uvOffset,
const Double psScale 
) [inline]

Definition at line 59 of file PSTerm.h.

References init().

virtual casa::PSTerm::~PSTerm ( ) [inline, virtual]

Definition at line 65 of file PSTerm.h.


Member Function Documentation

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

Implements casa::CFTerms.

Definition at line 93 of file PSTerm.h.

void casa::PSTerm::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 100 of file PSTerm.h.

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

Implements casa::CFTerms.

Definition at line 121 of file PSTerm.h.

Implements casa::CFTerms.

Definition at line 123 of file PSTerm.h.

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

Implements casa::CFTerms.

Definition at line 122 of file PSTerm.h.

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

Implements casa::CFTerms.

Definition at line 91 of file PSTerm.h.

References casa::C::e.

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


Implementation of pure-virtual methods of CFTerms parent class.

CFTerms (and its derived classes) ned clean-up so that this kind of code is not required everywhere).

Implements casa::CFTerms.

Definition at line 86 of file PSTerm.h.

void casa::PSTerm::init ( const IPosition  shape,
const Vector< Double > &  uvScale,
const Vector< Double > &  uvOffset,
const Double psScale 
)

Referenced by PSTerm().

Int casa::PSTerm::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 110 of file PSTerm.h.

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

Implements casa::CFTerms.

Definition at line 80 of file PSTerm.h.

References String.

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

Implements casa::CFTerms.

Matrix<Complex>& casa::PSTerm::operator*= ( Matrix< Complex > &  )
Matrix<Complex>& casa::PSTerm::operator= ( Matrix< Complex > &  )
void casa::PSTerm::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 89 of file PSTerm.h.

Vector<Int> casa::PSTerm::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 107 of file PSTerm.h.


Member Data Documentation

spheroidal function

Definition at line 123 of file PSTerm.h.

Definition at line 130 of file PSTerm.h.

Definition at line 129 of file PSTerm.h.

Definition at line 128 of file PSTerm.h.


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