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::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

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)
 
void reinit (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 VisBuffer2 &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 VisBuffer2 &, const casacore::Bool, const casacore::Int &, const casacore::Int &, const casacore::Double)
 
void applySky (casacore::ImageInterface< casacore::Complex > &, const VisBuffer2 &, const casacore::Bool, const casacore::Int &, const casacore::Int &, const casacore::Double)
 
casacore::Vector< casacore::IntvbRow2CFKeyMap (const VisBuffer2 &, casacore::Int &)
 Not sure if the following method is requried. More...
 
casacore::Int makePBPolnCoords (const VisBuffer2 &, const casacore::Int &, const casacore::Int &, const casacore::CoordinateSystem &, const casacore::Int &, const casacore::Int &, casacore::CoordinateSystem &)
 
casacore::Int getConvSize ()
 
casacore::Int getOversampling ()
 
void setConvSize (const casacore::Int)
 
casacore::Float getConvWeightSizeFactor ()
 
casacore::Bool rotationallySymmetric ()
 
- Public Member Functions inherited from casa::refim::CFTerms
 CFTerms ()
 
virtual ~CFTerms ()
 
virtual void setOpCode (OpCodes code)
 
virtual casacore::Bool isNoOp ()
 
virtual void getPolMap (casacore::Vector< casacore::Int > &polMap)
 
void setBandName (const casacore::String &bandName)
 
casacore::StringgetBandName ()
 

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
 
casacore::IPosition shape_p
 
casacore::Vector
< casacore::Double
uvScale_p
 
casacore::Vector
< casacore::Double
uvOffset_p
 

Additional Inherited Members

- Public Types inherited from casa::refim::CFTerms
enum  OpCodes {
  NOOP,
  NORMAL
}
 
- Protected Member Functions inherited from casa::refim::CFTerms
casacore::LogIOlogIO ()
 
- Protected Attributes inherited from casa::refim::CFTerms
casacore::LogIO logIO_p
 
casacore::Vector< casacore::IntpolMap_p_base
 
OpCodes opCode_p
 
casacore::String telescopeName_p
 
casacore::String bandName_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 57 of file PSTerm.h.

Constructor & Destructor Documentation

casa::refim::PSTerm::PSTerm ( )
inline

Definition at line 60 of file PSTerm.h.

casa::refim::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 61 of file PSTerm.h.

References init().

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

Definition at line 67 of file PSTerm.h.

Member Function Documentation

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

Implements casa::refim::CFTerms.

Definition at line 99 of file PSTerm.h.

void casa::refim::PSTerm::applySky ( casacore::ImageInterface< casacore::Complex > &  ,
const VisBuffer2 ,
const casacore::Bool  ,
const casacore::Int ,
const casacore::Int ,
const casacore::Double   
)
inlinevirtual

Implements casa::refim::CFTerms.

Definition at line 107 of file PSTerm.h.

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

Implements casa::refim::CFTerms.

Definition at line 128 of file PSTerm.h.

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

Implements casa::refim::CFTerms.

Definition at line 131 of file PSTerm.h.

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

Implements casa::refim::CFTerms.

Definition at line 129 of file PSTerm.h.

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

Implements casa::refim::CFTerms.

Definition at line 97 of file PSTerm.h.

References casacore::C::e.

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

Definition at line 92 of file PSTerm.h.

void casa::refim::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::refim::PSTerm::makePBPolnCoords ( const VisBuffer2 ,
const casacore::Int ,
const casacore::Int ,
const casacore::CoordinateSystem ,
const casacore::Int ,
const casacore::Int ,
casacore::CoordinateSystem  
)
inlinevirtual

Implements casa::refim::CFTerms.

Definition at line 118 of file PSTerm.h.

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

Implements casa::refim::CFTerms.

Definition at line 86 of file PSTerm.h.

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

Implements casa::refim::CFTerms.

casacore::Matrix<casacore::Complex>& casa::refim::PSTerm::operator*= ( casacore::Matrix< casacore::Complex > &  )
casacore::Matrix<casacore::Complex>& casa::refim::PSTerm::operator= ( casacore::Matrix< casacore::Complex > &  )
void casa::refim::PSTerm::reinit ( const casacore::IPosition  shape,
const casacore::Vector< casacore::Double > &  uvScale,
const casacore::Vector< casacore::Double > &  uvOffset,
const casacore::Double psScale 
)
casacore::Bool casa::refim::PSTerm::rotationallySymmetric ( )
inlinevirtual

Implements casa::refim::CFTerms.

Definition at line 133 of file PSTerm.h.

void casa::refim::PSTerm::setConvSize ( const casacore::Int  )
inlinevirtual

Implements casa::refim::CFTerms.

Definition at line 130 of file PSTerm.h.

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

Definition at line 95 of file PSTerm.h.

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

Definition at line 115 of file PSTerm.h.

Member Data Documentation

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

spheroidal function

Definition at line 133 of file PSTerm.h.

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

Definition at line 140 of file PSTerm.h.

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

Definition at line 139 of file PSTerm.h.

casacore::IPosition casa::refim::PSTerm::shape_p
private

Definition at line 141 of file PSTerm.h.

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

Definition at line 138 of file PSTerm.h.

casacore::Vector<casacore::Double> casa::refim::PSTerm::uvOffset_p
private

Definition at line 143 of file PSTerm.h.

casacore::Vector<casacore::Double> casa::refim::PSTerm::uvScale_p
private

Definition at line 142 of file PSTerm.h.


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