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

#include <MultiTermAWProjectWBFT.h>

Inheritance diagram for casa::MultiTermAWProjectWBFT:
casa::AWProjectWBFT casa::AWProjectFT casa::FTMachine

List of all members.

Public Member Functions

 MultiTermAWProjectWBFT (Int nFacets, Long cachesize, CountedPtr< CFCache > &cfcache, CountedPtr< ConvolutionFunction > &cf, 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.
 MultiTermAWProjectWBFT (const RecordInterface &stateRec)
 Construct from a Record containing the AWProjectWBFT state.
MultiTermAWProjectWBFToperator= (const MultiTermAWProjectWBFT &other)
 Assignment operator.
 ~MultiTermAWProjectWBFT ()
virtual void normalizeImage (Lattice< Complex > &skyImage, const Matrix< Double > &sumOfWts, Lattice< Float > &sensitivityImage, Bool fftNorm=True)
 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 void makeSensitivityImage (Lattice< Complex > &wtImage, ImageInterface< Float > &sensitivityImage, const Matrix< Float > &sumWt=Matrix< Float >(), const Bool &doFFTNorm=True)
 In AWProjectWBFT and its derivatives, sensitivity image is computed by accumulating weight functions (images) during the first gridding cycle.
virtual ImageInterface< Complex > & getImage (Matrix< Float > &, Bool normalize=True)
 Method used to make normalized image from gridded visibilites.
virtual Bool computeAvgPB (const Double &actualPA, const Double &lastPAUsedForWtImg)
 Returns True if accumulation during gridding to compute the average PB must be done.
virtual String name () const
 Return the name of the machine.
void normalizeAvgPB (ImageInterface< Complex > &inImage, ImageInterface< Float > &outImage)

Detailed Description

Definition at line 38 of file MultiTermAWProjectWBFT.h.


Constructor & Destructor Documentation

casa::MultiTermAWProjectWBFT::MultiTermAWProjectWBFT ( Int  nFacets,
Long  cachesize,
CountedPtr< CFCache > &  cfcache,
CountedPtr< ConvolutionFunction > &  cf,
Bool  applyPointingOffset = True,
Bool  doPBCorr = True,
Int  tilesize = 16,
Float  paSteps = 5.0,
Float  pbLimit = 5e-2,
Bool  usezero = False 
) [inline]

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

Definition at line 48 of file MultiTermAWProjectWBFT.h.

Construct from a Record containing the AWProjectWBFT state.

Definition at line 61 of file MultiTermAWProjectWBFT.h.

Definition at line 68 of file MultiTermAWProjectWBFT.h.


Member Function Documentation

virtual Bool casa::MultiTermAWProjectWBFT::computeAvgPB ( const Double actualPA,
const Double lastPAUsedForWtImg 
) [inline, virtual]

Returns True if accumulation during gridding to compute the average PB must be done.

Reimplemented from casa::AWProjectWBFT.

Definition at line 111 of file MultiTermAWProjectWBFT.h.

References casa::AWProjectWBFT::avgPBReady_p, and casa::False.

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

Method used to make normalized image from gridded visibilites.

This calls makeSensitivityImage() to make the sensitivity image and AWProjectFT::getImage() to make the image from gridded visibilites. AWProjectFT::getImage() internally calls normalizeImage() which uses the sensitivty image computed by makeSensitivtyImage().

Reimplemented from casa::AWProjectWBFT.

Definition at line 104 of file MultiTermAWProjectWBFT.h.

virtual void casa::MultiTermAWProjectWBFT::makeSensitivityImage ( Lattice< Complex > &  wtImage,
ImageInterface< Float > &  sensitivityImage,
const Matrix< Float > &  sumWt = Matrix<Float>(),
const Bool doFFTNorm = True 
) [inline, virtual]

In AWProjectWBFT and its derivatives, sensitivity image is computed by accumulating weight functions (images) during the first gridding cycle.

AWProjectFT::makeSensitivityImage() is overloaded in AWProjectWBFT and only issues a log message.

The following method is used to Fourier transform normalize the accumulated weight images. doFFTNorm when True, the FFT normalization (by pixel volume) is also done.

Reimplemented from casa::AWProjectWBFT.

Definition at line 91 of file MultiTermAWProjectWBFT.h.

virtual String casa::MultiTermAWProjectWBFT::name ( ) const [inline, virtual]

Return the name of the machine.

Reimplemented from casa::AWProjectWBFT.

Definition at line 114 of file MultiTermAWProjectWBFT.h.

void casa::MultiTermAWProjectWBFT::normalizeAvgPB ( ImageInterface< Complex > &  inImage,
ImageInterface< Float > &  outImage 
) [inline, virtual]

Reimplemented from casa::AWProjectWBFT.

Definition at line 116 of file MultiTermAWProjectWBFT.h.

virtual void casa::MultiTermAWProjectWBFT::normalizeImage ( Lattice< Complex > &  skyImage,
const Matrix< Double > &  sumOfWts,
Lattice< Float > &  sensitivityImage,
Bool  fftNorm = True 
) [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.

Reimplemented from casa::FTMachine.

Definition at line 76 of file MultiTermAWProjectWBFT.h.

MultiTermAWProjectWBFT& casa::MultiTermAWProjectWBFT::operator= ( const MultiTermAWProjectWBFT other) [inline]

Assignment operator.

Definition at line 65 of file MultiTermAWProjectWBFT.h.


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