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

#include <SimplePBConvFunc.h>

Inheritance diagram for casa::refim::SimplePBConvFunc:
casa::refim::HetArrayConvFunc

Public Member Functions

 SimplePBConvFunc ()
 
 SimplePBConvFunc (const PBMathInterface::PBClass typeToUse)
 
 SimplePBConvFunc (const casacore::RecordInterface &rec, casacore::Bool calcFlux_needed)
 
virtual ~SimplePBConvFunc ()
 
virtual void findConvFunction (const casacore::ImageInterface< casacore::Complex > &, const vi::VisBuffer2 &, const casacore::Int &, SkyJones &, casacore::Matrix< casacore::Complex > &, casacore::Matrix< casacore::Complex > &, casacore::Int &, casacore::Int &)
 Inputs are the image, visbuffer, convSampling and skyjones findconv return a cached convvolution function appropriate for this visbuffer and skyjones...this one should be superseded by the one below and call setSkyJones when necessary. More...
 
Returns the convfunctions in
the Cubes the casacore::Matrix
rowChanMap maps the vb row and
channel to the plane of the
convfunc appropriate *virtual
void 
findConvFunction (const casacore::ImageInterface< casacore::Complex > &iimage, const vi::VisBuffer2 &vb, const casacore::Int &convSampling, const casacore::Vector< casacore::Double > &visFreq, casacore::Array< casacore::Complex > &convFunc, casacore::Array< casacore::Complex > &weightConvFunc, casacore::Vector< casacore::Int > &convsize, casacore::Vector< casacore::Int > &convSupport, casacore::Vector< casacore::Int > &polMap, casacore::Vector< casacore::Int > &chanMap, casacore::Vector< casacore::Int > &rowMap, const casacore::Bool getConjFreqConvFunc=false, const casacore::MVDirection &extraShift=casacore::MVDirection(0.0), const casacore::Bool useExtraShift=casacore::False)
 
virtual
casacore::ImageInterface
< casacore::Float > & 
getFluxScaleImage ()
 
virtual void sliceFluxScale (casacore::Int npol)
 slice fluxscale image by npol More...
 
virtual void setWeightImage (casacore::CountedPtr< casacore::TempImage< casacore::Float > > &wgtimage)
 This is a function to just store the final weight image as FT machines will share this object...they can get share this too. More...
 
virtual void setSkyJones (SkyJones *sj)
 
virtual void setVBUtil (casacore::CountedPtr< VisBufferUtil > vbutil)
 
virtual casacore::CountedPtr
< VisBufferUtil
getVBUtil ()
 
casacore::Bool findSupport (casacore::Array< casacore::Complex > &, casacore::Float &, casacore::Int &, casacore::Int &)
 
virtual casacore::Bool makeAverageResponse (const vi::VisBuffer2 &, const casacore::ImageInterface< casacore::Complex > &, casacore::ImageInterface< casacore::Float > &, casacore::Bool)
 
virtual casacore::Bool toRecord (casacore::RecordInterface &outRec)
 Serialization. More...
 
virtual casacore::Bool fromRecord (casacore::String &err, const casacore::RecordInterface &rec, casacore::Bool calcFluxneeded=false)
 From record set calcfluxneeded to true if flux scale need to be computed. More...
 
virtual void reset ()
 give possibility to erase history More...
 
virtual casacore::String name ()
 
void setUsePointing (casacore::Bool usepointing)
 

Protected Member Functions

virtual casacore::Int convIndex (const vi::VisBuffer2 &vb)
 
const casacore::MDirectionpointingDirAnt1 (const vi::VisBuffer2 &vb)
 
virtual void storeImageParams (const casacore::ImageInterface< casacore::Complex > &iimage, const vi::VisBuffer2 &vb)
 
virtual void findUsefulChannels (casacore::Vector< casacore::Int > &chanMap, casacore::Vector< casacore::Double > &chanFreqs, const vi::VisBuffer2 &vb, const casacore::Vector< casacore::Double > &visFreq)
 
virtual void toPix (const vi::VisBuffer2 &vb, const casacore::MVDirection &extraShift=casacore::MVDirection(0.0), const casacore::Bool useExtraShift=casacore::False)
 return the direction pixel corresponding to a direction More...
 

Protected Attributes

SkyJonessj_p
 
casacore::TempImage
< casacore::Float
fluxScale_p
 
casacore::Int nx_p
 
casacore::Int ny_p
 
casacore::Int nchan_p
 
casacore::Int npol_p
 
casacore::CoordinateSystem csys_p
 
casacore::DirectionCoordinate dc_p
 
casacore::MDirection::Convert pointToPix_p
 
casacore::MeasFrame pointFrame_p
 
casacore::MEpoch::Types timeMType_p
 
casacore::Unit timeUnit_p
 
casacore::Int directionIndex_p
 
casacore::MDirection direction1_p
 
casacore::MDirection direction2_p
 
casacore::Vector
< casacore::Double
thePix_p
 
casacore::Bool filledFluxScale_p
 
casacore::Vector< casacore::BooldoneMainConv_p
 
casacore::Bool calcFluxScale_p
 
std::map< casacore::String,
casacore::Int
vbConvIndex_p
 
std::map< casacore::String,
casacore::Int
ant1PointVal_p
 
casacore::Vector
< casacore::MDirection
ant1PointingCache_p
 
FFT2D ft_p
 
casacore::CountedPtr
< casacore::TempImage
< casacore::Float > > 
convWeightImage_p
 
casacore::String bandName_p
 
casacore::CountedPtr
< VisBufferUtil
vbutil_p
 
casacore::Bool usePointingTable_p
 

Private Member Functions

casacore::Bool checkPBOfField (const vi::VisBuffer2 &vb)
 
void addPBToFlux (const vi::VisBuffer2 &vb)
 

Private Attributes

std::map< casacore::String,
casacore::Int
convFunctionMap_p
 
casacore::Int actualConvIndex_p
 
PBMathInterface::PBClass pbClass_p
 
casacore::Matrix
< casacore::Complex > 
convFunc_p
 
casacore::Matrix
< casacore::Complex > 
weightConvFunc_p
 
casacore::Matrix
< casacore::Complex > 
convSave_p
 
casacore::Matrix
< casacore::Complex > 
weightSave_p
 
casacore::Int convSize_p
 
casacore::Int convSupport_p
 
casacore::Block
< casacore::CountedPtr
< casacore::Array
< casacore::Complex > > > 
convFunctions_p
 These are Arrays of 5 dimension (x, y, npol, nchan, nrow) Thus every baseline may have its own. More...
 
casacore::Block
< casacore::CountedPtr
< casacore::Array
< casacore::Complex > > > 
convWeights_p
 
casacore::Block
< casacore::CountedPtr
< casacore::Vector
< casacore::Int > > > 
convSizes_p
 
casacore::Block
< casacore::CountedPtr
< casacore::Vector
< casacore::Int > > > 
convSupportBlock_p
 
casacore::Matrix< casacore::BoolpointingPix_p
 

Detailed Description

Definition at line 86 of file SimplePBConvFunc.h.

Constructor & Destructor Documentation

casa::refim::SimplePBConvFunc::SimplePBConvFunc ( )
casa::refim::SimplePBConvFunc::SimplePBConvFunc ( const PBMathInterface::PBClass  typeToUse)
casa::refim::SimplePBConvFunc::SimplePBConvFunc ( const casacore::RecordInterface rec,
casacore::Bool  calcFlux_needed 
)
virtual casa::refim::SimplePBConvFunc::~SimplePBConvFunc ( )
virtual

Member Function Documentation

void casa::refim::SimplePBConvFunc::addPBToFlux ( const vi::VisBuffer2 vb)
private
casacore::Bool casa::refim::SimplePBConvFunc::checkPBOfField ( const vi::VisBuffer2 vb)
private
virtual casacore::Int casa::refim::SimplePBConvFunc::convIndex ( const vi::VisBuffer2 vb)
protectedvirtual
virtual void casa::refim::SimplePBConvFunc::findConvFunction ( const casacore::ImageInterface< casacore::Complex > &  ,
const vi::VisBuffer2 ,
const casacore::Int ,
SkyJones ,
casacore::Matrix< casacore::Complex > &  ,
casacore::Matrix< casacore::Complex > &  ,
casacore::Int ,
casacore::Int  
)
inlinevirtual

Inputs are the image, visbuffer, convSampling and skyjones findconv return a cached convvolution function appropriate for this visbuffer and skyjones...this one should be superseded by the one below and call setSkyJones when necessary.

Definition at line 98 of file SimplePBConvFunc.h.

Returns the convfunctions in the Cubes the casacore::Matrix rowChanMap maps the vb row and channel to the plane of the convfunc appropriate* virtual void casa::refim::SimplePBConvFunc::findConvFunction ( const casacore::ImageInterface< casacore::Complex > &  iimage,
const vi::VisBuffer2 vb,
const casacore::Int convSampling,
const casacore::Vector< casacore::Double > &  visFreq,
casacore::Array< casacore::Complex > &  convFunc,
casacore::Array< casacore::Complex > &  weightConvFunc,
casacore::Vector< casacore::Int > &  convsize,
casacore::Vector< casacore::Int > &  convSupport,
casacore::Vector< casacore::Int > &  polMap,
casacore::Vector< casacore::Int > &  chanMap,
casacore::Vector< casacore::Int > &  rowMap,
const casacore::Bool  getConjFreqConvFunc = false,
const casacore::MVDirection extraShift = casacore::MVDirection(0.0),
const casacore::Bool  useExtraShift = casacore::False 
)
virtual

Reimplemented in casa::refim::HetArrayConvFunc.

casacore::Bool casa::refim::SimplePBConvFunc::findSupport ( casacore::Array< casacore::Complex > &  ,
casacore::Float ,
casacore::Int ,
casacore::Int  
)
inline

Definition at line 128 of file SimplePBConvFunc.h.

virtual void casa::refim::SimplePBConvFunc::findUsefulChannels ( casacore::Vector< casacore::Int > &  chanMap,
casacore::Vector< casacore::Double > &  chanFreqs,
const vi::VisBuffer2 vb,
const casacore::Vector< casacore::Double > &  visFreq 
)
protectedvirtual
virtual casacore::Bool casa::refim::SimplePBConvFunc::fromRecord ( casacore::String err,
const casacore::RecordInterface rec,
casacore::Bool  calcFluxneeded = false 
)
virtual

From record set calcfluxneeded to true if flux scale need to be computed.

Reimplemented in casa::refim::HetArrayConvFunc.

virtual casacore::ImageInterface<casacore::Float>& casa::refim::SimplePBConvFunc::getFluxScaleImage ( )
virtual

Reimplemented in casa::refim::HetArrayConvFunc.

virtual casacore::CountedPtr<VisBufferUtil> casa::refim::SimplePBConvFunc::getVBUtil ( )
inlinevirtual

Definition at line 127 of file SimplePBConvFunc.h.

References vbutil_p.

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

Definition at line 130 of file SimplePBConvFunc.h.

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

Reimplemented in casa::refim::HetArrayConvFunc.

Definition at line 143 of file SimplePBConvFunc.h.

const casacore::MDirection& casa::refim::SimplePBConvFunc::pointingDirAnt1 ( const vi::VisBuffer2 vb)
protected
virtual void casa::refim::SimplePBConvFunc::reset ( )
virtual

give possibility to erase history

Reimplemented in casa::refim::HetArrayConvFunc.

virtual void casa::refim::SimplePBConvFunc::setSkyJones ( SkyJones sj)
virtual
void casa::refim::SimplePBConvFunc::setUsePointing ( casacore::Bool  usepointing)
inline

Definition at line 144 of file SimplePBConvFunc.h.

virtual void casa::refim::SimplePBConvFunc::setVBUtil ( casacore::CountedPtr< VisBufferUtil vbutil)
inlinevirtual

Definition at line 126 of file SimplePBConvFunc.h.

References vbutil_p.

virtual void casa::refim::SimplePBConvFunc::setWeightImage ( casacore::CountedPtr< casacore::TempImage< casacore::Float > > &  wgtimage)
virtual

This is a function to just store the final weight image as FT machines will share this object...they can get share this too.

virtual void casa::refim::SimplePBConvFunc::sliceFluxScale ( casacore::Int  npol)
virtual

slice fluxscale image by npol

Reimplemented in casa::refim::HetArrayConvFunc.

virtual void casa::refim::SimplePBConvFunc::storeImageParams ( const casacore::ImageInterface< casacore::Complex > &  iimage,
const vi::VisBuffer2 vb 
)
protectedvirtual
virtual void casa::refim::SimplePBConvFunc::toPix ( const vi::VisBuffer2 vb,
const casacore::MVDirection extraShift = casacore::MVDirection(0.0),
const casacore::Bool  useExtraShift = casacore::False 
)
protectedvirtual

return the direction pixel corresponding to a direction

virtual casacore::Bool casa::refim::SimplePBConvFunc::toRecord ( casacore::RecordInterface outRec)
virtual

Serialization.

Reimplemented in casa::refim::HetArrayConvFunc.

Member Data Documentation

casacore::Int casa::refim::SimplePBConvFunc::actualConvIndex_p
private

Definition at line 183 of file SimplePBConvFunc.h.

casacore::Vector<casacore::MDirection> casa::refim::SimplePBConvFunc::ant1PointingCache_p
protected

Definition at line 168 of file SimplePBConvFunc.h.

std::map<casacore::String, casacore::Int> casa::refim::SimplePBConvFunc::ant1PointVal_p
protected

Definition at line 167 of file SimplePBConvFunc.h.

casacore::String casa::refim::SimplePBConvFunc::bandName_p
protected

Definition at line 176 of file SimplePBConvFunc.h.

casacore::Bool casa::refim::SimplePBConvFunc::calcFluxScale_p
protected

Definition at line 164 of file SimplePBConvFunc.h.

casacore::Matrix<casacore::Complex> casa::refim::SimplePBConvFunc::convFunc_p
private

Definition at line 186 of file SimplePBConvFunc.h.

std::map<casacore::String, casacore::Int> casa::refim::SimplePBConvFunc::convFunctionMap_p
private

Definition at line 182 of file SimplePBConvFunc.h.

casacore::Block<casacore::CountedPtr<casacore::Array<casacore::Complex> > > casa::refim::SimplePBConvFunc::convFunctions_p
private

These are Arrays of 5 dimension (x, y, npol, nchan, nrow) Thus every baseline may have its own.

Definition at line 194 of file SimplePBConvFunc.h.

casacore::Matrix<casacore::Complex> casa::refim::SimplePBConvFunc::convSave_p
private

Definition at line 188 of file SimplePBConvFunc.h.

casacore::Int casa::refim::SimplePBConvFunc::convSize_p
private

Definition at line 190 of file SimplePBConvFunc.h.

casacore::Block<casacore::CountedPtr<casacore::Vector<casacore::Int> > > casa::refim::SimplePBConvFunc::convSizes_p
private

Definition at line 196 of file SimplePBConvFunc.h.

casacore::Int casa::refim::SimplePBConvFunc::convSupport_p
private

Definition at line 191 of file SimplePBConvFunc.h.

casacore::Block<casacore::CountedPtr<casacore::Vector<casacore::Int> > > casa::refim::SimplePBConvFunc::convSupportBlock_p
private

Definition at line 197 of file SimplePBConvFunc.h.

casacore::CountedPtr<casacore::TempImage<casacore::Float> > casa::refim::SimplePBConvFunc::convWeightImage_p
protected

Definition at line 175 of file SimplePBConvFunc.h.

casacore::Block<casacore::CountedPtr<casacore::Array<casacore::Complex> > > casa::refim::SimplePBConvFunc::convWeights_p
private

Definition at line 195 of file SimplePBConvFunc.h.

casacore::CoordinateSystem casa::refim::SimplePBConvFunc::csys_p
protected

Definition at line 152 of file SimplePBConvFunc.h.

casacore::DirectionCoordinate casa::refim::SimplePBConvFunc::dc_p
protected

Definition at line 153 of file SimplePBConvFunc.h.

casacore::MDirection casa::refim::SimplePBConvFunc::direction1_p
protected

Definition at line 159 of file SimplePBConvFunc.h.

casacore::MDirection casa::refim::SimplePBConvFunc::direction2_p
protected

Definition at line 160 of file SimplePBConvFunc.h.

casacore::Int casa::refim::SimplePBConvFunc::directionIndex_p
protected

Definition at line 158 of file SimplePBConvFunc.h.

casacore::Vector<casacore::Bool> casa::refim::SimplePBConvFunc::doneMainConv_p
protected

Definition at line 163 of file SimplePBConvFunc.h.

casacore::Bool casa::refim::SimplePBConvFunc::filledFluxScale_p
protected

Definition at line 162 of file SimplePBConvFunc.h.

casacore::TempImage<casacore::Float> casa::refim::SimplePBConvFunc::fluxScale_p
protected

Definition at line 147 of file SimplePBConvFunc.h.

FFT2D casa::refim::SimplePBConvFunc::ft_p
protected

Definition at line 174 of file SimplePBConvFunc.h.

casacore::Int casa::refim::SimplePBConvFunc::nchan_p
protected

Definition at line 150 of file SimplePBConvFunc.h.

casacore::Int casa::refim::SimplePBConvFunc::npol_p
protected

Definition at line 151 of file SimplePBConvFunc.h.

casacore::Int casa::refim::SimplePBConvFunc::nx_p
protected

Definition at line 148 of file SimplePBConvFunc.h.

casacore::Int casa::refim::SimplePBConvFunc::ny_p
protected

Definition at line 149 of file SimplePBConvFunc.h.

PBMathInterface::PBClass casa::refim::SimplePBConvFunc::pbClass_p
private

Definition at line 184 of file SimplePBConvFunc.h.

casacore::MeasFrame casa::refim::SimplePBConvFunc::pointFrame_p
protected

Definition at line 155 of file SimplePBConvFunc.h.

casacore::Matrix<casacore::Bool> casa::refim::SimplePBConvFunc::pointingPix_p
private

Definition at line 198 of file SimplePBConvFunc.h.

casacore::MDirection::Convert casa::refim::SimplePBConvFunc::pointToPix_p
protected

Definition at line 154 of file SimplePBConvFunc.h.

SkyJones* casa::refim::SimplePBConvFunc::sj_p
protected

Definition at line 144 of file SimplePBConvFunc.h.

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

Definition at line 161 of file SimplePBConvFunc.h.

casacore::MEpoch::Types casa::refim::SimplePBConvFunc::timeMType_p
protected

Definition at line 156 of file SimplePBConvFunc.h.

casacore::Unit casa::refim::SimplePBConvFunc::timeUnit_p
protected

Definition at line 157 of file SimplePBConvFunc.h.

casacore::Bool casa::refim::SimplePBConvFunc::usePointingTable_p
protected

Definition at line 178 of file SimplePBConvFunc.h.

std::map<casacore::String, casacore::Int> casa::refim::SimplePBConvFunc::vbConvIndex_p
protected

Definition at line 165 of file SimplePBConvFunc.h.

casacore::CountedPtr<VisBufferUtil> casa::refim::SimplePBConvFunc::vbutil_p
protected

Definition at line 177 of file SimplePBConvFunc.h.

Referenced by getVBUtil(), and setVBUtil().

casacore::Matrix<casacore::Complex> casa::refim::SimplePBConvFunc::weightConvFunc_p
private

Definition at line 187 of file SimplePBConvFunc.h.

casacore::Matrix<casacore::Complex> casa::refim::SimplePBConvFunc::weightSave_p
private

Definition at line 189 of file SimplePBConvFunc.h.


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