casa::refim::AWProjectFT Class Reference

#include <AWProjectFT.h>

Inheritance diagram for casa::refim::AWProjectFT:
casa::refim::FTMachine casa::refim::AWProjectWBFT casa::refim::AWProjectWBFTNew

List of all members.

Public Member Functions

 AWProjectFT ()
 AWProjectFT (Int nFacets, Long cachesize, CountedPtr< CFCache > &cfcache, CountedPtr< ConvolutionFunction > &cf, CountedPtr< VisibilityResamplerBase > &visResampler, Bool applyPointingOffset=True, Bool doPBCorr=True, Int tilesize=16, Float pbLimit=5e-4, Bool usezero=False, Bool conjBeams_p=True, Bool doublePrecGrid=False, PolOuterProduct::MuellerType muellerType=PolOuterProduct::FULL)
 Constructor: cachesize is the size of the cache in words (e.g.
 AWProjectFT (const RecordInterface &stateRec)
 Construct from a Record containing the AWProjectFT state.
 AWProjectFT (const AWProjectFT &other)
 Copy constructor.
AWProjectFToperator= (const AWProjectFT &other)
 Assignment operator.
 ~AWProjectFT ()
void setEPJones (SolvableVisJones *ep_j)
 void setEPJones(EPJones* ep_j) {epJ = ep_j;}
virtual void setDOPBCorrection (Bool doit=True)
virtual Bool getDOPBCorrection ()
virtual void setConjBeams (Bool useit=True)
virtual Bool getConjBeams ()
virtual Float getPBLimit ()
void setObservatoryLocation (const MPosition &mLocation)
 Initialize transform to Visibility plane using the image as a template.
virtual void initializeToVis (Block< CountedPtr< ImageInterface< Complex > > > &compImageVec, PtrBlock< SubImage< Float > * > &modelImageVec, PtrBlock< SubImage< Float > * > &weightImageVec, PtrBlock< SubImage< Float > * > &fluxScaleVec, Block< Matrix< Float > > &weightsVec, const vi::VisBuffer2 &vb)
 Vectorized version of initializeToVis.
virtual void initializeToVis (ImageInterface< Complex > &image, const vi::VisBuffer2 &vb)
 Initialize transform to Visibility plane.
virtual void initializeToVis (ImageInterface< Complex > &image, const vi::VisBuffer2 &vb, Array< Complex > &griddedVis, Vector< Double > &uvscale)
 This version returns the gridded vis...should be used in conjunction with the version of 'get' that needs the gridded visdata.
virtual void finalizeToVis ()
 Finalize transform to Visibility plane: flushes the image cache and shows statistics if it is being used.
virtual void initializeToSky (ImageInterface< Complex > &image, Matrix< Float > &weight, const vi::VisBuffer2 &vb)
 Initialize transform to Sky plane: initializes the image.
virtual void finalizeToSky ()
 Finalize transform to Sky plane: flushes the image cache and shows statistics if it is being used.
virtual void initVisBuffer (vi::VisBuffer2 &vb, Type whichVBColumn)
void initVisBuffer (vi::VisBuffer2 &vb, Type whichVBColumn, Int row)
void get (vi::VisBuffer2 &vb, Int row=-1)
 Get actual coherence from grid by degridding.
void get (vi::VisBuffer2 &vb, Cube< Complex > &degrid, Array< Complex > &griddedVis, Vector< Double > &scale, Int row=-1)
 Get the coherence from grid return it in the degrid is used especially when scratch columns are not present in ms.
void get (vi::VisBuffer2 &vb, Cube< Float > &pointingOffsets, Int row=-1, FTMachine::Type whichVBColumn=FTMachine::MODEL, Int Conj=0)
void get (vi::VisBuffer2 &vb, vi::VisBuffer2 &gradAzVB, vi::VisBuffer2 &gradElVB, Cube< Float > &pointingOffsets, Int row=-1, Type whichVBColumn=FTMachine::MODEL, Type whichGradVBColumn=FTMachine::MODEL, Int Conj=0, Int doGrad=1)
void nget (vi::VisBuffer2 &vb, Array< Float > &l_off, Array< Float > &m_off, Cube< Complex > &Mout, Cube< Complex > &dMout1, Cube< Complex > &dMout2, Int Conj=0, Int doGrad=1)
void get (vi::VisBuffer2 &vb, Cube< Complex > &degrid, Array< Complex > &griddedVis, Vector< Double > &scale, Cube< Float > &pointingOffsets, Int row=-1)
 Get the coherence from grid return it in the degrid is used especially when scratch columns are not present in ms.
void put (const vi::VisBuffer2 &, TempImage< Complex > &, Vector< Double > &, int, UVWMachine *, Bool)
 Put coherence to grid by gridding.
void put (const vi::VisBuffer2 &vb, Int row=-1, Bool dopsf=False, FTMachine::Type type=FTMachine::OBSERVED)
 Put coherence to grid.
virtual ImageInterface< Complex > & getImage (Matrix< Float > &, Bool normalize=True)
 Make the entire image using a ROVisIter virtual void makeImage(FTMachine::Type, ROVisibilityIterator&, ImageInterface<Complex>&, Matrix<Float>&) {};.
void getWeightImage (ImageInterface< Float > &, Matrix< Float > &)
 Get the final weights image.
Bool toRecord (RecordInterface &outRec, Bool withImage=False)
 Save and restore the AWProjectFT to and from a record.
Bool fromRecord (const RecordInterface &inRec)
Bool isFourier ()
 Can this FTMachine be represented by Fourier convolutions?
virtual Int findPointingOffsets (const vi::VisBuffer2 &, Array< Float > &, Array< Float > &, Bool Evaluate=True)
 Bool changed(const VisBuffer& vb) {return vpSJ->changed(vb,1);}; Bool changed(const VisBuffer& vb) {return False;}.
virtual Int findPointingOffsets (const vi::VisBuffer2 &, Cube< Float > &, Array< Float > &, Array< Float > &, Bool Evaluate=True)
virtual Double getVBPA (const vi::VisBuffer2 &vb)
MDirection::Convert makeCoordinateMachine (const vi::VisBuffer2 &, const MDirection::Types &, const MDirection::Types &, MEpoch &last)
virtual void makeSensitivityImage (Lattice< Complex > &, ImageInterface< Float > &, const Matrix< Float > &, const Bool &)
 Make a sensitivity image (sensitivityImage), given the gridded weights (wtImage).
virtual void makeSensitivityImage (const vi::VisBuffer2 &vb, const ImageInterface< Complex > &imageTemplate, ImageInterface< Float > &sensitivityImage)
virtual ImageInterface< Float > & getSensitivityImage ()
 Given the sky image (Fourier transform of the visibilities), sum of weights and the sensitivity image, this method replaces the skyImage with the normalized image of the sky.
virtual Matrix< Double > & getSumOfWeights ()
virtual Matrix< Double > & getSumOfCFWeights ()
void makeConjPolMap (const vi::VisBuffer2 &vb, const Vector< Int > cfPolMap, Vector< Int > &conjPolMap)
void makeCFPolMap (const vi::VisBuffer2 &vb, const Vector< Int > &cfstokes, Vector< Int > &polM)
 Vector<Int> makeConjPolMap(const VisBuffer& vb);.
void reset ()
 void reset() {vpSJ->reset();}
void setPAIncrement (const Quantity &computePAIncr, const Quantity &rotateOTFPAIncr)
Vector< Int > & getPolMap ()
virtual String name () const
 Return the name of the machine.
virtual Bool verifyAvgPB (ImageInterface< Float > &pb, ImageInterface< Float > &sky)
virtual Bool verifyAvgPB (ImageInterface< Float > &pb, ImageInterface< Complex > &sky)
virtual Bool verifyShapes (IPosition shape0, IPosition shape1)
virtual Float pbFunc (const Float &a, const Float &limit)
virtual Complex pbFunc (const Complex &a, const Float &limit)
 {if (abs(a) >= limit) return (a);else return 1.0;};
virtual void setMiscInfo (const Int qualifier)
 set the order of the Taylor term for MFS this is to tell A-Projection to qualify the accumulated avgPB for each Taylor term in the CFCache.
virtual void ComputeResiduals (vi::VisBuffer2 &vb, Bool useCorrected)
 Make the VB and VBStore interefaces for the interim re-factoring work.
void makeWBCFWt (CFStore2 &cfs, const Double imRefFreq)

Static Public Member Functions

static ATermcreateTelescopeATerm (const String &telescopeName, const Bool &isATermOn)
static CountedPtr
< ConvolutionFunction
makeCFObject (const String &telescopeName, const Bool aTermOn, const Bool psTermOn, const Bool wTermOn, const Bool mTermOn, const Bool wBAWP, const Int cfBufferSize=-1, const Int cfOverSampling=-1)

Public Attributes

CFBStruct cfbst_pub
Vector< Double > uvScale
 Image Scaling and offset.
Vector< Double > uvOffset

Protected Member Functions

Int nint (Double val)
void findConvFunction (const ImageInterface< Complex > &image, const vi::VisBuffer2 &vb)
 Locate convolution functions on the disk Int locateConvFunction(const Int Nw, const Float pa); void cacheConvFunction(Int which, Array<Complex>& cf, CoordinateSystem& coord); Find the convolution function.
Array< Complex > * getDataPointer (const IPosition &, Bool)
 Get the appropriate data pointer.
void ok ()
void init ()
Bool recordOnGrid (const vi::VisBuffer2 &vb, Int rownr) const
 virtual void initPolInfo(const vi::VisBuffer2& vb); Is this record on Grid? check both ends.
virtual void normalizeAvgPB ()
 ----------------------------------------------------------------------
virtual void normalizeAvgPB (ImageInterface< Complex > &inImage, ImageInterface< Float > &outImage)
virtual void resampleDataToGrid (Array< Complex > &griddedData, VBStore &vbs, const vi::VisBuffer2 &vb, Bool &dopsf)
virtual void resampleDataToGrid (Array< DComplex > &griddedData, VBStore &vbs, const vi::VisBuffer2 &vb, Bool &dopsf)
virtual void resampleGridToData (VBStore &vbs, Array< Complex > &griddedData, const vi::VisBuffer2 &vb)
virtual void makeThGridCoords (VBStore &vbs, const Vector< Int > &gridShape)
virtual void setupVBStore (VBStore &vbs, const vi::VisBuffer2 &vb, const Matrix< Float > &imagingweight, const Cube< Complex > &visData, const Matrix< Double > &uvw, const Cube< Int > &flagCube, const Vector< Double > &dphase, const Bool &doPSF, const Vector< Int > &gridShape)

Protected Attributes

Float padding_p
 Padding in FFT.
Int nWPlanes_p
LatticeCache< Complex > * imageCache
 Image cache.
Long cachesize
 Sizes.
Int tilesize
ConvolveGridder< Double,
Complex > * 
gridder
 Gridder.
Bool isTiled
 Is this tiled?
CountedPtr< Lattice< Complex > > arrayLattice
 Array lattice.
CountedPtr< Lattice< Complex > > lattice
 Lattice.
Float maxAbsData
IPosition centerLoc
 Useful IPositions.
IPosition offsetLoc
MDirection::Convert * pointingToImage
 // Image Scaling and offset Vector<Double> uvScale, uvOffset;
Bool usezero_p
 Grid/degrid zero spacing points?
Int convSampling
 CountedPtr<ConvolutionFunction> telescopeConvFunc_p; CFStore cfs_p, cfwts_p; Array<Complex> convFunc_p, convWeights_p;.
Int wConvSize
Int lastIndex_p
CountedPtr< ImageInterface
< Float > > 
avgPB_p
 The average PB for sky image normalization.
CountedPtr< ImageInterface
< Complex > > 
avgPBSq_p
Int maxConvSupport
 No.
CountedPtr< SolvableVisJonesepJ_p
 Percentage of the peak of the PB after which the image is set to zero.
Double sigma
Int Nant_p
Int doPointing
Bool doPBCorrection
Bool makingPSF
Bool conjBeams_p
ParAngleChangeDetector paChangeDetector
 CountedPtr<CFCache> cfCache_p;.
Double rotateOTFPAIncr_p
Double computePAIncr_p
Unit Second
Unit Radian
Unit Day
Array< Float > l_offsets
Array< Float > m_offsets
Vector< Float > pbPeaks
Vector< Float > paList
Double currentCFPA
Double cfRefFreq_p
Double imRefFreq_p
Float lastPAUsedForWtImg
Bool pbNormalized_p
Vector< Bool > paNdxProcessed_p
CountedPtr
< VisibilityResamplerBase
visResampler_p
 AWVisResampler visResampler_p;.
Int sensitivityPatternQualifier_p
String sensitivityPatternQualifierStr_p
CFStore rotatedConvFunc_p
Vector< Int > ConjCFMap_p
 CountedPtr<CFStore2> cfs2_p, cfwts2_p;.
Vector< Int > CFMap_p
Timer timer_p
Double runTime1_p
PolOuterProduct::MuellerType muellerType_p

Detailed Description

Definition at line 153 of file AWProjectFT.h.


Constructor & Destructor Documentation

casa::refim::AWProjectFT::AWProjectFT (  ) 
casa::refim::AWProjectFT::AWProjectFT ( Int  nFacets,
Long  cachesize,
CountedPtr< CFCache > &  cfcache,
CountedPtr< ConvolutionFunction > &  cf,
CountedPtr< VisibilityResamplerBase > &  visResampler,
Bool  applyPointingOffset = True,
Bool  doPBCorr = True,
Int  tilesize = 16,
Float  pbLimit = 5e-4,
Bool  usezero = False,
Bool  conjBeams_p = True,
Bool  doublePrecGrid = False,
PolOuterProduct::MuellerType  muellerType = PolOuterProduct::FULL 
)

Constructor: cachesize is the size of the cache in words (e.g.

a few million is a good number), tilesize is the size of the tile used in gridding (cannot be less than 12, 16 works in most cases).

casa::refim::AWProjectFT::AWProjectFT ( const RecordInterface &  stateRec  ) 

Construct from a Record containing the AWProjectFT state.

casa::refim::AWProjectFT::AWProjectFT ( const AWProjectFT other  ) 

Copy constructor.

casa::refim::AWProjectFT::~AWProjectFT (  ) 

Member Function Documentation

virtual void casa::refim::AWProjectFT::ComputeResiduals ( vi::VisBuffer2 vb,
Bool  useCorrected 
) [virtual]

Make the VB and VBStore interefaces for the interim re-factoring work.

Finally removed the VB interface.

Implements casa::refim::FTMachine.

static ATerm* casa::refim::AWProjectFT::createTelescopeATerm ( const String &  telescopeName,
const Bool &  isATermOn 
) [static]
virtual void casa::refim::AWProjectFT::finalizeToSky (  )  [virtual]

Finalize transform to Sky plane: flushes the image cache and shows statistics if it is being used.

DOES NOT DO THE FINAL TRANSFORM!

Implements casa::refim::FTMachine.

Reimplemented in casa::refim::AWProjectWBFT.

virtual void casa::refim::AWProjectFT::finalizeToVis (  )  [virtual]

Finalize transform to Visibility plane: flushes the image cache and shows statistics if it is being used.

Implements casa::refim::FTMachine.

void casa::refim::AWProjectFT::findConvFunction ( const ImageInterface< Complex > &  image,
const vi::VisBuffer2 vb 
) [protected, virtual]

Locate convolution functions on the disk Int locateConvFunction(const Int Nw, const Float pa); void cacheConvFunction(Int which, Array<Complex>& cf, CoordinateSystem& coord); Find the convolution function.

Reimplemented from casa::refim::FTMachine.

virtual Int casa::refim::AWProjectFT::findPointingOffsets ( const vi::VisBuffer2 ,
Cube< Float > &  ,
Array< Float > &  ,
Array< Float > &  ,
Bool  Evaluate = True 
) [virtual]
virtual Int casa::refim::AWProjectFT::findPointingOffsets ( const vi::VisBuffer2 ,
Array< Float > &  ,
Array< Float > &  ,
Bool  Evaluate = True 
) [virtual]

Bool changed(const VisBuffer& vb) {return vpSJ->changed(vb,1);}; Bool changed(const VisBuffer& vb) {return False;}.

Reimplemented in casa::refim::AWProjectWBFT.

Bool casa::refim::AWProjectFT::fromRecord ( const RecordInterface &  inRec  ) 
void casa::refim::AWProjectFT::get ( vi::VisBuffer2 vb,
Cube< Complex > &  degrid,
Array< Complex > &  griddedVis,
Vector< Double > &  scale,
Cube< Float > &  pointingOffsets,
Int  row = -1 
)

Get the coherence from grid return it in the degrid is used especially when scratch columns are not present in ms.

void casa::refim::AWProjectFT::get ( vi::VisBuffer2 vb,
vi::VisBuffer2 gradAzVB,
vi::VisBuffer2 gradElVB,
Cube< Float > &  pointingOffsets,
Int  row = -1,
Type  whichVBColumn = FTMachine::MODEL,
Type  whichGradVBColumn = FTMachine::MODEL,
Int  Conj = 0,
Int  doGrad = 1 
)
void casa::refim::AWProjectFT::get ( vi::VisBuffer2 vb,
Cube< Float > &  pointingOffsets,
Int  row = -1,
FTMachine::Type  whichVBColumn = FTMachine::MODEL,
Int  Conj = 0 
) [inline]

Definition at line 258 of file AWProjectFT.h.

void casa::refim::AWProjectFT::get ( vi::VisBuffer2 vb,
Cube< Complex > &  degrid,
Array< Complex > &  griddedVis,
Vector< Double > &  scale,
Int  row = -1 
)

Get the coherence from grid return it in the degrid is used especially when scratch columns are not present in ms.

void casa::refim::AWProjectFT::get ( vi::VisBuffer2 vb,
Int  row = -1 
) [virtual]

Get actual coherence from grid by degridding.

Implements casa::refim::FTMachine.

virtual Bool casa::refim::AWProjectFT::getConjBeams (  )  [inline, virtual]

Definition at line 203 of file AWProjectFT.h.

References conjBeams_p.

Array<Complex>* casa::refim::AWProjectFT::getDataPointer ( const IPosition &  ,
Bool   
) [protected]

Get the appropriate data pointer.

virtual Bool casa::refim::AWProjectFT::getDOPBCorrection (  )  [inline, virtual]

Definition at line 201 of file AWProjectFT.h.

References doPBCorrection.

virtual ImageInterface<Complex>& casa::refim::AWProjectFT::getImage ( Matrix< Float > &  ,
Bool  normalize = True 
) [virtual]

Make the entire image using a ROVisIter virtual void makeImage(FTMachine::Type, ROVisibilityIterator&, ImageInterface<Complex>&, Matrix<Float>&) {};.

Make the entire image void makeImage(FTMachine::Type type, VisSet& vs, ImageInterface<Complex>& image, Matrix<Float>& weight);

Get the final image: do the Fourier transform and grid-correct, then optionally normalize by the summed weights

Implements casa::refim::FTMachine.

Reimplemented in casa::refim::AWProjectWBFT.

virtual Float casa::refim::AWProjectFT::getPBLimit (  )  [inline, virtual]

Reimplemented from casa::refim::FTMachine.

Definition at line 205 of file AWProjectFT.h.

References casa::refim::FTMachine::pbLimit_p.

Vector<Int>& casa::refim::AWProjectFT::getPolMap (  )  [inline]

Definition at line 391 of file AWProjectFT.h.

References casa::refim::FTMachine::polMap.

virtual ImageInterface<Float>& casa::refim::AWProjectFT::getSensitivityImage (  )  [inline, virtual]

Given the sky image (Fourier transform of the visibilities), sum of weights and the sensitivity image, this method replaces the skyImage with the normalized image of the sky.

These are now implement in the FTMachine base class.

These can't be left here since now the design depends on getting the correct version called due to static type casting of FTM pointer and not on inheretance and and specialization via overloading.

virtual void normalizeImage(Lattice<Complex>& skyImage, const Matrix<Double>& sumOfWts, Lattice<Float>& sensitivityImage, Bool fftNorm=True); virtual void normalizeImage(Lattice<Complex>& skyImage, const Matrix<Double>& sumOfWts, Lattice<Float>& sensitivityImage, Lattice<Complex>& sensitivitySqImage, Bool fftNorm=True);

Definition at line 377 of file AWProjectFT.h.

References avgPB_p.

virtual Matrix<Double>& casa::refim::AWProjectFT::getSumOfCFWeights (  )  [inline, virtual]

Definition at line 379 of file AWProjectFT.h.

References casa::refim::FTMachine::sumCFWeight.

virtual Matrix<Double>& casa::refim::AWProjectFT::getSumOfWeights (  )  [inline, virtual]

Definition at line 378 of file AWProjectFT.h.

References casa::refim::FTMachine::sumWeight.

virtual Double casa::refim::AWProjectFT::getVBPA ( const vi::VisBuffer2 vb  )  [inline, virtual]

if (!rotateApertureOTP_p) return currentCFPA; else return getPA(vb);

Definition at line 328 of file AWProjectFT.h.

References casa::refim::getPA().

void casa::refim::AWProjectFT::getWeightImage ( ImageInterface< Float > &  ,
Matrix< Float > &   
) [virtual]

Get the final weights image.

Implements casa::refim::FTMachine.

void casa::refim::AWProjectFT::init (  )  [protected]
virtual void casa::refim::AWProjectFT::initializeToSky ( ImageInterface< Complex > &  image,
Matrix< Float > &  weight,
const vi::VisBuffer2 vb 
) [virtual]

Initialize transform to Sky plane: initializes the image.

Implements casa::refim::FTMachine.

Reimplemented in casa::refim::AWProjectWBFT.

virtual void casa::refim::AWProjectFT::initializeToVis ( ImageInterface< Complex > &  image,
const vi::VisBuffer2 vb,
Array< Complex > &  griddedVis,
Vector< Double > &  uvscale 
) [virtual]

This version returns the gridded vis...should be used in conjunction with the version of 'get' that needs the gridded visdata.

virtual void casa::refim::AWProjectFT::initializeToVis ( ImageInterface< Complex > &  image,
const vi::VisBuffer2 vb 
) [virtual]

Initialize transform to Visibility plane.

Implements casa::refim::FTMachine.

virtual void casa::refim::AWProjectFT::initializeToVis ( Block< CountedPtr< ImageInterface< Complex > > > &  compImageVec,
PtrBlock< SubImage< Float > * > &  modelImageVec,
PtrBlock< SubImage< Float > * > &  weightImageVec,
PtrBlock< SubImage< Float > * > &  fluxScaleVec,
Block< Matrix< Float > > &  weightsVec,
const vi::VisBuffer2 vb 
) [virtual]

Vectorized version of initializeToVis.

Required since MultiTermFTM needs vectorized version. And this is implemented in FTMachine (the baseclass). And one relies on static_cast in Imager::createFTMachine() (or is it in CSE?) to cast the pointer to specific types such that this methods gets called when the FTMachine pointer is of type AWProjectFT.

void casa::refim::AWProjectFT::initVisBuffer ( vi::VisBuffer2 vb,
Type  whichVBColumn,
Int  row 
)
virtual void casa::refim::AWProjectFT::initVisBuffer ( vi::VisBuffer2 vb,
Type  whichVBColumn 
) [virtual]
Bool casa::refim::AWProjectFT::isFourier (  )  [inline, virtual]

Can this FTMachine be represented by Fourier convolutions?

Reimplemented from casa::refim::FTMachine.

Definition at line 318 of file AWProjectFT.h.

References casacore::True.

static CountedPtr<ConvolutionFunction> casa::refim::AWProjectFT::makeCFObject ( const String &  telescopeName,
const Bool  aTermOn,
const Bool  psTermOn,
const Bool  wTermOn,
const Bool  mTermOn,
const Bool  wBAWP,
const Int  cfBufferSize = -1,
const Int  cfOverSampling = -1 
) [static]
void casa::refim::AWProjectFT::makeCFPolMap ( const vi::VisBuffer2 vb,
const Vector< Int > &  cfstokes,
Vector< Int > &  polM 
)

Vector<Int> makeConjPolMap(const VisBuffer& vb);.

void casa::refim::AWProjectFT::makeConjPolMap ( const vi::VisBuffer2 vb,
const Vector< Int >  cfPolMap,
Vector< Int > &  conjPolMap 
)
MDirection::Convert casa::refim::AWProjectFT::makeCoordinateMachine ( const vi::VisBuffer2 ,
const MDirection::Types &  ,
const MDirection::Types &  ,
MEpoch &  last 
)
virtual void casa::refim::AWProjectFT::makeSensitivityImage ( const vi::VisBuffer2 vb,
const ImageInterface< Complex > &  imageTemplate,
ImageInterface< Float > &  sensitivityImage 
) [virtual]

Reimplemented in casa::refim::AWProjectWBFT.

virtual void casa::refim::AWProjectFT::makeSensitivityImage ( Lattice< Complex > &  ,
ImageInterface< Float > &  ,
const Matrix< Float > &  ,
const Bool &   
) [inline, virtual]

Make a sensitivity image (sensitivityImage), given the gridded weights (wtImage).

These are related to each other by a Fourier transform and normalization by the sum-of-weights (sumWt) and normalization by the product of the 2D FFT size along each axis. If doFFTNorm=False, normalization by the FFT size is not done. If sumWt is not provided, normalization by the sum of weights is also not done.

Reimplemented in casa::refim::AWProjectWBFT.

Definition at line 347 of file AWProjectFT.h.

virtual void casa::refim::AWProjectFT::makeThGridCoords ( VBStore vbs,
const Vector< Int > &  gridShape 
) [protected, virtual]
void casa::refim::AWProjectFT::makeWBCFWt ( CFStore2 cfs,
const Double  imRefFreq 
)
virtual String casa::refim::AWProjectFT::name (  )  const [inline, virtual]

Return the name of the machine.

Implements casa::refim::FTMachine.

Reimplemented in casa::refim::AWProjectWBFT, and casa::refim::AWProjectWBFTNew.

Definition at line 392 of file AWProjectFT.h.

void casa::refim::AWProjectFT::nget ( vi::VisBuffer2 vb,
Array< Float > &  l_off,
Array< Float > &  m_off,
Cube< Complex > &  Mout,
Cube< Complex > &  dMout1,
Cube< Complex > &  dMout2,
Int  Conj = 0,
Int  doGrad = 1 
)
Parameters:
l_off These offsets should be appropriate for the VB
Int casa::refim::AWProjectFT::nint ( Double  val  )  [inline, protected]

Definition at line 421 of file AWProjectFT.h.

References casacore::floor().

virtual void casa::refim::AWProjectFT::normalizeAvgPB ( ImageInterface< Complex > &  inImage,
ImageInterface< Float > &  outImage 
) [protected, virtual]

Reimplemented in casa::refim::AWProjectWBFT.

virtual void casa::refim::AWProjectFT::normalizeAvgPB (  )  [protected, virtual]

----------------------------------------------------------------------

Reimplemented in casa::refim::AWProjectWBFT.

void casa::refim::AWProjectFT::ok (  )  [protected, virtual]

Reimplemented from casa::refim::FTMachine.

AWProjectFT& casa::refim::AWProjectFT::operator= ( const AWProjectFT other  ) 

Assignment operator.

Reimplemented from casa::refim::FTMachine.

Reimplemented in casa::refim::AWProjectWBFT.

virtual Complex casa::refim::AWProjectFT::pbFunc ( const Complex &  a,
const Float &  limit 
) [inline, virtual]

{if (abs(a) >= limit) return (a);else return 1.0;};

Definition at line 405 of file AWProjectFT.h.

References casacore::abs().

virtual Float casa::refim::AWProjectFT::pbFunc ( const Float &  a,
const Float &  limit 
) [inline, virtual]

Reimplemented in casa::refim::AWProjectWBFT.

Definition at line 401 of file AWProjectFT.h.

References casacore::abs(), and casacore::sqrt().

void casa::refim::AWProjectFT::put ( const vi::VisBuffer2 vb,
Int  row = -1,
Bool  dopsf = False,
FTMachine::Type  type = FTMachine::OBSERVED 
) [virtual]

Put coherence to grid.

Implements casa::refim::FTMachine.

void casa::refim::AWProjectFT::put ( const vi::VisBuffer2 ,
TempImage< Complex > &  ,
Vector< Double > &  ,
int  ,
UVWMachine *  ,
Bool   
) [inline]

Put coherence to grid by gridding.

throw(AipsError("AWProjectFT::put is not implemented"));

Definition at line 285 of file AWProjectFT.h.

Bool casa::refim::AWProjectFT::recordOnGrid ( const vi::VisBuffer2 vb,
Int  rownr 
) const [protected]

virtual void initPolInfo(const vi::VisBuffer2& vb); Is this record on Grid? check both ends.

This assumes that the ends bracket the middle

virtual void casa::refim::AWProjectFT::resampleDataToGrid ( Array< DComplex > &  griddedData,
VBStore vbs,
const vi::VisBuffer2 vb,
Bool &  dopsf 
) [protected, virtual]

Reimplemented in casa::refim::AWProjectWBFT.

virtual void casa::refim::AWProjectFT::resampleDataToGrid ( Array< Complex > &  griddedData,
VBStore vbs,
const vi::VisBuffer2 vb,
Bool &  dopsf 
) [protected, virtual]

Reimplemented in casa::refim::AWProjectWBFT.

virtual void casa::refim::AWProjectFT::resampleGridToData ( VBStore vbs,
Array< Complex > &  griddedData,
const vi::VisBuffer2 vb 
) [protected, virtual]
void casa::refim::AWProjectFT::reset ( void   )  [inline, virtual]

void reset() {vpSJ->reset();}

Reimplemented from casa::refim::FTMachine.

Definition at line 387 of file AWProjectFT.h.

References paChangeDetector, and casa::refim::ParAngleChangeDetector::reset().

virtual void casa::refim::AWProjectFT::setConjBeams ( Bool  useit = True  )  [inline, virtual]

Definition at line 202 of file AWProjectFT.h.

References conjBeams_p.

virtual void casa::refim::AWProjectFT::setDOPBCorrection ( Bool  doit = True  )  [inline, virtual]

Definition at line 200 of file AWProjectFT.h.

References doPBCorrection.

void casa::refim::AWProjectFT::setEPJones ( SolvableVisJones ep_j  )  [inline]

void setEPJones(EPJones* ep_j) {epJ = ep_j;}

Definition at line 198 of file AWProjectFT.h.

References epJ_p.

virtual void casa::refim::AWProjectFT::setMiscInfo ( const Int  qualifier  )  [inline, virtual]

set the order of the Taylor term for MFS this is to tell A-Projection to qualify the accumulated avgPB for each Taylor term in the CFCache.

Implements casa::refim::FTMachine.

Definition at line 408 of file AWProjectFT.h.

References sensitivityPatternQualifier_p, sensitivityPatternQualifierStr_p, and casacore::toString().

void casa::refim::AWProjectFT::setObservatoryLocation ( const MPosition &  mLocation  )  [inline]

Initialize transform to Visibility plane using the image as a template.

The image is loaded and Fourier transformed.

Reimplemented in casa::refim::AWProjectWBFT.

Definition at line 209 of file AWProjectFT.h.

References casa::refim::FTMachine::mLocation_p.

void casa::refim::AWProjectFT::setPAIncrement ( const Quantity &  computePAIncr,
const Quantity &  rotateOTFPAIncr 
)
virtual void casa::refim::AWProjectFT::setupVBStore ( VBStore vbs,
const vi::VisBuffer2 vb,
const Matrix< Float > &  imagingweight,
const Cube< Complex > &  visData,
const Matrix< Double > &  uvw,
const Cube< Int > &  flagCube,
const Vector< Double > &  dphase,
const Bool &  doPSF,
const Vector< Int > &  gridShape 
) [protected, virtual]
Bool casa::refim::AWProjectFT::toRecord ( RecordInterface &  outRec,
Bool  withImage = False 
)

Save and restore the AWProjectFT to and from a record.

virtual Bool casa::refim::AWProjectFT::verifyAvgPB ( ImageInterface< Float > &  pb,
ImageInterface< Complex > &  sky 
) [inline, virtual]

Definition at line 396 of file AWProjectFT.h.

References verifyShapes().

virtual Bool casa::refim::AWProjectFT::verifyAvgPB ( ImageInterface< Float > &  pb,
ImageInterface< Float > &  sky 
) [inline, virtual]

Definition at line 393 of file AWProjectFT.h.

References verifyShapes().

virtual Bool casa::refim::AWProjectFT::verifyShapes ( IPosition  shape0,
IPosition  shape1 
) [virtual]

Reimplemented in casa::refim::AWProjectWBFT.

Referenced by verifyAvgPB().


Member Data Documentation

CountedPtr<Lattice<Complex> > casa::refim::AWProjectFT::arrayLattice [protected]

Array lattice.

Definition at line 458 of file AWProjectFT.h.

CountedPtr<ImageInterface<Float> > casa::refim::AWProjectFT::avgPB_p [protected]

The average PB for sky image normalization.

Definition at line 493 of file AWProjectFT.h.

Referenced by getSensitivityImage().

CountedPtr<ImageInterface<Complex> > casa::refim::AWProjectFT::avgPBSq_p [protected]

Definition at line 494 of file AWProjectFT.h.

Sizes.

Definition at line 448 of file AWProjectFT.h.

IPosition casa::refim::AWProjectFT::centerLoc [protected]

Useful IPositions.

Definition at line 467 of file AWProjectFT.h.

Definition at line 416 of file AWProjectFT.h.

Vector<Int> casa::refim::AWProjectFT::CFMap_p [protected]

Definition at line 551 of file AWProjectFT.h.

Definition at line 517 of file AWProjectFT.h.

Definition at line 511 of file AWProjectFT.h.

Definition at line 507 of file AWProjectFT.h.

Referenced by getConjBeams(), and setConjBeams().

Vector<Int> casa::refim::AWProjectFT::ConjCFMap_p [protected]

CountedPtr<CFStore2> cfs2_p, cfwts2_p;.

Definition at line 551 of file AWProjectFT.h.

CountedPtr<ConvolutionFunction> telescopeConvFunc_p; CFStore cfs_p, cfwts_p; Array<Complex> convFunc_p, convWeights_p;.

Vector to hold the support size info. for the convolution functions pointed to by the elements of convFunctions_p. The co-ordinates of this array are (W-term, Poln, PA).

Definition at line 488 of file AWProjectFT.h.

Definition at line 517 of file AWProjectFT.h.

Definition at line 513 of file AWProjectFT.h.

Definition at line 507 of file AWProjectFT.h.

Referenced by getDOPBCorrection(), and setDOPBCorrection().

Definition at line 506 of file AWProjectFT.h.

Percentage of the peak of the PB after which the image is set to zero.

Definition at line 504 of file AWProjectFT.h.

Referenced by setEPJones().

ConvolveGridder<Double, Complex>* casa::refim::AWProjectFT::gridder [protected]

Gridder.

Definition at line 452 of file AWProjectFT.h.

LatticeCache<Complex>* casa::refim::AWProjectFT::imageCache [protected]

Image cache.

Definition at line 445 of file AWProjectFT.h.

Definition at line 517 of file AWProjectFT.h.

Is this tiled?

Definition at line 455 of file AWProjectFT.h.

Array<Float> casa::refim::AWProjectFT::l_offsets [protected]

Definition at line 514 of file AWProjectFT.h.

Definition at line 488 of file AWProjectFT.h.

Definition at line 518 of file AWProjectFT.h.

CountedPtr<Lattice<Complex> > casa::refim::AWProjectFT::lattice [protected]

Lattice.

For non-tiled gridding, this will point to arrayLattice, whereas for tiled gridding, this points to the image

Definition at line 462 of file AWProjectFT.h.

Array<Float> casa::refim::AWProjectFT::m_offsets [protected]

Definition at line 514 of file AWProjectFT.h.

Definition at line 507 of file AWProjectFT.h.

Definition at line 464 of file AWProjectFT.h.

No.

of vis. polarization planes used in making the user defined Stokes images

Definition at line 499 of file AWProjectFT.h.

Definition at line 556 of file AWProjectFT.h.

Definition at line 506 of file AWProjectFT.h.

Definition at line 443 of file AWProjectFT.h.

IPosition casa::refim::AWProjectFT::offsetLoc [protected]

Definition at line 467 of file AWProjectFT.h.

CountedPtr<CFCache> cfCache_p;.

Definition at line 510 of file AWProjectFT.h.

Referenced by reset().

Padding in FFT.

Definition at line 441 of file AWProjectFT.h.

Vector<Float> casa::refim::AWProjectFT::paList [protected]

Definition at line 515 of file AWProjectFT.h.

Definition at line 520 of file AWProjectFT.h.

Definition at line 519 of file AWProjectFT.h.

Vector<Float> casa::refim::AWProjectFT::pbPeaks [protected]

Definition at line 515 of file AWProjectFT.h.

MDirection::Convert* casa::refim::AWProjectFT::pointingToImage [protected]

// Image Scaling and offset Vector<Double> uvScale, uvOffset;

DirectionCoordinate directionCoord;

Definition at line 474 of file AWProjectFT.h.

Definition at line 513 of file AWProjectFT.h.

Definition at line 549 of file AWProjectFT.h.

Definition at line 511 of file AWProjectFT.h.

Definition at line 554 of file AWProjectFT.h.

Definition at line 513 of file AWProjectFT.h.

Definition at line 547 of file AWProjectFT.h.

Referenced by setMiscInfo().

Definition at line 548 of file AWProjectFT.h.

Referenced by setMiscInfo().

Double casa::refim::AWProjectFT::sigma [protected]

Definition at line 505 of file AWProjectFT.h.

Definition at line 449 of file AWProjectFT.h.

Definition at line 553 of file AWProjectFT.h.

Grid/degrid zero spacing points?

Definition at line 477 of file AWProjectFT.h.

Definition at line 418 of file AWProjectFT.h.

Image Scaling and offset.

Definition at line 418 of file AWProjectFT.h.

AWVisResampler visResampler_p;.

Definition at line 546 of file AWProjectFT.h.

Definition at line 488 of file AWProjectFT.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1