casa::refim::PSTerm Class Reference

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

#include <PSTerm.h>

Inheritance diagram for casa::refim::PSTerm:
casa::refim::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 VisBuffer2 &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 > &, const VisBuffer2 &, const Bool, const Int &, const Int &, const Double)
void applySky (ImageInterface< Complex > &, const VisBuffer2 &, const Bool, const Int &, const Int &, const Double)
Vector< Int > vbRow2CFKeyMap (const VisBuffer2 &, Int &)
 Not sure if the following method is requried.
Int makePBPolnCoords (const VisBuffer2 &, const Int &, const Int &, const CoordinateSystem &, const Int &, const Int &, CoordinateSystem &)
Int getConvSize ()
Int getOversampling ()
void setConvSize (const Int)
void setOversampling (const Int)
Float getConvWeightSizeFactor ()
Bool rotationallySymmetric ()

Private Attributes

CountedPtr< ConvolveGridder
< Double, Complex > > 
psCtor_p
 spheroidal function
Vector< Double > support_p
Vector< Int > sampling_p
Double psScale_p

Detailed Description

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

Intended use:

Public interface

Etymology

W-Term to account for non co-planar baselines

Synopsis

Definition at line 56 of file PSTerm.h.


Constructor & Destructor Documentation

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

Definition at line 59 of file PSTerm.h.

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

Definition at line 60 of file PSTerm.h.

References init().

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

Definition at line 66 of file PSTerm.h.


Member Function Documentation

void casa::refim::PSTerm::applySky ( ImageInterface< Complex > &  ,
const VisBuffer2 ,
const   Bool,
const Int &  ,
const Int &  ,
const   Double 
) [inline, virtual]

Implements casa::refim::CFTerms.

Definition at line 102 of file PSTerm.h.

void casa::refim::PSTerm::applySky ( ImageInterface< Float > &  ,
const VisBuffer2 ,
const   Bool,
const Int &  ,
const Int &  ,
const   Double 
) [inline, virtual]

Implements casa::refim::CFTerms.

Definition at line 94 of file PSTerm.h.

void casa::refim::PSTerm::applySky ( Matrix< Complex > &  screen,
const Vector< Double > &  sampling,
const Int  inner 
)
void casa::refim::PSTerm::applySky ( Matrix< Complex > &  screen,
Bool  multiply = False 
)
Int casa::refim::PSTerm::getConvSize (  )  [inline, virtual]

Implements casa::refim::CFTerms.

Definition at line 123 of file PSTerm.h.

Float casa::refim::PSTerm::getConvWeightSizeFactor (  )  [inline, virtual]

Implements casa::refim::CFTerms.

Definition at line 127 of file PSTerm.h.

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

Implements casa::refim::CFTerms.

Definition at line 124 of file PSTerm.h.

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

Implements casa::refim::CFTerms.

Definition at line 92 of file PSTerm.h.

References casacore::C::e.

int casa::refim::PSTerm::getVisParams ( const VisBuffer2 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::refim::CFTerms.

Definition at line 87 of file PSTerm.h.

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

Referenced by PSTerm().

Int casa::refim::PSTerm::makePBPolnCoords ( const VisBuffer2 ,
const Int &  ,
const Int &  ,
const CoordinateSystem &  ,
const Int &  ,
const Int &  ,
CoordinateSystem &   
) [inline, virtual]

Implements casa::refim::CFTerms.

Definition at line 113 of file PSTerm.h.

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

Implements casa::refim::CFTerms.

Definition at line 81 of file PSTerm.h.

References String.

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

Implements casa::refim::CFTerms.

Matrix<Complex>& casa::refim::PSTerm::operator*= ( Matrix< Complex > &   ) 
Matrix<Complex>& casa::refim::PSTerm::operator= ( Matrix< Complex > &   ) 
Bool casa::refim::PSTerm::rotationallySymmetric (  )  [inline, virtual]

Implements casa::refim::CFTerms.

Definition at line 129 of file PSTerm.h.

References casacore::True.

void casa::refim::PSTerm::setConvSize ( const   Int  )  [inline, virtual]

Implements casa::refim::CFTerms.

Definition at line 125 of file PSTerm.h.

void casa::refim::PSTerm::setOversampling ( const   Int  )  [inline, virtual]

Implements casa::refim::CFTerms.

Definition at line 126 of file PSTerm.h.

void casa::refim::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::refim::CFTerms.

Definition at line 90 of file PSTerm.h.

Vector<Int> casa::refim::PSTerm::vbRow2CFKeyMap ( const VisBuffer2 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::refim::CFTerms.

Definition at line 110 of file PSTerm.h.


Member Data Documentation

CountedPtr<ConvolveGridder<Double, Complex> > casa::refim::PSTerm::psCtor_p [private]

spheroidal function

Definition at line 129 of file PSTerm.h.

Definition at line 136 of file PSTerm.h.

Vector<Int> casa::refim::PSTerm::sampling_p [private]

Definition at line 135 of file PSTerm.h.

Vector<Double> casa::refim::PSTerm::support_p [private]

Definition at line 134 of file PSTerm.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