casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
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

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from casa::CFTerms
enum  OpCodes {
  NOOP,
  NORMAL
}
 
- Protected Member Functions inherited from casa::CFTerms
casacore::LogIOlogIO ()
 
- Protected Attributes inherited from casa::CFTerms
casacore::LogIO logIO_p
 
casacore::Vector< casacore::IntpolMap_p_base
 
OpCodes opCode_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 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 ( casacore::Matrix< casacore::Complex > &  screen,
const casacore::Int  wPixel,
const casacore::Vector< casacore::Double > &  sampling,
const casacore::Double  wScale,
const casacore::Int  inner 
)
virtual
virtual void casa::WTerm::applySky ( casacore::Matrix< casacore::Complex > &  screen,
const casacore::Vector< casacore::Double > &  sampling,
const casacore::Double  wValue,
const casacore::Int  inner 
)
virtual
void casa::WTerm::applySky ( casacore::ImageInterface< casacore::Float > &  ,
const VisBuffer ,
const casacore::Bool  ,
const casacore::Int ,
const casacore::Int ,
const casacore::Double   
)
inlinevirtual

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 ( casacore::ImageInterface< casacore::Complex > &  ,
const VisBuffer ,
const casacore::Bool  ,
const casacore::Int ,
const casacore::Int ,
const casacore::Double   
)
inlinevirtual

Implements casa::CFTerms.

Definition at line 90 of file WTerm.h.

casacore::Int casa::WTerm::getConvSize ( )
inlinevirtual

Implements casa::CFTerms.

Definition at line 113 of file WTerm.h.

casacore::Float casa::WTerm::getConvWeightSizeFactor ( )
inlinevirtual

Implements casa::CFTerms.

Definition at line 115 of file WTerm.h.

casacore::Int casa::WTerm::getOversampling ( )
inlinevirtual

Implements casa::CFTerms.

Definition at line 114 of file WTerm.h.

virtual casacore::Float casa::WTerm::getSupportThreshold ( )
inlinevirtual

Implements casa::CFTerms.

Definition at line 72 of file WTerm.h.

References casacore::C::e.

int casa::WTerm::getVisParams ( const VisBuffer vb,
const casacore::CoordinateSystem skyCoord = casacore::CoordinateSystem() 
)
inlinevirtual

Implements casa::CFTerms.

Definition at line 69 of file WTerm.h.

casacore::Int casa::WTerm::makePBPolnCoords ( const VisBuffer vb,
const casacore::Int convSize,
const casacore::Int convSampling,
const casacore::CoordinateSystem skyCoord,
const casacore::Int skyNx,
const casacore::Int skyNy,
casacore::CoordinateSystem feedCoord 
)
inlinevirtual

Implements casa::CFTerms.

Definition at line 99 of file WTerm.h.

virtual casacore::String casa::WTerm::name ( )
inlinevirtual

Implements casa::CFTerms.

Definition at line 78 of file WTerm.h.

virtual void casa::WTerm::normalizeImage ( casacore::Lattice< casacore::Complex > &  skyImage,
const casacore::Matrix< casacore::Float > &  weights 
)
inlinevirtual

WTerm normalizes the image be unity.

Implements casa::CFTerms.

Definition at line 75 of file WTerm.h.

casacore::Bool casa::WTerm::rotationallySymmetric ( )
inlinevirtual

Implements casa::CFTerms.

Definition at line 110 of file WTerm.h.

void casa::WTerm::setPolMap ( const casacore::Vector< casacore::Int > &  polMap)
inlinevirtual

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.

casacore::Vector<casacore::Int> casa::WTerm::vbRow2CFKeyMap ( const VisBuffer vb,
casacore::Int nUnique 
)
inlinevirtual

Not sure if the following method is requried.

Leaving it in the code for now with an implementation that does nothing.

virtual void applySky(casacore::Matrix<casacore::Complex>& screen, const casacore::Int wPixel, const casacore::Vector<casacore::Double>& sampling, const casacore::Int wConvSize, const casacore::Double wScale, const casacore::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 97 of file WTerm.h.


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