casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::PBMosaicFT Class Reference

class nPBWProjectFT; More...

#include <PBMosaicFT.h>

Inheritance diagram for casa::PBMosaicFT:
casa::nPBWProjectFT casa::FTMachine

List of all members.

Public Member Functions

 PBMosaicFT (MeasurementSet &ms, 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.
 PBMosaicFT (const RecordInterface &stateRec)
 Construct from a Record containing the PBMosaicFT state.
PBMosaicFToperator= (const PBMosaicFT &othher)
 Copy constructor PBMosaicFT(const PBMosaicFT &other);.
 ~PBMosaicFT ()
Bool makeAveragePB0 (const VisBuffer &vb, const ImageInterface< Complex > &image, Int &polInUse, TempImage< Float > &avgPB)
Int findPointingOffsets (const VisBuffer &vb, Array< Float > &l_off, Array< Float > &m_off, Bool Evaluate)
void normalizeAvgPB ()
 VLACalcIlluminationConvFunc vlaPB;.
void normalizePB (ImageInterface< Float > &pb, const Float &nSamp=1)
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 Float pbFunc (Float &a)
void setObservatoryLocation (const MPosition &mLocation)
virtual void finalizeToSky ()
 Finalize transform to Sky 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 String name ()
virtual Bool verifyShapes (IPosition, IPosition)

Private Member Functions

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)
virtual 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)

Private Attributes

Complex nApertures
Vector< IntfieldIds_p
TempImage< Complex > griddedWeights
Float pbNorm

Detailed Description

class nPBWProjectFT;

Definition at line 49 of file PBMosaicFT.h.


Constructor & Destructor Documentation

casa::PBMosaicFT::PBMosaicFT ( MeasurementSet ms,
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).

Construct from a Record containing the PBMosaicFT state.

Definition at line 75 of file PBMosaicFT.h.


Member Function Documentation

virtual void casa::PBMosaicFT::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!

Reimplemented from casa::nPBWProjectFT.

Int casa::PBMosaicFT::findPointingOffsets ( const VisBuffer vb,
Array< Float > &  l_off,
Array< Float > &  m_off,
Bool  Evaluate 
) [virtual]

Reimplemented from casa::nPBWProjectFT.

virtual ImageInterface<Complex>& casa::PBMosaicFT::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.

Reimplemented from casa::nPBWProjectFT.

virtual void casa::PBMosaicFT::initializeToSky ( ImageInterface< Complex > &  image,
Matrix< Float > &  weight,
const VisBuffer vb 
) [virtual]

Initialize transform to Sky plane: initializes the image.

Reimplemented from casa::nPBWProjectFT.

Bool casa::PBMosaicFT::makeAveragePB0 ( const VisBuffer vb,
const ImageInterface< Complex > &  image,
Int polInUse,
TempImage< Float > &  avgPB 
) [virtual]

Reimplemented from casa::nPBWProjectFT.

virtual String casa::PBMosaicFT::name ( ) [inline, virtual]

Definition at line 93 of file PBMosaicFT.h.

VLACalcIlluminationConvFunc vlaPB;.


Reimplemented from casa::nPBWProjectFT.

void casa::PBMosaicFT::normalizePB ( ImageInterface< Float > &  pb,
const Float nSamp = 1 
)
PBMosaicFT& casa::PBMosaicFT::operator= ( const PBMosaicFT othher)

Copy constructor PBMosaicFT(const PBMosaicFT &other);.

Assignment operator

virtual Float casa::PBMosaicFT::pbFunc ( Float a) [inline, virtual]

Definition at line 88 of file PBMosaicFT.h.

virtual void casa::PBMosaicFT::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 
) [private, virtual]
Parameters:
ConjCube<Complex>& gradVisAzData, Cube<Complex>& gradVisElData, IPosition& gradS,

Reimplemented from casa::nPBWProjectFT.

virtual void casa::PBMosaicFT::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 
) [private, virtual]
Parameters:
ConjIPosition& gradS,

Reimplemented from casa::nPBWProjectFT.

virtual void casa::PBMosaicFT::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 
) [private, virtual]
Parameters:
ConjCube<Complex>& gradVisAzData, Cube<Complex>& gradVisElData, IPosition& gradS,

Reimplemented from casa::nPBWProjectFT.

void casa::PBMosaicFT::setObservatoryLocation ( const MPosition mLocation) [inline]

Definition at line 89 of file PBMosaicFT.h.

References casa::FTMachine::mLocation_p.

virtual Bool casa::PBMosaicFT::verifyShapes ( IPosition  ,
IPosition   
) [inline, virtual]

Reimplemented from casa::nPBWProjectFT.

Definition at line 94 of file PBMosaicFT.h.


Member Data Documentation

Definition at line 99 of file PBMosaicFT.h.

Definition at line 100 of file PBMosaicFT.h.

Complex casa::PBMosaicFT::nApertures [private]

Definition at line 95 of file PBMosaicFT.h.

Definition at line 101 of file PBMosaicFT.h.


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