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

Public Member Functions

 PSTerm ()
 
 PSTerm (const casacore::IPosition shape, const casacore::Vector< casacore::Double > &uvScale, const casacore::Vector< casacore::Double > &uvOffset, const casacore::Double &psScale)
 
virtual ~PSTerm ()
 
void init (const casacore::IPosition shape, const casacore::Vector< casacore::Double > &uvScale, const casacore::Vector< casacore::Double > &uvOffset, const casacore::Double &psScale)
 
casacore::Matrix
< casacore::Complex > & 
operator= (casacore::Matrix< casacore::Complex > &)
 
casacore::Matrix
< casacore::Complex > & 
operator*= (casacore::Matrix< casacore::Complex > &)
 
void applySky (casacore::Matrix< casacore::Complex > &screen, casacore::Bool multiply=false)
 
void applySky (casacore::Matrix< casacore::Complex > &screen, const casacore::Vector< casacore::Double > &sampling, const casacore::Int inner)
 
void normalizeImage (casacore::Lattice< casacore::Complex > &skyImage, const casacore::Matrix< casacore::Float > &weights)
 
virtual casacore::String name ()
 
int getVisParams (const VisBuffer &vb, const casacore::CoordinateSystem &skyCoord=casacore::CoordinateSystem())
 

Implementation of pure-virtual methods of CFTerms parent class. More...

 
void setPolMap (const casacore::Vector< casacore::Int > &polMap)
 The mapping from VisBuffer polarizations map to the Image plane polarization. More...
 
virtual casacore::Float getSupportThreshold ()
 
void applySky (casacore::ImageInterface< casacore::Float > &, const VisBuffer &, const casacore::Bool, const casacore::Int &, const casacore::Int &, const casacore::Double)
 
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 &, casacore::Int &)
 Not sure if the following method is requried. More...
 
casacore::Int makePBPolnCoords (const VisBuffer &, const casacore::Int &, const casacore::Int &, const casacore::CoordinateSystem &, const casacore::Int &, const casacore::Int &, casacore::CoordinateSystem &)
 
casacore::Int getConvSize ()
 
casacore::Int getOversampling ()
 
casacore::Float getConvWeightSizeFactor ()
 
casacore::Bool rotationallySymmetric ()
 
- 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)
 

Private Attributes

casacore::CountedPtr
< casacore::ConvolveGridder
< casacore::Double,
casacore::Complex > > 
psCtor_p
 spheroidal function More...
 
casacore::Vector
< casacore::Double
support_p
 
casacore::Vector< casacore::Intsampling_p
 
casacore::Double psScale_p
 

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

Constructor & Destructor Documentation

casa::PSTerm::PSTerm ( )
inline

Definition at line 58 of file PSTerm.h.

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

Definition at line 59 of file PSTerm.h.

References init().

virtual casa::PSTerm::~PSTerm ( )
inlinevirtual

Definition at line 65 of file PSTerm.h.

Member Function Documentation

void casa::PSTerm::applySky ( casacore::Matrix< casacore::Complex > &  screen,
casacore::Bool  multiply = false 
)
void casa::PSTerm::applySky ( casacore::Matrix< casacore::Complex > &  screen,
const casacore::Vector< casacore::Double > &  sampling,
const casacore::Int  inner 
)
void casa::PSTerm::applySky ( casacore::ImageInterface< casacore::Float > &  ,
const VisBuffer ,
const casacore::Bool  ,
const casacore::Int ,
const casacore::Int ,
const casacore::Double   
)
inlinevirtual

Implements casa::CFTerms.

Definition at line 93 of file PSTerm.h.

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

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

Implements casa::CFTerms.

Definition at line 122 of file PSTerm.h.

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

Implements casa::CFTerms.

Definition at line 124 of file PSTerm.h.

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

Implements casa::CFTerms.

Definition at line 123 of file PSTerm.h.

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

Implements casa::CFTerms.

Definition at line 91 of file PSTerm.h.

References casacore::C::e.

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


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 casacore::IPosition  shape,
const casacore::Vector< casacore::Double > &  uvScale,
const casacore::Vector< casacore::Double > &  uvOffset,
const casacore::Double psScale 
)

Referenced by PSTerm().

casacore::Int casa::PSTerm::makePBPolnCoords ( const VisBuffer ,
const casacore::Int ,
const casacore::Int ,
const casacore::CoordinateSystem ,
const casacore::Int ,
const casacore::Int ,
casacore::CoordinateSystem  
)
inlinevirtual

Implements casa::CFTerms.

Definition at line 112 of file PSTerm.h.

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

Implements casa::CFTerms.

Definition at line 80 of file PSTerm.h.

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

Implements casa::CFTerms.

casacore::Matrix<casacore::Complex>& casa::PSTerm::operator*= ( casacore::Matrix< casacore::Complex > &  )
casacore::Matrix<casacore::Complex>& casa::PSTerm::operator= ( casacore::Matrix< casacore::Complex > &  )
casacore::Bool casa::PSTerm::rotationallySymmetric ( )
inlinevirtual

Implements casa::CFTerms.

Definition at line 126 of file PSTerm.h.

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

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

Member Data Documentation

casacore::CountedPtr<casacore::ConvolveGridder<casacore::Double, casacore::Complex> > casa::PSTerm::psCtor_p
private

spheroidal function

Definition at line 126 of file PSTerm.h.

casacore::Double casa::PSTerm::psScale_p
private

Definition at line 133 of file PSTerm.h.

casacore::Vector<casacore::Int> casa::PSTerm::sampling_p
private

Definition at line 132 of file PSTerm.h.

casacore::Vector<casacore::Double> casa::PSTerm::support_p
private

Definition at line 131 of file PSTerm.h.


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