#include <AWProjectFT.h>
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. | |
AWProjectFT & | operator= (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 VisBuffer &vb) |
Vectorized version of initializeToVis. | |
virtual void | initializeToVis (ImageInterface< Complex > &image, const VisBuffer &vb) |
Initialize transform to Visibility plane. | |
virtual void | initializeToVis (ImageInterface< Complex > &image, const VisBuffer &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 VisBuffer &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 (VisBuffer &vb, Type whichVBColumn) |
void | initVisBuffer (VisBuffer &vb, Type whichVBColumn, Int row) |
void | get (VisBuffer &vb, Int row=-1) |
Get actual coherence from grid by degridding. | |
void | get (VisBuffer &vb, Cube< Complex > °rid, 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 (VisBuffer &vb, Cube< Float > &pointingOffsets, Int row=-1, Type whichVBColumn=FTMachine::MODEL, Int Conj=0) |
void | get (VisBuffer &vb, VisBuffer &gradAzVB, VisBuffer &gradElVB, Cube< Float > &pointingOffsets, Int row=-1, Type whichVBColumn=FTMachine::MODEL, Type whichGradVBColumn=FTMachine::MODEL, Int Conj=0, Int doGrad=1) |
void | nget (VisBuffer &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 (VisBuffer &vb, Cube< Complex > °rid, 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 VisBuffer &, TempImage< Complex > &, Vector< Double > &, int, UVWMachine *, Bool) |
Put coherence to grid by gridding. | |
void | put (const VisBuffer &vb, Int row=-1, Bool dopsf=False, FTMachine::Type type=FTMachine::OBSERVED) |
Put coherence to grid. | |
virtual void | makeImage (FTMachine::Type, ROVisibilityIterator &, ImageInterface< Complex > &, Matrix< Float > &) |
Make the entire image using a ROVisIter. | |
void | makeImage (FTMachine::Type type, VisSet &vs, ImageInterface< Complex > &image, Matrix< Float > &weight) |
Make the entire image. | |
virtual ImageInterface< Complex > & | getImage (Matrix< Float > &, Bool normalize=True) |
Get the final image: do the Fourier transform and grid-correct, then optionally normalize by the summed weights. | |
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 VisBuffer &, 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 VisBuffer &, Cube< Float > &, Array< Float > &, Array< Float > &, Bool Evaluate=True) |
virtual Double | getVBPA (const VisBuffer &vb) |
MDirection::Convert | makeCoordinateMachine (const VisBuffer &, 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 VisBuffer &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 VisBuffer &vb, const Vector< Int > cfPolMap, Vector< Int > &conjPolMap) |
void | makeCFPolMap (const VisBuffer &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 (VisBuffer &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 ATerm * | createTelescopeATerm (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) |
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 VisBuffer &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 VisBuffer &vb, Int rownr) const |
virtual void initPolInfo(const VisBuffer& 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 VisBuffer &vb, Bool &dopsf) |
virtual void | resampleDataToGrid (Array< DComplex > &griddedData, VBStore &vbs, const VisBuffer &vb, Bool &dopsf) |
virtual void | resampleGridToData (VBStore &vbs, Array< Complex > &griddedData, const VisBuffer &vb) |
virtual void | makeThGridCoords (VBStore &vbs, const Vector< Int > &gridShape) |
virtual void | setupVBStore (VBStore &vbs, const VisBuffer &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< SolvableVisJones > | epJ_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 |
Definition at line 147 of file AWProjectFT.h.
casa::AWProjectFT::AWProjectFT | ( | ) |
casa::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::AWProjectFT::AWProjectFT | ( | const RecordInterface & | stateRec | ) |
Construct from a Record containing the AWProjectFT state.
casa::AWProjectFT::AWProjectFT | ( | const AWProjectFT & | other | ) |
Copy constructor.
casa::AWProjectFT::~AWProjectFT | ( | ) |
virtual void casa::AWProjectFT::ComputeResiduals | ( | VisBuffer & | vb, | |
Bool | useCorrected | |||
) | [virtual] |
Make the VB and VBStore interefaces for the interim re-factoring work.
Finally removed the VB interface.
Implements casa::FTMachine.
static ATerm* casa::AWProjectFT::createTelescopeATerm | ( | const String & | telescopeName, | |
const Bool & | isATermOn | |||
) | [static] |
virtual void casa::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::FTMachine.
Reimplemented in casa::AWProjectWBFT.
virtual void casa::AWProjectFT::finalizeToVis | ( | ) | [virtual] |
Finalize transform to Visibility plane: flushes the image cache and shows statistics if it is being used.
Implements casa::FTMachine.
void casa::AWProjectFT::findConvFunction | ( | const ImageInterface< Complex > & | image, | |
const VisBuffer & | 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::FTMachine.
virtual Int casa::AWProjectFT::findPointingOffsets | ( | const VisBuffer & | , | |
Cube< Float > & | , | |||
Array< Float > & | , | |||
Array< Float > & | , | |||
Bool | Evaluate = True | |||
) | [virtual] |
virtual Int casa::AWProjectFT::findPointingOffsets | ( | const VisBuffer & | , | |
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::AWProjectWBFT.
Bool casa::AWProjectFT::fromRecord | ( | const RecordInterface & | inRec | ) |
void casa::AWProjectFT::get | ( | VisBuffer & | 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::AWProjectFT::get | ( | VisBuffer & | vb, | |
VisBuffer & | gradAzVB, | |||
VisBuffer & | gradElVB, | |||
Cube< Float > & | pointingOffsets, | |||
Int | row = -1 , |
|||
Type | whichVBColumn = FTMachine::MODEL , |
|||
Type | whichGradVBColumn = FTMachine::MODEL , |
|||
Int | Conj = 0 , |
|||
Int | doGrad = 1 | |||
) |
void casa::AWProjectFT::get | ( | VisBuffer & | vb, | |
Cube< Float > & | pointingOffsets, | |||
Int | row = -1 , |
|||
Type | whichVBColumn = FTMachine::MODEL , |
|||
Int | Conj = 0 | |||
) | [inline] |
Definition at line 250 of file AWProjectFT.h.
void casa::AWProjectFT::get | ( | VisBuffer & | 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::AWProjectFT::get | ( | VisBuffer & | vb, | |
Int | row = -1 | |||
) | [virtual] |
Get actual coherence from grid by degridding.
Implements casa::FTMachine.
virtual Bool casa::AWProjectFT::getConjBeams | ( | ) | [inline, virtual] |
Definition at line 195 of file AWProjectFT.h.
References conjBeams_p.
Array<Complex>* casa::AWProjectFT::getDataPointer | ( | const IPosition & | , | |
Bool | ||||
) | [protected] |
Get the appropriate data pointer.
virtual Bool casa::AWProjectFT::getDOPBCorrection | ( | ) | [inline, virtual] |
Definition at line 193 of file AWProjectFT.h.
References doPBCorrection.
virtual ImageInterface<Complex>& casa::AWProjectFT::getImage | ( | Matrix< Float > & | , | |
Bool | normalize = True | |||
) | [virtual] |
Get the final image: do the Fourier transform and grid-correct, then optionally normalize by the summed weights.
Implements casa::FTMachine.
Reimplemented in casa::AWProjectWBFT, and casa::MultiTermAWProjectWBFT.
virtual Float casa::AWProjectFT::getPBLimit | ( | ) | [inline, virtual] |
Reimplemented from casa::FTMachine.
Definition at line 197 of file AWProjectFT.h.
References casa::FTMachine::pbLimit_p.
Vector<Int>& casa::AWProjectFT::getPolMap | ( | ) | [inline] |
Definition at line 380 of file AWProjectFT.h.
References casa::FTMachine::polMap.
virtual ImageInterface<Float>& casa::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 368 of file AWProjectFT.h.
References avgPB_p.
virtual Matrix<Double>& casa::AWProjectFT::getSumOfCFWeights | ( | ) | [inline, virtual] |
Definition at line 370 of file AWProjectFT.h.
References casa::FTMachine::sumCFWeight.
virtual Matrix<Double>& casa::AWProjectFT::getSumOfWeights | ( | ) | [inline, virtual] |
Definition at line 369 of file AWProjectFT.h.
References casa::FTMachine::sumWeight.
virtual Double casa::AWProjectFT::getVBPA | ( | const VisBuffer & | vb | ) | [inline, virtual] |
if (!rotateApertureOTP_p) return currentCFPA; else return getPA(vb);
Definition at line 320 of file AWProjectFT.h.
References casa::getPA().
void casa::AWProjectFT::getWeightImage | ( | ImageInterface< Float > & | , | |
Matrix< Float > & | ||||
) | [virtual] |
Get the final weights image.
Implements casa::FTMachine.
void casa::AWProjectFT::init | ( | ) | [protected] |
virtual void casa::AWProjectFT::initializeToSky | ( | ImageInterface< Complex > & | image, | |
Matrix< Float > & | weight, | |||
const VisBuffer & | vb | |||
) | [virtual] |
Initialize transform to Sky plane: initializes the image.
Implements casa::FTMachine.
Reimplemented in casa::AWProjectWBFT.
virtual void casa::AWProjectFT::initializeToVis | ( | ImageInterface< Complex > & | image, | |
const VisBuffer & | 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::AWProjectFT::initializeToVis | ( | ImageInterface< Complex > & | image, | |
const VisBuffer & | vb | |||
) | [virtual] |
Initialize transform to Visibility plane.
Implements casa::FTMachine.
virtual void casa::AWProjectFT::initializeToVis | ( | Block< CountedPtr< ImageInterface< Complex > > > & | compImageVec, | |
PtrBlock< SubImage< Float > * > & | modelImageVec, | |||
PtrBlock< SubImage< Float > * > & | weightImageVec, | |||
PtrBlock< SubImage< Float > * > & | fluxScaleVec, | |||
Block< Matrix< Float > > & | weightsVec, | |||
const VisBuffer & | 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.
Reimplemented from casa::FTMachine.
Bool casa::AWProjectFT::isFourier | ( | ) | [inline, virtual] |
Can this FTMachine be represented by Fourier convolutions?
Reimplemented from casa::FTMachine.
Definition at line 310 of file AWProjectFT.h.
References casacore::True.
static CountedPtr<ConvolutionFunction> casa::AWProjectFT::makeCFObject | ( | const String & | telescopeName, | |
const Bool | aTermOn, | |||
const Bool | psTermOn, | |||
const Bool | wTermOn, | |||
const Bool | mTermOn, | |||
const Bool | wBAWP | |||
) | [static] |
void casa::AWProjectFT::makeCFPolMap | ( | const VisBuffer & | vb, | |
const Vector< Int > & | cfstokes, | |||
Vector< Int > & | polM | |||
) |
Vector<Int> makeConjPolMap(const VisBuffer& vb);.
void casa::AWProjectFT::makeConjPolMap | ( | const VisBuffer & | vb, | |
const Vector< Int > | cfPolMap, | |||
Vector< Int > & | conjPolMap | |||
) |
MDirection::Convert casa::AWProjectFT::makeCoordinateMachine | ( | const VisBuffer & | , | |
const MDirection::Types & | , | |||
const MDirection::Types & | , | |||
MEpoch & | last | |||
) |
void casa::AWProjectFT::makeImage | ( | FTMachine::Type | type, | |
VisSet & | vs, | |||
ImageInterface< Complex > & | image, | |||
Matrix< Float > & | weight | |||
) | [virtual] |
Make the entire image.
Reimplemented from casa::FTMachine.
virtual void casa::AWProjectFT::makeImage | ( | FTMachine::Type | , | |
ROVisibilityIterator & | , | |||
ImageInterface< Complex > & | , | |||
Matrix< Float > & | ||||
) | [inline, virtual] |
Make the entire image using a ROVisIter.
Reimplemented from casa::FTMachine.
Definition at line 287 of file AWProjectFT.h.
virtual void casa::AWProjectFT::makeSensitivityImage | ( | const VisBuffer & | vb, | |
const ImageInterface< Complex > & | imageTemplate, | |||
ImageInterface< Float > & | sensitivityImage | |||
) | [virtual] |
Reimplemented in casa::AWProjectWBFT.
virtual void casa::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::AWProjectWBFT, and casa::MultiTermAWProjectWBFT.
Definition at line 339 of file AWProjectFT.h.
virtual void casa::AWProjectFT::makeThGridCoords | ( | VBStore & | vbs, | |
const Vector< Int > & | gridShape | |||
) | [protected, virtual] |
void casa::AWProjectFT::makeWBCFWt | ( | CFStore2 & | cfs, | |
const Double | imRefFreq | |||
) |
virtual String casa::AWProjectFT::name | ( | ) | const [inline, virtual] |
Return the name of the machine.
Implements casa::FTMachine.
Reimplemented in casa::AWProjectWBFT, casa::AWProjectWBFTNew, and casa::MultiTermAWProjectWBFT.
Definition at line 381 of file AWProjectFT.h.
void casa::AWProjectFT::nget | ( | VisBuffer & | vb, | |
Array< Float > & | l_off, | |||
Array< Float > & | m_off, | |||
Cube< Complex > & | Mout, | |||
Cube< Complex > & | dMout1, | |||
Cube< Complex > & | dMout2, | |||
Int | Conj = 0 , |
|||
Int | doGrad = 1 | |||
) |
l_off | These offsets should be appropriate for the VB |
Int casa::AWProjectFT::nint | ( | Double | val | ) | [inline, protected] |
Definition at line 410 of file AWProjectFT.h.
References casacore::floor().
virtual void casa::AWProjectFT::normalizeAvgPB | ( | ImageInterface< Complex > & | inImage, | |
ImageInterface< Float > & | outImage | |||
) | [protected, virtual] |
Reimplemented in casa::AWProjectWBFT, and casa::MultiTermAWProjectWBFT.
virtual void casa::AWProjectFT::normalizeAvgPB | ( | ) | [protected, virtual] |
----------------------------------------------------------------------
Reimplemented in casa::AWProjectWBFT.
void casa::AWProjectFT::ok | ( | ) | [protected, virtual] |
Reimplemented from casa::FTMachine.
AWProjectFT& casa::AWProjectFT::operator= | ( | const AWProjectFT & | other | ) |
Assignment operator.
Reimplemented from casa::FTMachine.
Reimplemented in casa::AWProjectWBFT, and casa::MultiTermAWProjectWBFT.
virtual Complex casa::AWProjectFT::pbFunc | ( | const Complex & | a, | |
const Float & | limit | |||
) | [inline, virtual] |
{if (abs(a) >= limit) return (a);else return 1.0;};
Definition at line 394 of file AWProjectFT.h.
References casacore::abs().
virtual Float casa::AWProjectFT::pbFunc | ( | const Float & | a, | |
const Float & | limit | |||
) | [inline, virtual] |
Reimplemented in casa::AWProjectWBFT.
Definition at line 390 of file AWProjectFT.h.
References casacore::abs(), and casacore::sqrt().
void casa::AWProjectFT::put | ( | const VisBuffer & | vb, | |
Int | row = -1 , |
|||
Bool | dopsf = False , |
|||
FTMachine::Type | type = FTMachine::OBSERVED | |||
) | [virtual] |
Put coherence to grid.
Implements casa::FTMachine.
void casa::AWProjectFT::put | ( | const VisBuffer & | , | |
TempImage< Complex > & | , | |||
Vector< Double > & | , | |||
int | , | |||
UVWMachine * | , | |||
Bool | ||||
) | [inline] |
Put coherence to grid by gridding.
throw(AipsError("AWProjectFT::put is not implemented"));
Definition at line 277 of file AWProjectFT.h.
Bool casa::AWProjectFT::recordOnGrid | ( | const VisBuffer & | vb, | |
Int | rownr | |||
) | const [protected] |
virtual void initPolInfo(const VisBuffer& vb); Is this record on Grid? check both ends.
This assumes that the ends bracket the middle
virtual void casa::AWProjectFT::resampleDataToGrid | ( | Array< DComplex > & | griddedData, | |
VBStore & | vbs, | |||
const VisBuffer & | vb, | |||
Bool & | dopsf | |||
) | [protected, virtual] |
Reimplemented in casa::AWProjectWBFT.
virtual void casa::AWProjectFT::resampleDataToGrid | ( | Array< Complex > & | griddedData, | |
VBStore & | vbs, | |||
const VisBuffer & | vb, | |||
Bool & | dopsf | |||
) | [protected, virtual] |
Reimplemented in casa::AWProjectWBFT.
virtual void casa::AWProjectFT::resampleGridToData | ( | VBStore & | vbs, | |
Array< Complex > & | griddedData, | |||
const VisBuffer & | vb | |||
) | [protected, virtual] |
void casa::AWProjectFT::reset | ( | void | ) | [inline, virtual] |
Reimplemented from casa::FTMachine.
Definition at line 376 of file AWProjectFT.h.
References paChangeDetector, and casa::ParAngleChangeDetector::reset().
virtual void casa::AWProjectFT::setConjBeams | ( | Bool | useit = True |
) | [inline, virtual] |
Definition at line 194 of file AWProjectFT.h.
References conjBeams_p.
virtual void casa::AWProjectFT::setDOPBCorrection | ( | Bool | doit = True |
) | [inline, virtual] |
Definition at line 192 of file AWProjectFT.h.
References doPBCorrection.
void casa::AWProjectFT::setEPJones | ( | SolvableVisJones * | ep_j | ) | [inline] |
void setEPJones(EPJones* ep_j) {epJ = ep_j;}
Definition at line 190 of file AWProjectFT.h.
References epJ_p.
virtual void casa::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::FTMachine.
Definition at line 397 of file AWProjectFT.h.
References sensitivityPatternQualifier_p, sensitivityPatternQualifierStr_p, and casacore::toString().
void casa::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::AWProjectWBFT.
Definition at line 201 of file AWProjectFT.h.
References casa::FTMachine::mLocation_p.
void casa::AWProjectFT::setPAIncrement | ( | const Quantity & | computePAIncr, | |
const Quantity & | rotateOTFPAIncr | |||
) |
virtual void casa::AWProjectFT::setupVBStore | ( | VBStore & | vbs, | |
const VisBuffer & | 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::AWProjectFT::toRecord | ( | RecordInterface & | outRec, | |
Bool | withImage = False | |||
) |
Save and restore the AWProjectFT to and from a record.
virtual Bool casa::AWProjectFT::verifyAvgPB | ( | ImageInterface< Float > & | pb, | |
ImageInterface< Complex > & | sky | |||
) | [inline, virtual] |
Definition at line 385 of file AWProjectFT.h.
References verifyShapes().
virtual Bool casa::AWProjectFT::verifyAvgPB | ( | ImageInterface< Float > & | pb, | |
ImageInterface< Float > & | sky | |||
) | [inline, virtual] |
Definition at line 382 of file AWProjectFT.h.
References verifyShapes().
virtual Bool casa::AWProjectFT::verifyShapes | ( | IPosition | shape0, | |
IPosition | shape1 | |||
) | [virtual] |
Reimplemented in casa::AWProjectWBFT.
Referenced by verifyAvgPB().
CountedPtr<Lattice<Complex> > casa::AWProjectFT::arrayLattice [protected] |
Array lattice.
Definition at line 447 of file AWProjectFT.h.
CountedPtr<ImageInterface<Float> > casa::AWProjectFT::avgPB_p [protected] |
The average PB for sky image normalization.
Definition at line 482 of file AWProjectFT.h.
Referenced by getSensitivityImage().
CountedPtr<ImageInterface<Complex> > casa::AWProjectFT::avgPBSq_p [protected] |
Definition at line 483 of file AWProjectFT.h.
Long casa::AWProjectFT::cachesize [protected] |
Sizes.
Definition at line 437 of file AWProjectFT.h.
IPosition casa::AWProjectFT::centerLoc [protected] |
Useful IPositions.
Definition at line 456 of file AWProjectFT.h.
Definition at line 405 of file AWProjectFT.h.
Vector<Int> casa::AWProjectFT::CFMap_p [protected] |
Definition at line 540 of file AWProjectFT.h.
Double casa::AWProjectFT::cfRefFreq_p [protected] |
Definition at line 506 of file AWProjectFT.h.
Double casa::AWProjectFT::computePAIncr_p [protected] |
Definition at line 500 of file AWProjectFT.h.
Bool casa::AWProjectFT::conjBeams_p [protected] |
Definition at line 496 of file AWProjectFT.h.
Referenced by getConjBeams(), and setConjBeams().
Vector<Int> casa::AWProjectFT::ConjCFMap_p [protected] |
CountedPtr<CFStore2> cfs2_p, cfwts2_p;.
Definition at line 540 of file AWProjectFT.h.
Int casa::AWProjectFT::convSampling [protected] |
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 477 of file AWProjectFT.h.
Double casa::AWProjectFT::currentCFPA [protected] |
Definition at line 506 of file AWProjectFT.h.
Unit casa::AWProjectFT::Day [protected] |
Definition at line 502 of file AWProjectFT.h.
Bool casa::AWProjectFT::doPBCorrection [protected] |
Definition at line 496 of file AWProjectFT.h.
Referenced by getDOPBCorrection(), and setDOPBCorrection().
Int casa::AWProjectFT::doPointing [protected] |
Definition at line 495 of file AWProjectFT.h.
CountedPtr<SolvableVisJones> casa::AWProjectFT::epJ_p [protected] |
Percentage of the peak of the PB after which the image is set to zero.
Definition at line 493 of file AWProjectFT.h.
Referenced by setEPJones().
ConvolveGridder<Double, Complex>* casa::AWProjectFT::gridder [protected] |
Gridder.
Definition at line 441 of file AWProjectFT.h.
LatticeCache<Complex>* casa::AWProjectFT::imageCache [protected] |
Image cache.
Definition at line 434 of file AWProjectFT.h.
Double casa::AWProjectFT::imRefFreq_p [protected] |
Definition at line 506 of file AWProjectFT.h.
Bool casa::AWProjectFT::isTiled [protected] |
Is this tiled?
Definition at line 444 of file AWProjectFT.h.
Array<Float> casa::AWProjectFT::l_offsets [protected] |
Definition at line 503 of file AWProjectFT.h.
Int casa::AWProjectFT::lastIndex_p [protected] |
Definition at line 477 of file AWProjectFT.h.
Float casa::AWProjectFT::lastPAUsedForWtImg [protected] |
Definition at line 507 of file AWProjectFT.h.
CountedPtr<Lattice<Complex> > casa::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 451 of file AWProjectFT.h.
Array<Float> casa::AWProjectFT::m_offsets [protected] |
Definition at line 503 of file AWProjectFT.h.
Bool casa::AWProjectFT::makingPSF [protected] |
Definition at line 496 of file AWProjectFT.h.
Float casa::AWProjectFT::maxAbsData [protected] |
Definition at line 453 of file AWProjectFT.h.
Int casa::AWProjectFT::maxConvSupport [protected] |
No.
of vis. polarization planes used in making the user defined Stokes images
Definition at line 488 of file AWProjectFT.h.
Definition at line 545 of file AWProjectFT.h.
Int casa::AWProjectFT::Nant_p [protected] |
Definition at line 495 of file AWProjectFT.h.
Int casa::AWProjectFT::nWPlanes_p [protected] |
Definition at line 432 of file AWProjectFT.h.
IPosition casa::AWProjectFT::offsetLoc [protected] |
Definition at line 456 of file AWProjectFT.h.
CountedPtr<CFCache> cfCache_p;.
Definition at line 499 of file AWProjectFT.h.
Referenced by reset().
Float casa::AWProjectFT::padding_p [protected] |
Padding in FFT.
Definition at line 430 of file AWProjectFT.h.
Vector<Float> casa::AWProjectFT::paList [protected] |
Definition at line 504 of file AWProjectFT.h.
Vector<Bool> casa::AWProjectFT::paNdxProcessed_p [protected] |
Definition at line 509 of file AWProjectFT.h.
Bool casa::AWProjectFT::pbNormalized_p [protected] |
Definition at line 508 of file AWProjectFT.h.
Vector<Float> casa::AWProjectFT::pbPeaks [protected] |
Definition at line 504 of file AWProjectFT.h.
MDirection::Convert* casa::AWProjectFT::pointingToImage [protected] |
// Image Scaling and offset Vector<Double> uvScale, uvOffset;
DirectionCoordinate directionCoord;
Definition at line 463 of file AWProjectFT.h.
Unit casa::AWProjectFT::Radian [protected] |
Definition at line 502 of file AWProjectFT.h.
CFStore casa::AWProjectFT::rotatedConvFunc_p [protected] |
Definition at line 538 of file AWProjectFT.h.
Double casa::AWProjectFT::rotateOTFPAIncr_p [protected] |
Definition at line 500 of file AWProjectFT.h.
Double casa::AWProjectFT::runTime1_p [protected] |
Definition at line 543 of file AWProjectFT.h.
Unit casa::AWProjectFT::Second [protected] |
Definition at line 502 of file AWProjectFT.h.
Int casa::AWProjectFT::sensitivityPatternQualifier_p [protected] |
Definition at line 536 of file AWProjectFT.h.
Referenced by setMiscInfo().
String casa::AWProjectFT::sensitivityPatternQualifierStr_p [protected] |
Definition at line 537 of file AWProjectFT.h.
Referenced by setMiscInfo().
Double casa::AWProjectFT::sigma [protected] |
Definition at line 494 of file AWProjectFT.h.
Int casa::AWProjectFT::tilesize [protected] |
Definition at line 438 of file AWProjectFT.h.
Timer casa::AWProjectFT::timer_p [protected] |
Definition at line 542 of file AWProjectFT.h.
Bool casa::AWProjectFT::usezero_p [protected] |
Grid/degrid zero spacing points?
Definition at line 466 of file AWProjectFT.h.
Vector<Double> casa::AWProjectFT::uvOffset |
Definition at line 407 of file AWProjectFT.h.
Vector<Double> casa::AWProjectFT::uvScale |
Image Scaling and offset.
Definition at line 407 of file AWProjectFT.h.
CountedPtr<VisibilityResamplerBase> casa::AWProjectFT::visResampler_p [protected] |
AWVisResampler visResampler_p;.
Definition at line 535 of file AWProjectFT.h.
Int casa::AWProjectFT::wConvSize [protected] |
Definition at line 477 of file AWProjectFT.h.