casa
$Rev:20696$
|
#include <nPBWProjectFT.h>
Public Member Functions | |
nPBWProjectFT (Int nFacets, Long cachesize, String &cfCacheDirName, Bool applyPointingOffset=True, Bool doPBCorr=True, Int tilesize=16, Float paSteps=5.0, Float pbLimit=5e-2, Bool usezero=False) | |
Constructor: cachesize is the size of the cache in words (e.g. | |
nPBWProjectFT (const RecordInterface &stateRec) | |
Construct from a Record containing the nPBWProjectFT state. | |
nPBWProjectFT (const nPBWProjectFT &other) | |
Copy constructor. | |
nPBWProjectFT & | operator= (const nPBWProjectFT &other) |
Assignment operator. | |
~nPBWProjectFT () | |
void | setEPJones (SolvableVisJones *ep_j) |
void setEPJones(EPJones* ep_j) {epJ = ep_j;} | |
void | setDOPBCorrection (Bool doit=True) |
virtual void | initializeToVis (ImageInterface< Complex > &image, const VisBuffer &vb) |
Initialize transform to Visibility plane using the image as a template. | |
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. | |
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. | |
virtual void | normalizeImage (Lattice< Complex > &, const Matrix< Double > &, Lattice< Float > &, Bool) |
void | getWeightImage (ImageInterface< Float > &, Matrix< Float > &) |
Get the final weights image. | |
Bool | toRecord (String &error, RecordInterface &outRec, Bool withImage=False) |
Save and restore the nPBWProjectFT to and from a record. | |
Bool | fromRecord (String &error, const RecordInterface &inRec) |
Bool | isFourier () |
Can this FTMachine be represented by Fourier convolutions? | |
Bool | changed (const VisBuffer &) |
Bool changed(const VisBuffer& vb) {return vpSJ->changed(vb,1);};. | |
virtual Int | findPointingOffsets (const VisBuffer &, Array< Float > &, Array< Float > &, Bool Evaluate=True) |
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 > &wtImage, ImageInterface< Float > &sensitivityImage, const Matrix< Float > &sumWt=Matrix< Float >(), const Bool &doFFTNorm=True) |
Make a sensitivity image (sensitivityImage), given the gridded weights (wtImage). | |
virtual Bool | makeAveragePB0 (const VisBuffer &vb, const ImageInterface< Complex > &image, Int &polInUse, TempImage< Float > &avgPB) |
void | makeConjPolMap (const VisBuffer &vb, const Vector< Int > cfPolMap, Vector< Int > &conjPolMap) |
void | makeCFPolMap (const VisBuffer &vb, Vector< Int > &polM) |
Vector<Int> makeConjPolMap(const VisBuffer& vb);. | |
void | reset () |
void reset() {vpSJ->reset();} | |
void | setPAIncrement (const Quantity &paIncrement) |
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) |
Bool | findSupport (Array< Complex > &func, Float &threshold, Int &origin, Int &R) |
void | makeAntiAliasingOp (Vector< Complex > &val, const Int len) |
void | makeAntiAliasingCorrection (Vector< Complex > &correction, const Vector< Complex > &op, const Int nx) |
void | applyAntiAliasingOp (ImageInterface< Complex > &cf, Vector< IPosition > &offset, Int op=0, Bool Square=False) |
void | applyAntiAliasingOp (ImageInterface< Float > &cf, Vector< IPosition > &offset, Int op=0, Bool Square=False) |
void | correctAntiAliasing (Lattice< Complex > &cf) |
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 &, Bool) |
Make the VB and VBStore interefaces for the interim re-factoring work. | |
Protected Member Functions | |
Int | nint (Double val) |
Int | makePBPolnCoords (CoordinateSystem &coord, const VisBuffer &vb) |
Make the PB part of the convolution function. | |
Int | locateConvFunction (Int Nw, Int polInUse, const VisBuffer &vb, Float &pa) |
Locate convolution functions on the disk. | |
void | cacheConvFunction (Int which, Array< Complex > &cf, CoordinateSystem &coord) |
void | findConvFunction (const ImageInterface< Complex > &image, const VisBuffer &vb) |
Find the convolution function. | |
void | makeConvFunction (const ImageInterface< Complex > &image, const VisBuffer &vb, Float pa) |
Array< Complex > * | getDataPointer (const IPosition &, Bool) |
Get the appropriate data pointer. | |
void | ok () |
void | init () |
Int | getVisParams (const VisBuffer &vb) |
Int getVisParams();. | |
Bool | recordOnGrid (const VisBuffer &vb, Int rownr) const |
Is this record on Grid? check both ends. | |
Int | getIndex (const ROMSPointingColumns &mspc, const Double &time, const Double &interval) |
Bool | getXYPos (const VisBuffer &vb, Int row) |
virtual void | normalizeAvgPB () |
VLACalcIlluminationConvFunc vlaPB;. | |
virtual void | runFortranGet (Matrix< Double > &uvw, Vector< Double > &dphase, Cube< Complex > &visdata, IPosition &s, Int &Conj, Cube< Int > &flags, Vector< Int > &rowFlags, Int &rownr, Vector< Double > &actualOffset, Array< Complex > *dataPtr, Int &aNx, Int &aNy, Int &npol, Int &nchan, VisBuffer &vb, Int &Nant_p, Int &scanNo, Double &sigma, Array< Float > &raoffsets, Array< Float > &decoffsets, Double area, Int &doGrad, Int paIndex) |
virtual void | runFortranPut (Matrix< Double > &uvw, Vector< Double > &dphase, const Complex &visdata_p, IPosition &s, Int &Conj, Cube< Int > &flags, Vector< Int > &rowFlags, const Matrix< Float > &weight, Int &rownr, Vector< Double > &actualOffset, Array< Complex > &dataPtr, Int &aNx, Int &aNy, Int &npol, Int &nchan, const VisBuffer &vb, Int &Nant_p, Int &scanNo, Double &sigma, Array< Float > &raoffsets, Array< Float > &decoffsets, Matrix< Double > &sumWeight, Double &area, Int &doGrad, Int &doPSF, Int paIndex) |
void | runFortranGetGrad (Matrix< Double > &uvw, Vector< Double > &dphase, Cube< Complex > &visdata, IPosition &s, Cube< Complex > &gradVisAzData, Cube< Complex > &gradVisElData, Int &Conj, Cube< Int > &flags, Vector< Int > &rowFlags, Int &rownr, Vector< Double > &actualOffset, Array< Complex > *dataPtr, Int &aNx, Int &aNy, Int &npol, Int &nchan, VisBuffer &vb, Int &Nant_p, Int &scanNo, Double &sigma, Array< Float > &l_off, Array< Float > &m_off, Double area, Int &doGrad, Int paIndex) |
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 Lattice<Complex> * arrayLattice;. | |
CountedPtr< Lattice< Complex > > | lattice |
Lattice. | |
Float | maxAbsData |
IPosition | centerLoc |
Useful IPositions. | |
IPosition | offsetLoc |
Vector< Double > | uvScale |
Image Scaling and offset. | |
Vector< Double > | uvOffset |
Array< Complex > | griddedData |
Array for non-tiled gridding. | |
MSPointingColumns * | mspc |
Pointing columns. | |
MSAntennaColumns * | msac |
Antenna columns. | |
DirectionCoordinate | directionCoord |
MDirection::Convert * | pointingToImage |
Vector< Double > | xyPos |
MDirection | worldPosMeas |
Int | priorCacheSize |
Bool | usezero_p |
Grid/degrid zero spacing points? | |
Array< Complex > | convFunc |
Array< Complex > | convWeights |
CoordinateSystem | convFuncCS_p |
Int | convSize |
Int | convSampling |
Vector to hold the support size info. | |
Cube< Int > | convSupport |
Cube< Int > | convWtSupport |
PtrBlock< Array< Complex > * > | convFuncCache |
Holder for the pointers to the convolution functions. | |
PtrBlock< Array< Complex > * > | convWeightsCache |
Int | PAIndex |
Array<Complex>* convFunc_p;. | |
Bool | convFuncCacheReady |
If true, all convolution functions are in the cache. | |
Int | wConvSize |
Int | lastIndex_p |
TempImage< Float > | avgPB |
VPSkyJones *vpSJ;. | |
Int | polInUse |
No. | |
Int | bandID_p |
Int | maxConvSupport |
Float | pbLimit_p |
Percentage of the peak of the PB after which the image is set to zero. | |
SolvableVisJones * | epJ |
EPJones *epJ;. | |
Double | HPBW |
Double | Diameter_p |
Double | sigma |
Int | Nant_p |
Int | doPointing |
Bool | doPBCorrection |
Bool | makingPSF |
Unit | Second |
Unit | Radian |
Unit | Day |
Array< Float > | l_offsets |
Array< Float > | m_offsets |
Int | noOfPASteps |
Vector< Float > | pbPeaks |
Bool | pbNormalized |
Bool | resetPBs |
Bool | rotateAperture_p |
Vector< Float > | paList |
ConvFuncDiskCache | cfCache |
Double | currentCFPA |
ParAngleChangeDetector | paChangeDetector |
Vector< Int > | cfStokes |
Vector< Complex > | Area |
Double | cfRefFreq_p |
Bool | avgPBSaved |
Bool | avgPBReady |
Vector< Complex > | antiAliasingOp |
Vector< Complex > | antiAliasingCorrection |
Float | lastPAUsedForWtImg |
Definition at line 137 of file nPBWProjectFT.h.
casa::nPBWProjectFT::nPBWProjectFT | ( | Int | nFacets, |
Long | cachesize, | ||
String & | cfCacheDirName, | ||
Bool | applyPointingOffset = True , |
||
Bool | doPBCorr = True , |
||
Int | tilesize = 16 , |
||
Float | paSteps = 5.0 , |
||
Float | pbLimit = 5e-2 , |
||
Bool | usezero = False |
||
) |
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::nPBWProjectFT::nPBWProjectFT | ( | const RecordInterface & | stateRec | ) |
Construct from a Record containing the nPBWProjectFT state.
casa::nPBWProjectFT::nPBWProjectFT | ( | const nPBWProjectFT & | other | ) |
Copy constructor.
void casa::nPBWProjectFT::applyAntiAliasingOp | ( | ImageInterface< Complex > & | cf, |
Vector< IPosition > & | offset, | ||
Int | op = 0 , |
||
Bool | Square = False |
||
) |
void casa::nPBWProjectFT::applyAntiAliasingOp | ( | ImageInterface< Float > & | cf, |
Vector< IPosition > & | offset, | ||
Int | op = 0 , |
||
Bool | Square = False |
||
) |
void casa::nPBWProjectFT::cacheConvFunction | ( | Int | which, |
Array< Complex > & | cf, | ||
CoordinateSystem & | coord | ||
) | [protected] |
Bool casa::nPBWProjectFT::changed | ( | const VisBuffer & | ) | [inline, virtual] |
Bool changed(const VisBuffer& vb) {return vpSJ->changed(vb,1);};.
Reimplemented from casa::FTMachine.
Definition at line 272 of file nPBWProjectFT.h.
References casa::False.
virtual void casa::nPBWProjectFT::ComputeResiduals | ( | VisBuffer & | vb, |
Bool | useCorrected | ||
) | [inline, virtual] |
Make the VB and VBStore interefaces for the interim re-factoring work.
Finally removed the VB interface.
Implements casa::FTMachine.
Definition at line 353 of file nPBWProjectFT.h.
void casa::nPBWProjectFT::correctAntiAliasing | ( | Lattice< Complex > & | cf | ) |
virtual void casa::nPBWProjectFT::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::PBMosaicFT.
virtual void casa::nPBWProjectFT::finalizeToVis | ( | ) | [virtual] |
Finalize transform to Visibility plane: flushes the image cache and shows statistics if it is being used.
Implements casa::FTMachine.
void casa::nPBWProjectFT::findConvFunction | ( | const ImageInterface< Complex > & | image, |
const VisBuffer & | vb | ||
) | [protected, virtual] |
Find the convolution function.
Reimplemented from casa::FTMachine.
virtual Int casa::nPBWProjectFT::findPointingOffsets | ( | const VisBuffer & | , |
Array< Float > & | , | ||
Array< Float > & | , | ||
Bool | Evaluate = True |
||
) | [virtual] |
Reimplemented in casa::PBMosaicFT.
virtual Int casa::nPBWProjectFT::findPointingOffsets | ( | const VisBuffer & | , |
Cube< Float > & | , | ||
Array< Float > & | , | ||
Array< Float > & | , | ||
Bool | Evaluate = True |
||
) | [virtual] |
Bool casa::nPBWProjectFT::findSupport | ( | Array< Complex > & | func, |
Float & | threshold, | ||
Int & | origin, | ||
Int & | R | ||
) |
Bool casa::nPBWProjectFT::fromRecord | ( | String & | error, |
const RecordInterface & | inRec | ||
) | [virtual] |
Reimplemented from casa::FTMachine.
void casa::nPBWProjectFT::get | ( | VisBuffer & | vb, |
Int | row = -1 |
||
) | [virtual] |
Get actual coherence from grid by degridding.
Implements casa::FTMachine.
void casa::nPBWProjectFT::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::nPBWProjectFT::get | ( | VisBuffer & | vb, |
Cube< Float > & | pointingOffsets, | ||
Int | row = -1 , |
||
Type | whichVBColumn = FTMachine::MODEL , |
||
Int | Conj = 0 |
||
) | [inline] |
Definition at line 205 of file nPBWProjectFT.h.
void casa::nPBWProjectFT::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::nPBWProjectFT::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.
Array<Complex>* casa::nPBWProjectFT::getDataPointer | ( | const IPosition & | , |
Bool | |||
) | [protected] |
Get the appropriate data pointer.
virtual ImageInterface<Complex>& casa::nPBWProjectFT::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::PBMosaicFT.
Int casa::nPBWProjectFT::getIndex | ( | const ROMSPointingColumns & | mspc, |
const Double & | time, | ||
const Double & | interval | ||
) | [protected] |
Vector<Int>& casa::nPBWProjectFT::getPolMap | ( | ) | [inline] |
Definition at line 331 of file nPBWProjectFT.h.
References casa::FTMachine::polMap.
virtual Double casa::nPBWProjectFT::getVBPA | ( | const VisBuffer & | vb | ) | [inline, virtual] |
if (!rotateAperture_p) return currentCFPA; else return getPA(vb);
Definition at line 279 of file nPBWProjectFT.h.
References casa::getPA().
Int casa::nPBWProjectFT::getVisParams | ( | const VisBuffer & | vb | ) | [protected] |
Int getVisParams();.
void casa::nPBWProjectFT::getWeightImage | ( | ImageInterface< Float > & | , |
Matrix< Float > & | |||
) | [virtual] |
Get the final weights image.
Implements casa::FTMachine.
Bool casa::nPBWProjectFT::getXYPos | ( | const VisBuffer & | vb, |
Int | row | ||
) | [protected] |
void casa::nPBWProjectFT::init | ( | ) | [protected] |
virtual void casa::nPBWProjectFT::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::PBMosaicFT.
virtual void casa::nPBWProjectFT::initializeToVis | ( | ImageInterface< Complex > & | image, |
const VisBuffer & | vb | ||
) | [virtual] |
Initialize transform to Visibility plane using the image as a template.
The image is loaded and Fourier transformed.
Implements casa::FTMachine.
virtual void casa::nPBWProjectFT::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::nPBWProjectFT::initVisBuffer | ( | VisBuffer & | vb, |
Type | whichVBColumn | ||
) | [virtual] |
void casa::nPBWProjectFT::initVisBuffer | ( | VisBuffer & | vb, |
Type | whichVBColumn, | ||
Int | row | ||
) |
Bool casa::nPBWProjectFT::isFourier | ( | ) | [inline, virtual] |
Can this FTMachine be represented by Fourier convolutions?
Reimplemented from casa::FTMachine.
Definition at line 269 of file nPBWProjectFT.h.
References casa::True.
Int casa::nPBWProjectFT::locateConvFunction | ( | Int | Nw, |
Int | polInUse, | ||
const VisBuffer & | vb, | ||
Float & | pa | ||
) | [protected] |
Locate convolution functions on the disk.
void casa::nPBWProjectFT::makeAntiAliasingCorrection | ( | Vector< Complex > & | correction, |
const Vector< Complex > & | op, | ||
const Int | nx | ||
) |
void casa::nPBWProjectFT::makeAntiAliasingOp | ( | Vector< Complex > & | val, |
const Int | len | ||
) |
virtual Bool casa::nPBWProjectFT::makeAveragePB0 | ( | const VisBuffer & | vb, |
const ImageInterface< Complex > & | image, | ||
Int & | polInUse, | ||
TempImage< Float > & | avgPB | ||
) | [virtual] |
Reimplemented in casa::PBMosaicFT.
void casa::nPBWProjectFT::makeCFPolMap | ( | const VisBuffer & | vb, |
Vector< Int > & | polM | ||
) |
Vector<Int> makeConjPolMap(const VisBuffer& vb);.
void casa::nPBWProjectFT::makeConjPolMap | ( | const VisBuffer & | vb, |
const Vector< Int > | cfPolMap, | ||
Vector< Int > & | conjPolMap | ||
) |
void casa::nPBWProjectFT::makeConvFunction | ( | const ImageInterface< Complex > & | image, |
const VisBuffer & | vb, | ||
Float | pa | ||
) | [protected] |
MDirection::Convert casa::nPBWProjectFT::makeCoordinateMachine | ( | const VisBuffer & | , |
const MDirection::Types & | , | ||
const MDirection::Types & | , | ||
MEpoch & | last | ||
) |
void casa::nPBWProjectFT::makeImage | ( | FTMachine::Type | type, |
VisSet & | vs, | ||
ImageInterface< Complex > & | image, | ||
Matrix< Float > & | weight | ||
) | [virtual] |
Make the entire image.
Reimplemented from casa::FTMachine.
Int casa::nPBWProjectFT::makePBPolnCoords | ( | CoordinateSystem & | coord, |
const VisBuffer & | vb | ||
) | [protected] |
Make the PB part of the convolution function.
virtual void casa::nPBWProjectFT::makeSensitivityImage | ( | Lattice< Complex > & | wtImage, |
ImageInterface< Float > & | sensitivityImage, | ||
const Matrix< Float > & | sumWt = Matrix< Float >() , |
||
const Bool & | doFFTNorm = True |
||
) | [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.
virtual String casa::nPBWProjectFT::name | ( | ) | const [inline, virtual] |
Return the name of the machine.
Implements casa::FTMachine.
Definition at line 332 of file nPBWProjectFT.h.
void casa::nPBWProjectFT::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::nPBWProjectFT::nint | ( | Double | val | ) | [inline, protected] |
Definition at line 360 of file nPBWProjectFT.h.
References casa::floor().
virtual void casa::nPBWProjectFT::normalizeAvgPB | ( | ) | [protected, virtual] |
virtual void casa::nPBWProjectFT::normalizeImage | ( | Lattice< Complex > & | , |
const Matrix< Double > & | , | ||
Lattice< Float > & | , | ||
Bool | |||
) | [inline, virtual] |
Reimplemented from casa::FTMachine.
Definition at line 254 of file nPBWProjectFT.h.
void casa::nPBWProjectFT::ok | ( | ) | [protected, virtual] |
Reimplemented from casa::FTMachine.
nPBWProjectFT& casa::nPBWProjectFT::operator= | ( | const nPBWProjectFT & | other | ) |
Assignment operator.
void casa::nPBWProjectFT::put | ( | const VisBuffer & | , |
TempImage< Complex > & | , | ||
Vector< Double > & | , | ||
int | , | ||
UVWMachine * | , | ||
Bool | |||
) | [inline] |
Put coherence to grid by gridding.
throw(AipsError("nPBWProjectFT::put is not implemented"));
Definition at line 236 of file nPBWProjectFT.h.
void casa::nPBWProjectFT::put | ( | const VisBuffer & | vb, |
Int | row = -1 , |
||
Bool | dopsf = False , |
||
FTMachine::Type | type = FTMachine::OBSERVED |
||
) | [virtual] |
Put coherence to grid.
Implements casa::FTMachine.
Bool casa::nPBWProjectFT::recordOnGrid | ( | const VisBuffer & | vb, |
Int | rownr | ||
) | const [protected] |
Is this record on Grid? check both ends.
This assumes that the ends bracket the middle
void casa::nPBWProjectFT::reset | ( | ) | [inline, virtual] |
Reimplemented from casa::FTMachine.
Definition at line 327 of file nPBWProjectFT.h.
References paChangeDetector, and casa::ParAngleChangeDetector::reset().
virtual void casa::nPBWProjectFT::runFortranGet | ( | Matrix< Double > & | uvw, |
Vector< Double > & | dphase, | ||
Cube< Complex > & | visdata, | ||
IPosition & | s, | ||
Int & | Conj, | ||
Cube< Int > & | flags, | ||
Vector< Int > & | rowFlags, | ||
Int & | rownr, | ||
Vector< Double > & | actualOffset, | ||
Array< Complex > * | dataPtr, | ||
Int & | aNx, | ||
Int & | aNy, | ||
Int & | npol, | ||
Int & | nchan, | ||
VisBuffer & | vb, | ||
Int & | Nant_p, | ||
Int & | scanNo, | ||
Double & | sigma, | ||
Array< Float > & | raoffsets, | ||
Array< Float > & | decoffsets, | ||
Double | area, | ||
Int & | doGrad, | ||
Int | paIndex | ||
) | [protected, virtual] |
Conj | Cube<Complex>& gradVisAzData, Cube<Complex>& gradVisElData, IPosition& gradS, |
Reimplemented in casa::PBMosaicFT.
void casa::nPBWProjectFT::runFortranGetGrad | ( | Matrix< Double > & | uvw, |
Vector< Double > & | dphase, | ||
Cube< Complex > & | visdata, | ||
IPosition & | s, | ||
Cube< Complex > & | gradVisAzData, | ||
Cube< Complex > & | gradVisElData, | ||
Int & | Conj, | ||
Cube< Int > & | flags, | ||
Vector< Int > & | rowFlags, | ||
Int & | rownr, | ||
Vector< Double > & | actualOffset, | ||
Array< Complex > * | dataPtr, | ||
Int & | aNx, | ||
Int & | aNy, | ||
Int & | npol, | ||
Int & | nchan, | ||
VisBuffer & | vb, | ||
Int & | Nant_p, | ||
Int & | scanNo, | ||
Double & | sigma, | ||
Array< Float > & | l_off, | ||
Array< Float > & | m_off, | ||
Double | area, | ||
Int & | doGrad, | ||
Int | paIndex | ||
) | [protected] |
Reimplemented in casa::PBMosaicFT.
virtual void casa::nPBWProjectFT::runFortranPut | ( | Matrix< Double > & | uvw, |
Vector< Double > & | dphase, | ||
const Complex & | visdata_p, | ||
IPosition & | s, | ||
Int & | Conj, | ||
Cube< Int > & | flags, | ||
Vector< Int > & | rowFlags, | ||
const Matrix< Float > & | weight, | ||
Int & | rownr, | ||
Vector< Double > & | actualOffset, | ||
Array< Complex > & | dataPtr, | ||
Int & | aNx, | ||
Int & | aNy, | ||
Int & | npol, | ||
Int & | nchan, | ||
const VisBuffer & | vb, | ||
Int & | Nant_p, | ||
Int & | scanNo, | ||
Double & | sigma, | ||
Array< Float > & | raoffsets, | ||
Array< Float > & | decoffsets, | ||
Matrix< Double > & | sumWeight, | ||
Double & | area, | ||
Int & | doGrad, | ||
Int & | doPSF, | ||
Int | paIndex | ||
) | [protected, virtual] |
Conj | Cube<Complex>& gradVisAzData, Cube<Complex>& gradVisElData, IPosition& gradS, |
Reimplemented in casa::PBMosaicFT.
void casa::nPBWProjectFT::setDOPBCorrection | ( | Bool | doit = True | ) | [inline] |
Definition at line 167 of file nPBWProjectFT.h.
References doPBCorrection.
void casa::nPBWProjectFT::setEPJones | ( | SolvableVisJones * | ep_j | ) | [inline] |
void setEPJones(EPJones* ep_j) {epJ = ep_j;}
Definition at line 165 of file nPBWProjectFT.h.
References epJ.
virtual void casa::nPBWProjectFT::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 352 of file nPBWProjectFT.h.
void casa::nPBWProjectFT::setPAIncrement | ( | const Quantity & | paIncrement | ) |
Bool casa::nPBWProjectFT::toRecord | ( | String & | error, |
RecordInterface & | outRec, | ||
Bool | withImage = False |
||
) | [virtual] |
Save and restore the nPBWProjectFT to and from a record.
Reimplemented from casa::FTMachine.
virtual Bool casa::nPBWProjectFT::verifyAvgPB | ( | ImageInterface< Float > & | pb, |
ImageInterface< Float > & | sky | ||
) | [inline, virtual] |
Definition at line 333 of file nPBWProjectFT.h.
References casa::LatticeBase::shape(), and verifyShapes().
virtual Bool casa::nPBWProjectFT::verifyAvgPB | ( | ImageInterface< Float > & | pb, |
ImageInterface< Complex > & | sky | ||
) | [inline, virtual] |
Definition at line 335 of file nPBWProjectFT.h.
References casa::LatticeBase::shape(), and verifyShapes().
virtual Bool casa::nPBWProjectFT::verifyShapes | ( | IPosition | shape0, |
IPosition | shape1 | ||
) | [virtual] |
Reimplemented in casa::PBMosaicFT.
Referenced by verifyAvgPB().
Vector<Complex> casa::nPBWProjectFT::antiAliasingCorrection [protected] |
Definition at line 516 of file nPBWProjectFT.h.
Vector<Complex> casa::nPBWProjectFT::antiAliasingOp [protected] |
Definition at line 516 of file nPBWProjectFT.h.
Vector<Complex> casa::nPBWProjectFT::Area [protected] |
Definition at line 512 of file nPBWProjectFT.h.
CountedPtr<Lattice<Complex> > casa::nPBWProjectFT::arrayLattice [protected] |
Array lattice Lattice<Complex> * arrayLattice;.
Definition at line 403 of file nPBWProjectFT.h.
TempImage<Float> casa::nPBWProjectFT::avgPB [protected] |
VPSkyJones *vpSJ;.
The PA averaged (and potentially antenna averaged) PB for normalization
Definition at line 481 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::avgPBReady [protected] |
Definition at line 515 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::avgPBSaved [protected] |
Definition at line 514 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::bandID_p [protected] |
Definition at line 486 of file nPBWProjectFT.h.
Long casa::nPBWProjectFT::cachesize [protected] |
Sizes.
Definition at line 392 of file nPBWProjectFT.h.
IPosition casa::nPBWProjectFT::centerLoc [protected] |
Useful IPositions.
Definition at line 413 of file nPBWProjectFT.h.
ConvFuncDiskCache casa::nPBWProjectFT::cfCache [protected] |
Definition at line 508 of file nPBWProjectFT.h.
Double casa::nPBWProjectFT::cfRefFreq_p [protected] |
Definition at line 513 of file nPBWProjectFT.h.
Vector<Int> casa::nPBWProjectFT::cfStokes [protected] |
Definition at line 511 of file nPBWProjectFT.h.
Array<Complex> casa::nPBWProjectFT::convFunc [protected] |
Definition at line 440 of file nPBWProjectFT.h.
PtrBlock< Array<Complex> *> casa::nPBWProjectFT::convFuncCache [protected] |
Holder for the pointers to the convolution functions.
Each convolution function itself is a complex 3D array (U,V,W) per PA.
Definition at line 456 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::convFuncCacheReady [protected] |
If true, all convolution functions are in the cache.
Definition at line 466 of file nPBWProjectFT.h.
CoordinateSystem casa::nPBWProjectFT::convFuncCS_p [protected] |
Definition at line 442 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::convSampling [protected] |
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 449 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::convSize [protected] |
Definition at line 443 of file nPBWProjectFT.h.
Cube<Int> casa::nPBWProjectFT::convSupport [protected] |
Definition at line 450 of file nPBWProjectFT.h.
Array<Complex> casa::nPBWProjectFT::convWeights [protected] |
Definition at line 441 of file nPBWProjectFT.h.
PtrBlock< Array<Complex> *> casa::nPBWProjectFT::convWeightsCache [protected] |
Definition at line 456 of file nPBWProjectFT.h.
Cube<Int> casa::nPBWProjectFT::convWtSupport [protected] |
Definition at line 450 of file nPBWProjectFT.h.
Double casa::nPBWProjectFT::currentCFPA [protected] |
Definition at line 509 of file nPBWProjectFT.h.
Unit casa::nPBWProjectFT::Day [protected] |
Definition at line 502 of file nPBWProjectFT.h.
Double casa::nPBWProjectFT::Diameter_p [protected] |
Definition at line 496 of file nPBWProjectFT.h.
Definition at line 427 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::doPBCorrection [protected] |
Definition at line 499 of file nPBWProjectFT.h.
Referenced by setDOPBCorrection().
Int casa::nPBWProjectFT::doPointing [protected] |
Definition at line 498 of file nPBWProjectFT.h.
SolvableVisJones* casa::nPBWProjectFT::epJ [protected] |
Array<Complex> casa::nPBWProjectFT::griddedData [protected] |
Array for non-tiled gridding.
Definition at line 419 of file nPBWProjectFT.h.
ConvolveGridder<Double, Complex>* casa::nPBWProjectFT::gridder [protected] |
Definition at line 396 of file nPBWProjectFT.h.
Double casa::nPBWProjectFT::HPBW [protected] |
Definition at line 496 of file nPBWProjectFT.h.
LatticeCache<Complex>* casa::nPBWProjectFT::imageCache [protected] |
Image cache.
Definition at line 389 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::isTiled [protected] |
Is this tiled?
Definition at line 399 of file nPBWProjectFT.h.
Array<Float> casa::nPBWProjectFT::l_offsets [protected] |
Definition at line 503 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::lastIndex_p [protected] |
Definition at line 470 of file nPBWProjectFT.h.
Float casa::nPBWProjectFT::lastPAUsedForWtImg [protected] |
Definition at line 517 of file nPBWProjectFT.h.
CountedPtr<Lattice<Complex> > casa::nPBWProjectFT::lattice [protected] |
For non-tiled gridding, this will point to arrayLattice, whereas for tiled gridding, this points to the image Lattice<Complex>* lattice;
Definition at line 408 of file nPBWProjectFT.h.
Array<Float> casa::nPBWProjectFT::m_offsets [protected] |
Definition at line 503 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::makingPSF [protected] |
Definition at line 500 of file nPBWProjectFT.h.
Float casa::nPBWProjectFT::maxAbsData [protected] |
Definition at line 410 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::maxConvSupport [protected] |
Definition at line 487 of file nPBWProjectFT.h.
MSAntennaColumns* casa::nPBWProjectFT::msac [protected] |
Antenna columns.
Definition at line 425 of file nPBWProjectFT.h.
MSPointingColumns* casa::nPBWProjectFT::mspc [protected] |
Pointing columns.
Definition at line 422 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::Nant_p [protected] |
Definition at line 497 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::noOfPASteps [protected] |
Definition at line 504 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::nWPlanes_p [protected] |
Definition at line 374 of file nPBWProjectFT.h.
IPosition casa::nPBWProjectFT::offsetLoc [protected] |
Definition at line 413 of file nPBWProjectFT.h.
Definition at line 510 of file nPBWProjectFT.h.
Referenced by reset().
Float casa::nPBWProjectFT::padding_p [protected] |
Padding in FFT.
Definition at line 353 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::PAIndex [protected] |
Array<Complex>* convFunc_p;.
The index into the conv. func. cache for the current conv. func.
Definition at line 462 of file nPBWProjectFT.h.
Vector<Float> casa::nPBWProjectFT::paList [protected] |
Definition at line 507 of file nPBWProjectFT.h.
Float casa::nPBWProjectFT::pbLimit_p [protected] |
Percentage of the peak of the PB after which the image is set to zero.
Reimplemented from casa::FTMachine.
Definition at line 492 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::pbNormalized [protected] |
Definition at line 506 of file nPBWProjectFT.h.
Vector<Float> casa::nPBWProjectFT::pbPeaks [protected] |
Definition at line 505 of file nPBWProjectFT.h.
MDirection::Convert* casa::nPBWProjectFT::pointingToImage [protected] |
Definition at line 429 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::polInUse [protected] |
No.
of vis. polarization planes used in making the user defined Stokes images
Definition at line 486 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::priorCacheSize [protected] |
Definition at line 435 of file nPBWProjectFT.h.
Unit casa::nPBWProjectFT::Radian [protected] |
Definition at line 502 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::resetPBs [protected] |
Definition at line 506 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::rotateAperture_p [protected] |
Definition at line 506 of file nPBWProjectFT.h.
Unit casa::nPBWProjectFT::Second [protected] |
Definition at line 502 of file nPBWProjectFT.h.
Double casa::nPBWProjectFT::sigma [protected] |
Definition at line 496 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::tilesize [protected] |
Definition at line 393 of file nPBWProjectFT.h.
Bool casa::nPBWProjectFT::usezero_p [protected] |
Grid/degrid zero spacing points?
Definition at line 438 of file nPBWProjectFT.h.
Vector<Double> casa::nPBWProjectFT::uvOffset [protected] |
Definition at line 416 of file nPBWProjectFT.h.
Vector<Double> casa::nPBWProjectFT::uvScale [protected] |
Image Scaling and offset.
Definition at line 416 of file nPBWProjectFT.h.
Int casa::nPBWProjectFT::wConvSize [protected] |
Definition at line 468 of file nPBWProjectFT.h.
MDirection casa::nPBWProjectFT::worldPosMeas [protected] |
Definition at line 433 of file nPBWProjectFT.h.
Vector<Double> casa::nPBWProjectFT::xyPos [protected] |
Definition at line 431 of file nPBWProjectFT.h.