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::IlluminationConvFunc Class Reference

#include <IlluminationConvFunc.h>

Inheritance diagram for casa::refim::IlluminationConvFunc:
casa::refim::TabulatedConvFunc casa::refim::ConvolutionFunction casa::refim::VLACalcIlluminationConvFunc casa::refim::VLAIlluminationConvFunc

Public Member Functions

 IlluminationConvFunc ()
 
 IlluminationConvFunc (casacore::Int n)
 
 ~IlluminationConvFunc ()
 
IlluminationConvFuncoperator= (const IlluminationConvFunc &)
 
IlluminationConvFuncoperator= (const ConvolutionFunction &)
 
void initExpTable (casacore::Int n, CF_TYPE step)
 
void initCExpTable (casacore::Int n)
 
void setSigma (casacore::Double s)
 
casacore::Bool isReady ()
 
CF_TYPE area (casacore::Vector< casacore::Int > &convSupport, casacore::Vector< casacore::Double > &uvScale)
 
casacore::Vector< casacore::IntsupportSize (casacore::Vector< casacore::Double > &uvScale)
 
CF_TYPE getValue (casacore::Vector< CF_TYPE > &coord, casacore::Vector< CF_TYPE > &offset)
 Given the pixel co-ordinates and an offset values, this returns the value of the convolution function. More...
 
virtual CF_TYPE getValue (casacore::Double *coord, casacore::Double *raoff1, casacore::Double *raoff2, casacore::Double *decoff1, casacore::Double *decoff2, casacore::Double *area, casacore::Int *doGrad, casacore::Complex &weight, casacore::Complex &dweight1, casacore::Complex &dweight2, casacore::Double &currentCFPA)
 
int getVisParams (const VisBuffer2 &vb, const casacore::CoordinateSystem &skyCoord=casacore::CoordinateSystem())
 A support function which, for now, returns and integer ID corresponding to the on-sky frequency of the supplied VisBuffer. More...
 
void makeConvFunction (const casacore::ImageInterface< std::complex< float > > &, const VisBuffer2 &, casacore::Int, const casacore::CountedPtr< PolOuterProduct > &, casacore::Float, casacore::Float, const casacore::Vector< casacore::Double > &, const casacore::Vector< casacore::Double > &, const casacore::Matrix< casacore::Double > &, CFStore2 &, CFStore2 &, casacore::Bool)
 
void setPolMap (const casacore::Vector< int > &polMap)
 
void setFeedStokes (const casacore::Vector< int > &feedStokes)
 
void setParams (const casacore::Vector< int > &polMap, const casacore::Vector< int > &feedStokes)
 
casacore::Bool findSupport (casacore::Array< casacore::Complex > &, casacore::Float &, casacore::Int &, casacore::Int &)
 virtual void setFeedStokes(const casacore::Vector<casacore::Int>& feedStokes) = 0; More...
 
virtual casacore::Vector
< casacore::Double
findPointingOffset (const casacore::ImageInterface< casacore::Complex > &, const VisBuffer2 &)
 
VBRow2CFBMapType &*virtual void prepareConvFunction (const VisBuffer2 &, VB2CFBMap &)
 virtual void setParams(const casacore::Vector<casacore::Int>& polMap, const casacore::Vector<casacore::Int>& feedStokes) {setPolMap(polMap); setFeedStokes(feedStokes);}; More...
 
virtual casacore::Bool makeAverageResponse (const VisBuffer2 &, const casacore::ImageInterface< casacore::Complex > &, casacore::ImageInterface< casacore::Float > &, casacore::Bool)
 This method computes the average response function. More...
 
virtual casacore::Bool makeAverageResponse (const VisBuffer2 &, const casacore::ImageInterface< casacore::Complex > &, casacore::ImageInterface< casacore::Complex > &, casacore::Bool)
 
virtual casacore::Vector
< casacore::Vector
< casacore::Double > > 
findPointingOffset (const casacore::ImageInterface< casacore::Complex > &, const VisBuffer2 &, const casacore::Bool &)
 
- Public Member Functions inherited from casa::refim::TabulatedConvFunc
 TabulatedConvFunc ()
 
 TabulatedConvFunc (casacore::Int n)
 
 ~TabulatedConvFunc ()
 
virtual void setMaximumCacheSize (const casacore::Long howManyRealPixels=-1)
 
virtual casacore::Long maximumCacheSize ()
 
virtual void initTables (casacore::Int)
 
- Public Member Functions inherited from casa::refim::ConvolutionFunction
 ConvolutionFunction ()
 
 ConvolutionFunction (casacore::Int dim)
 
virtual ~ConvolutionFunction ()
 
virtual void setDimension (casacore::Int n)
 Set the dimention of the convolution function. More...
 
virtual void makeConvFunction (const casacore::ImageInterface< casacore::Complex > &image, const VisBuffer2 &vb, const casacore::Int wConvSize, const casacore::CountedPtr< PolOuterProduct > &pop, const casacore::Float pa, const casacore::Float dpa, const casacore::Vector< casacore::Double > &uvScale, const casacore::Vector< casacore::Double > &uvOffset, const casacore::Matrix< casacore::Double > &vbFreqSelection, CFStore2 &cfs, CFStore2 &cfwts, casacore::Bool fillCF=true)=0
 This method computes the convolution function and the convolution function used for gridding the weights (typically these are the same) and returns them in the cfs and cfwts parameters. More...
 
virtual void setSpwSelection (const casacore::Cube< casacore::Int > &spwChanSelFlag)
 
virtual void setSpwFreqSelection (const casacore::Matrix< casacore::Double > &spwFreqSel)
 
virtual void setRotateCF (const casacore::Double &computeCFAngleRad, const casacore::Double &rotateOTF)
 
virtual casacore::Matrix
< casacore::Int
makeBaselineList (const casacore::Vector< casacore::Int > &antList)
 
virtual casacore::Int mapAntIDToAntType (const casacore::Int &)
 
virtual void setMiscInfo (const casacore::RecordInterface &)
 
virtual void setPointingOffsets (const casacore::CountedPtr< refim::PointingOffsets > &po)
 
virtual casacore::CountedPtr
< CFTerms
getTerm (const casacore::String &)
 
virtual int getOversampling ()
 

Private Attributes

ExpCache< CF_TYPEExpTable
 
CExp3< CF_TYPECExpTable
 
casacore::Double sigma
 
casacore::Double pa_p
 
casacore::Bool expTableReady
 
casacore::Bool cexpTableReady
 
casacore::Bool sigmaReady
 

Additional Inherited Members

- Protected Member Functions inherited from casa::refim::ConvolutionFunction
casacore::LogIOlogIO ()
 
- Protected Attributes inherited from casa::refim::ConvolutionFunction
casacore::LogIO logIO_p
 
casacore::Cube< casacore::IntspwChanSelFlag_p
 
casacore::Matrix
< casacore::Double
spwFreqSelection_p
 
casacore::Double computeCFAngleRad_p
 
casacore::Double rotateCFOTFAngleRad_p
 
casacore::CountedPtr
< PointingOffsets
po_p
 

Detailed Description

Definition at line 41 of file IlluminationConvFunc.h.

Constructor & Destructor Documentation

casa::refim::IlluminationConvFunc::IlluminationConvFunc ( )
inline

Definition at line 44 of file IlluminationConvFunc.h.

casa::refim::IlluminationConvFunc::IlluminationConvFunc ( casacore::Int  n)
inline

Definition at line 47 of file IlluminationConvFunc.h.

casa::refim::IlluminationConvFunc::~IlluminationConvFunc ( )
inline

Definition at line 50 of file IlluminationConvFunc.h.

Member Function Documentation

CF_TYPE casa::refim::IlluminationConvFunc::area ( casacore::Vector< casacore::Int > &  convSupport,
casacore::Vector< casacore::Double > &  uvScale 
)
virtual casacore::Vector<casacore::Double> casa::refim::IlluminationConvFunc::findPointingOffset ( const casacore::ImageInterface< casacore::Complex > &  ,
const VisBuffer2  
)
inlinevirtual

Implements casa::refim::ConvolutionFunction.

Definition at line 102 of file IlluminationConvFunc.h.

virtual casacore::Vector< casacore::Vector<casacore::Double> > casa::refim::IlluminationConvFunc::findPointingOffset ( const casacore::ImageInterface< casacore::Complex > &  ,
const VisBuffer2 ,
const casacore::Bool  
)
inlinevirtual

Implements casa::refim::ConvolutionFunction.

Definition at line 122 of file IlluminationConvFunc.h.

casacore::Bool casa::refim::IlluminationConvFunc::findSupport ( casacore::Array< casacore::Complex > &  func,
casacore::Float threshold,
casacore::Int origin,
casacore::Int R 
)
inlinevirtual
CF_TYPE casa::refim::IlluminationConvFunc::getValue ( casacore::Vector< CF_TYPE > &  ,
casacore::Vector< CF_TYPE > &   
)
inlinevirtual

Given the pixel co-ordinates and an offset values, this returns the value of the convolution function.

This is however not used anywhere yet (and is therefore also not a pure virtual function).

Reimplemented from casa::refim::ConvolutionFunction.

Definition at line 69 of file IlluminationConvFunc.h.

virtual CF_TYPE casa::refim::IlluminationConvFunc::getValue ( casacore::Double coord,
casacore::Double raoff1,
casacore::Double raoff2,
casacore::Double decoff1,
casacore::Double decoff2,
casacore::Double area,
casacore::Int doGrad,
casacore::Complex &  weight,
casacore::Complex &  dweight1,
casacore::Complex &  dweight2,
casacore::Double currentCFPA 
)
virtual
Parameters
currentCFPA,casacore::Doublelsigma
int casa::refim::IlluminationConvFunc::getVisParams ( const VisBuffer2 vb,
const casacore::CoordinateSystem skyCoord = casacore::CoordinateSystem() 
)
inlinevirtual

A support function which, for now, returns and integer ID corresponding to the on-sky frequency of the supplied VisBuffer.

Implements casa::refim::ConvolutionFunction.

Definition at line 86 of file IlluminationConvFunc.h.

void casa::refim::IlluminationConvFunc::initCExpTable ( casacore::Int  n)
inline

Definition at line 61 of file IlluminationConvFunc.h.

void casa::refim::IlluminationConvFunc::initExpTable ( casacore::Int  n,
CF_TYPE  step 
)
inline

Definition at line 60 of file IlluminationConvFunc.h.

casacore::Bool casa::refim::IlluminationConvFunc::isReady ( )
inline

Definition at line 64 of file IlluminationConvFunc.h.

virtual casacore::Bool casa::refim::IlluminationConvFunc::makeAverageResponse ( const VisBuffer2 vb,
const casacore::ImageInterface< casacore::Complex > &  image,
casacore::ImageInterface< casacore::Float > &  theavgPB,
casacore::Bool  reset 
)
inlinevirtual

This method computes the average response function.

This is typically image-plane equivalent of the convolution functions, averaged over various axis. The precise averaging will be implementation dependent in the derived classes.

Implements casa::refim::ConvolutionFunction.

Reimplemented in casa::refim::VLACalcIlluminationConvFunc.

Definition at line 109 of file IlluminationConvFunc.h.

virtual casacore::Bool casa::refim::IlluminationConvFunc::makeAverageResponse ( const VisBuffer2 ,
const casacore::ImageInterface< casacore::Complex > &  ,
casacore::ImageInterface< casacore::Complex > &  ,
casacore::Bool   
)
inlinevirtual

Implements casa::refim::ConvolutionFunction.

Definition at line 115 of file IlluminationConvFunc.h.

void casa::refim::IlluminationConvFunc::makeConvFunction ( const casacore::ImageInterface< std::complex< float > > &  ,
const VisBuffer2 ,
casacore::Int  ,
const casacore::CountedPtr< PolOuterProduct > &  ,
casacore::Float  ,
casacore::Float  ,
const casacore::Vector< casacore::Double > &  ,
const casacore::Vector< casacore::Double > &  ,
const casacore::Matrix< casacore::Double > &  ,
CFStore2 ,
CFStore2 ,
casacore::Bool   
)
inline

Definition at line 88 of file IlluminationConvFunc.h.

IlluminationConvFunc& casa::refim::IlluminationConvFunc::operator= ( const IlluminationConvFunc )
inline

Definition at line 52 of file IlluminationConvFunc.h.

IlluminationConvFunc& casa::refim::IlluminationConvFunc::operator= ( const ConvolutionFunction )
inline

Definition at line 56 of file IlluminationConvFunc.h.

VBRow2CFBMapType& * virtual void casa::refim::IlluminationConvFunc::prepareConvFunction ( const VisBuffer2 vb,
VB2CFBMap theMap 
)
inlinevirtual

virtual void setParams(const casacore::Vector<casacore::Int>& polMap, const casacore::Vector<casacore::Int>& feedStokes) {setPolMap(polMap); setFeedStokes(feedStokes);};

virtual void prepareConvFunction(const VisBuffer2& vb, CFStore2& cfs)=0; virtual void prepareConvFunction(const VisBuffer2& vb, VBRow2CFBMapType& theMap)=0;

Reimplemented from casa::refim::TabulatedConvFunc.

Definition at line 106 of file IlluminationConvFunc.h.

void casa::refim::IlluminationConvFunc::setFeedStokes ( const casacore::Vector< int > &  feedStokes)
inline

Definition at line 96 of file IlluminationConvFunc.h.

void casa::refim::IlluminationConvFunc::setParams ( const casacore::Vector< int > &  polMap,
const casacore::Vector< int > &  feedStokes 
)
inline

Definition at line 97 of file IlluminationConvFunc.h.

void casa::refim::IlluminationConvFunc::setPolMap ( const casacore::Vector< int > &  polMap)
inlinevirtual

Implements casa::refim::ConvolutionFunction.

Definition at line 95 of file IlluminationConvFunc.h.

void casa::refim::IlluminationConvFunc::setSigma ( casacore::Double  s)
inline

Definition at line 62 of file IlluminationConvFunc.h.

casacore::Vector<casacore::Int> casa::refim::IlluminationConvFunc::supportSize ( casacore::Vector< casacore::Double > &  uvScale)

Member Data Documentation

CExp3<CF_TYPE> casa::refim::IlluminationConvFunc::CExpTable
private

Definition at line 128 of file IlluminationConvFunc.h.

casacore::Bool casa::refim::IlluminationConvFunc::cexpTableReady
private

Definition at line 130 of file IlluminationConvFunc.h.

ExpCache<CF_TYPE> casa::refim::IlluminationConvFunc::ExpTable
private

Definition at line 124 of file IlluminationConvFunc.h.

casacore::Bool casa::refim::IlluminationConvFunc::expTableReady
private

Definition at line 130 of file IlluminationConvFunc.h.

casacore::Double casa::refim::IlluminationConvFunc::pa_p
private

Definition at line 129 of file IlluminationConvFunc.h.

casacore::Double casa::refim::IlluminationConvFunc::sigma
private

Definition at line 129 of file IlluminationConvFunc.h.

casacore::Bool casa::refim::IlluminationConvFunc::sigmaReady
private

Definition at line 130 of file IlluminationConvFunc.h.


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