casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
casa::refim::AWConvFunc Class Reference

#include <AWConvFunc.h>

Inheritance diagram for casa::refim::AWConvFunc:
casa::refim::ConvolutionFunction casa::refim::AWConvFuncEPJones

Public Member Functions

 AWConvFunc (const casacore::CountedPtr< ATerm > ATerm, const casacore::CountedPtr< PSTerm > psTerm, const casacore::CountedPtr< WTerm > wTerm, const casacore::Bool wbAWP=false, const casacore::Bool conjPB=casacore::True)
 
 ~AWConvFunc ()
 
AWConvFuncoperator= (const AWConvFunc &other)
 
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)
 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 fillConvFuncBuffer (CFBuffer &cfb, CFBuffer &cfWtb, const casacore::Int &skyNX, const casacore::Int &skyNY, const casacore::Vector< casacore::Double > &skyIncr, const casacore::Int &nx, const casacore::Int &ny, const casacore::Vector< casacore::Double > &freqValues, const casacore::Vector< casacore::Double > &wValues, const casacore::Double &wScale, const casacore::Double &vbPA, const casacore::Double &freqHi, const PolMapType &muellerElements, const PolMapType &muellerElementsIndex, const VisBuffer2 &vb, const casacore::Float &psScale, PSTerm &psTerm, WTerm &wTerm, ATerm &aTerm, casacore::Bool isDryRun=false)
 
virtual casacore::Bool makeAverageResponse (const VisBuffer2 &vb, const casacore::ImageInterface< casacore::Complex > &image, casacore::ImageInterface< casacore::Float > &theavgPB, casacore::Bool reset=true)
 This method computes the average response function. More...
 
virtual casacore::Bool makeAverageResponse (const VisBuffer2 &vb, const casacore::ImageInterface< casacore::Complex > &image, casacore::ImageInterface< casacore::Complex > &theavgPB, casacore::Bool reset=true)
 
virtual 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...
 
virtual void setPolMap (const casacore::Vector< casacore::Int > &polMap)
 
virtual casacore::Bool findSupport (casacore::Array< casacore::Complex > &func, casacore::Float &threshold, casacore::Int &origin, casacore::Int &R)
 virtual void setFeedStokes(const casacore::Vector<casacore::Int>& feedStokes) {aTerm_p->setFeedStokes(feedStokes);}; More...
 
virtual casacore::Vector
< casacore::Double
findPointingOffset (const casacore::ImageInterface< casacore::Complex > &, const VisBuffer2 &)
 
virtual void prepareConvFunction (const VisBuffer2 &vb, VB2CFBMap &cfs)
 virtual void prepareConvFunction(const VisBuffer2& vb, VBRow2CFBMapType& cfs); More...
 
casacore::Int mapAntIDToAntType (const casacore::Int &ant)
 
virtual casacore::Vector
< casacore::Double
makeFreqValList (casacore::Double &freqScale, const VisBuffer2 &vb, const casacore::ImageInterface< casacore::Complex > &uvGrid, casacore::Vector< casacore::String > &bandNames)
 
virtual casacore::Vector
< casacore::Double
makeWValList (const casacore::Double &dW, const casacore::Int &nW)
 
virtual void setMiscInfo (const casacore::RecordInterface &params)
 
virtual casacore::Matrix
< casacore::Double
getFreqRangePerSpw (const VisBuffer2 &vb)
 
int getOversampling ()
 
virtual casacore::CountedPtr
< CFTerms
getTerm (const casacore::String &name)
 
virtual casacore::Vector
< casacore::Vector
< casacore::Double > > 
findPointingOffset (const casacore::ImageInterface< casacore::Complex > &, const VisBuffer2 &, const casacore::Bool &doPointing)
 
- 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 CF_TYPE getValue (casacore::Vector< CF_TYPE > &, casacore::Vector< CF_TYPE > &)
 Given the pixel co-ordinates and an offset values, this returns the value of the convolution function. 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 void setPointingOffsets (const casacore::CountedPtr< refim::PointingOffsets > &po)
 

Static Public Member Functions

static void makeConvFunction2 (const casacore::String &uvGridDiskimage, const casacore::Vector< casacore::Double > &uvScale, const casacore::Vector< casacore::Double > &uvOffset, const casacore::Matrix< casacore::Double > &vbFreqSelection, CFStore2 &cfs, CFStore2 &cfwts, const casacore::Bool psTermOn, const casacore::Bool aTermOn, const casacore::Bool conjBeams)
 
static void fillConvFuncBuffer2 (CFBuffer &cfb, CFBuffer &cfWtb, const casacore::Int &nx, const casacore::Int &ny, const casacore::ImageInterface< casacore::Complex > &skyImage, const CFCStruct &miscInfo, PSTerm &psTerm, WTerm &wTerm, ATerm &aTerm, casacore::Bool conjBeams)
 
static void makeConjPolAxis (casacore::CoordinateSystem &cs, casacore::Int conjStokes_in=-1)
 Global methods (services) More...
 
static casacore::Complex cfArea (casacore::Matrix< casacore::Complex > &cf, const casacore::Int &xSupport, const casacore::Int &ySupport, const casacore::Float &sampling)
 
static casacore::Bool awFindSupport (casacore::Array< casacore::Complex > &func, casacore::Float &threshold, casacore::Int &origin, casacore::Int &radius)
 
static casacore::Bool setUpCFSupport (casacore::Array< casacore::Complex > &func, casacore::Int &xSupport, casacore::Int &ySupport, const casacore::Float &sampling, const casacore::Complex &peak)
 
static casacore::Bool resizeCF (casacore::Array< casacore::Complex > &func, casacore::Int &xSupport, casacore::Int &ySupport, const casacore::Int &supportBuffer, const casacore::Float &sampling, const casacore::Complex &peak)
 
static int getOversampling (PSTerm &psTerm, WTerm &wTerm, ATerm &aTerm)
 

Public Attributes

casacore::CountedPtr< ATermaTerm_p
 
casacore::CountedPtr< PSTermpsTerm_p
 
casacore::CountedPtr< WTermwTerm_p
 

Protected Member Functions

void normalizeAvgPB (casacore::ImageInterface< casacore::Complex > &inImage, casacore::ImageInterface< casacore::Float > &outImage)
 
casacore::Bool makeAverageResponse_org (const VisBuffer2 &vb, const casacore::ImageInterface< casacore::Complex > &image, casacore::ImageInterface< casacore::Float > &theavgPB, casacore::Bool reset=true)
 
void makePBSq (casacore::ImageInterface< casacore::Complex > &inImage)
 
- Protected Member Functions inherited from casa::refim::ConvolutionFunction
casacore::LogIOlogIO ()
 

Protected Attributes

casacore::Vector
< casacore::Double
thePix_p
 
casacore::Vector
< casacore::Vector
< casacore::Double > > 
pixFieldGrad_p
 
casacore::Double imRefFreq_p
 
casacore::Bool wbAWP_p
 
casacore::Bool conjPB_p
 
casacore::CountedPtr< CFBufferbaseCFB_p
 
- 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 61 of file AWConvFunc.h.

Constructor & Destructor Documentation

casa::refim::AWConvFunc::AWConvFunc ( const casacore::CountedPtr< ATerm ATerm,
const casacore::CountedPtr< PSTerm psTerm,
const casacore::CountedPtr< WTerm wTerm,
const casacore::Bool  wbAWP = false,
const casacore::Bool  conjPB = casacore::True 
)
casa::refim::AWConvFunc::~AWConvFunc ( )
inline

Definition at line 70 of file AWConvFunc.h.

Member Function Documentation

static casacore::Bool casa::refim::AWConvFunc::awFindSupport ( casacore::Array< casacore::Complex > &  func,
casacore::Float threshold,
casacore::Int origin,
casacore::Int radius 
)
static
static casacore::Complex casa::refim::AWConvFunc::cfArea ( casacore::Matrix< casacore::Complex > &  cf,
const casacore::Int xSupport,
const casacore::Int ySupport,
const casacore::Float sampling 
)
static
virtual void casa::refim::AWConvFunc::fillConvFuncBuffer ( CFBuffer cfb,
CFBuffer cfWtb,
const casacore::Int skyNX,
const casacore::Int skyNY,
const casacore::Vector< casacore::Double > &  skyIncr,
const casacore::Int nx,
const casacore::Int ny,
const casacore::Vector< casacore::Double > &  freqValues,
const casacore::Vector< casacore::Double > &  wValues,
const casacore::Double wScale,
const casacore::Double vbPA,
const casacore::Double freqHi,
const PolMapType muellerElements,
const PolMapType muellerElementsIndex,
const VisBuffer2 vb,
const casacore::Float psScale,
PSTerm psTerm,
WTerm wTerm,
ATerm aTerm,
casacore::Bool  isDryRun = false 
)
virtual
static void casa::refim::AWConvFunc::fillConvFuncBuffer2 ( CFBuffer cfb,
CFBuffer cfWtb,
const casacore::Int nx,
const casacore::Int ny,
const casacore::ImageInterface< casacore::Complex > &  skyImage,
const CFCStruct miscInfo,
PSTerm psTerm,
WTerm wTerm,
ATerm aTerm,
casacore::Bool  conjBeams 
)
static
virtual casacore::Vector<casacore::Double> casa::refim::AWConvFunc::findPointingOffset ( const casacore::ImageInterface< casacore::Complex > &  ,
const VisBuffer2  
)
inlinevirtual

Implements casa::refim::ConvolutionFunction.

Reimplemented in casa::refim::AWConvFuncEPJones.

Definition at line 124 of file AWConvFunc.h.

virtual casacore::Vector<casacore::Vector<casacore::Double> > casa::refim::AWConvFunc::findPointingOffset ( const casacore::ImageInterface< casacore::Complex > &  ,
const VisBuffer2 ,
const casacore::Bool doPointing 
)
virtual
virtual casacore::Bool casa::refim::AWConvFunc::findSupport ( casacore::Array< casacore::Complex > &  func,
casacore::Float threshold,
casacore::Int origin,
casacore::Int R 
)
virtual

virtual void setFeedStokes(const casacore::Vector<casacore::Int>& feedStokes) {aTerm_p->setFeedStokes(feedStokes);};

Implements casa::refim::ConvolutionFunction.

virtual casacore::Matrix<casacore::Double> casa::refim::AWConvFunc::getFreqRangePerSpw ( const VisBuffer2 vb)
virtual
static int casa::refim::AWConvFunc::getOversampling ( PSTerm psTerm,
WTerm wTerm,
ATerm aTerm 
)
static
int casa::refim::AWConvFunc::getOversampling ( )
inlinevirtual

Reimplemented from casa::refim::ConvolutionFunction.

Definition at line 152 of file AWConvFunc.h.

References getOversampling().

Referenced by getOversampling().

virtual casacore::CountedPtr<CFTerms> casa::refim::AWConvFunc::getTerm ( const casacore::String name)
inlinevirtual

Reimplemented from casa::refim::ConvolutionFunction.

Definition at line 154 of file AWConvFunc.h.

virtual int casa::refim::AWConvFunc::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 119 of file AWConvFunc.h.

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

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.

virtual casacore::Bool casa::refim::AWConvFunc::makeAverageResponse ( const VisBuffer2 vb,
const casacore::ImageInterface< casacore::Complex > &  image,
casacore::ImageInterface< casacore::Complex > &  theavgPB,
casacore::Bool  reset = true 
)
virtual
casacore::Bool casa::refim::AWConvFunc::makeAverageResponse_org ( const VisBuffer2 vb,
const casacore::ImageInterface< casacore::Complex > &  image,
casacore::ImageInterface< casacore::Float > &  theavgPB,
casacore::Bool  reset = true 
)
protected
static void casa::refim::AWConvFunc::makeConjPolAxis ( casacore::CoordinateSystem cs,
casacore::Int  conjStokes_in = -1 
)
static

Global methods (services)

virtual void casa::refim::AWConvFunc::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 
)
virtual

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.

The required information about the image and visibility parameters is dervided from the given image and VisBuffer objects. wConvSize is the number of w-term planes and pa is the Parallactic Angle in radians for which the convolution function(s) are computed.

Implements casa::refim::ConvolutionFunction.

Reimplemented in casa::refim::AWConvFuncEPJones.

static void casa::refim::AWConvFunc::makeConvFunction2 ( const casacore::String uvGridDiskimage,
const casacore::Vector< casacore::Double > &  uvScale,
const casacore::Vector< casacore::Double > &  uvOffset,
const casacore::Matrix< casacore::Double > &  vbFreqSelection,
CFStore2 cfs,
CFStore2 cfwts,
const casacore::Bool  psTermOn,
const casacore::Bool  aTermOn,
const casacore::Bool  conjBeams 
)
static
virtual casacore::Vector<casacore::Double> casa::refim::AWConvFunc::makeFreqValList ( casacore::Double freqScale,
const VisBuffer2 vb,
const casacore::ImageInterface< casacore::Complex > &  uvGrid,
casacore::Vector< casacore::String > &  bandNames 
)
virtual
void casa::refim::AWConvFunc::makePBSq ( casacore::ImageInterface< casacore::Complex > &  inImage)
protected
virtual casacore::Vector<casacore::Double> casa::refim::AWConvFunc::makeWValList ( const casacore::Double dW,
const casacore::Int nW 
)
virtual
casacore::Int casa::refim::AWConvFunc::mapAntIDToAntType ( const casacore::Int ant)
inlinevirtual

Reimplemented from casa::refim::ConvolutionFunction.

Definition at line 128 of file AWConvFunc.h.

void casa::refim::AWConvFunc::normalizeAvgPB ( casacore::ImageInterface< casacore::Complex > &  inImage,
casacore::ImageInterface< casacore::Float > &  outImage 
)
protected
AWConvFunc& casa::refim::AWConvFunc::operator= ( const AWConvFunc other)
virtual void casa::refim::AWConvFunc::prepareConvFunction ( const VisBuffer2 vb,
VB2CFBMap cfs 
)
virtual

virtual void prepareConvFunction(const VisBuffer2& vb, VBRow2CFBMapType& cfs);

Implements casa::refim::ConvolutionFunction.

static casacore::Bool casa::refim::AWConvFunc::resizeCF ( casacore::Array< casacore::Complex > &  func,
casacore::Int xSupport,
casacore::Int ySupport,
const casacore::Int supportBuffer,
const casacore::Float sampling,
const casacore::Complex &  peak 
)
static
virtual void casa::refim::AWConvFunc::setMiscInfo ( const casacore::RecordInterface params)
virtual

Reimplemented from casa::refim::ConvolutionFunction.

virtual void casa::refim::AWConvFunc::setPolMap ( const casacore::Vector< casacore::Int > &  polMap)
inlinevirtual

Implements casa::refim::ConvolutionFunction.

Definition at line 121 of file AWConvFunc.h.

static casacore::Bool casa::refim::AWConvFunc::setUpCFSupport ( casacore::Array< casacore::Complex > &  func,
casacore::Int xSupport,
casacore::Int ySupport,
const casacore::Float sampling,
const casacore::Complex &  peak 
)
static

Member Data Documentation

casacore::CountedPtr<ATerm> casa::refim::AWConvFunc::aTerm_p

Definition at line 162 of file AWConvFunc.h.

casacore::CountedPtr<CFBuffer> casa::refim::AWConvFunc::baseCFB_p
protected

Definition at line 180 of file AWConvFunc.h.

casacore::Bool casa::refim::AWConvFunc::conjPB_p
protected

Definition at line 179 of file AWConvFunc.h.

casacore::Double casa::refim::AWConvFunc::imRefFreq_p
protected

Definition at line 178 of file AWConvFunc.h.

casacore::Vector<casacore::Vector<casacore::Double> > casa::refim::AWConvFunc::pixFieldGrad_p
protected

Definition at line 177 of file AWConvFunc.h.

casacore::CountedPtr<PSTerm> casa::refim::AWConvFunc::psTerm_p

Definition at line 163 of file AWConvFunc.h.

casacore::Vector<casacore::Double> casa::refim::AWConvFunc::thePix_p
protected

Definition at line 176 of file AWConvFunc.h.

casacore::Bool casa::refim::AWConvFunc::wbAWP_p
protected

Definition at line 179 of file AWConvFunc.h.

casacore::CountedPtr<WTerm> casa::refim::AWConvFunc::wTerm_p

Definition at line 164 of file AWConvFunc.h.


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