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

#include <GridBoth.h>

Inheritance diagram for casa::GridBoth:
casa::FTMachine

List of all members.

Public Member Functions

 GridBoth (SkyJones &sj, Long cachesize, Int tilesize, String sdConvType="BOX", String synConvType="SF", Float padding=1.0, Float sdScale=1.0, Float sdWeight=1.0)
 Constructor: cachesize is the size of the cache in words (e.g.
 GridBoth (SkyJones &sj, Long cachesize, Int tilesize, MPosition mLocation, String sdConvType="BOX", String synConvType="SF", Float padding=1.0, Float sdScale=1.0, Float sdWeight=1.0)
 GridBoth (SkyJones &sj, Long cachesize, Int tilesize, MPosition mLocation, MDirection mTangent, String sdConvType="BOX", String synConvType="SF", Float padding=1.0, Float sdScale=1.0, Float sdWeight=1.0)
 GridBoth (const GridBoth &other)
 Copy constructor.
GridBothoperator= (const GridBoth &other)
 Assignment operator.
 ~GridBoth ()
 GridBoth (const RecordInterface &stateRec)
 Construct from a Record containing the GridFT state.
void initializeToVis (ImageInterface< Complex > &image, const VisBuffer &vb)
 Initialize transform to Visibility plane using the image as a template.
void finalizeToVis ()
 Finalize transform to Visibility plane: flushes the image cache and shows statistics if it is being used.
void initializeToSky (ImageInterface< Complex > &image, Matrix< Float > &weight, const VisBuffer &vb)
 Initialize transform to Sky plane: initializes the image.
void finalizeToSky ()
 Finalize transform to Sky plane: flushes the image cache and shows statistics if it is being used.
void get (VisBuffer &vb, Int row=-1)
 Get actual coherence from grid by degridding.
void put (const VisBuffer &vb, Int row=-1, Bool dopsf=False, FTMachine::Type type=FTMachine::OBSERVED)
 Put coherence to grid by gridding.
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.
virtual Bool toRecord (String &error, RecordInterface &outRec, Bool withImage=False)
 Save and restore the GridFT to and from a record.
virtual Bool fromRecord (String &error, const RecordInterface &inRec)
virtual Bool changed (const VisBuffer &vb)
 Has this operator changed since the last application?
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.
virtual String name () const
 Return the name of the machine.

Private Member Functions

void ok ()
void init ()

Private Attributes

FTMachinesynMachine_p
FTMachinesdMachine_p
FTMachinelastMachine_p
TempImage< Complex > * sdImage_p
 Images for Synthesis and SD.
TempImage< Complex > * synImage_p
Float sdScale_p
Float sdWeight_p

Detailed Description

Definition at line 105 of file GridBoth.h.


Constructor & Destructor Documentation

casa::GridBoth::GridBoth ( SkyJones sj,
Long  cachesize,
Int  tilesize,
String  sdConvType = "BOX",
String  synConvType = "SF",
Float  padding = 1.0,
Float  sdScale = 1.0,
Float  sdWeight = 1.0 
)

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), and convType is the type of gridding used (SF is prolate spheriodal wavefunction, and BOX is plain box-car summation). mLocation is the position to be used in some phase rotations. If mTangent is specified then the uvw rotation is done for that location iso the image center.

casa::GridBoth::GridBoth ( SkyJones sj,
Long  cachesize,
Int  tilesize,
MPosition  mLocation,
String  sdConvType = "BOX",
String  synConvType = "SF",
Float  padding = 1.0,
Float  sdScale = 1.0,
Float  sdWeight = 1.0 
)
casa::GridBoth::GridBoth ( SkyJones sj,
Long  cachesize,
Int  tilesize,
MPosition  mLocation,
MDirection  mTangent,
String  sdConvType = "BOX",
String  synConvType = "SF",
Float  padding = 1.0,
Float  sdScale = 1.0,
Float  sdWeight = 1.0 
)
casa::GridBoth::GridBoth ( const GridBoth other)

Copy constructor.

Construct from a Record containing the GridFT state.


Member Function Documentation

virtual Bool casa::GridBoth::changed ( const VisBuffer vb) [virtual]

Has this operator changed since the last application?

Reimplemented from casa::FTMachine.

virtual void casa::GridBoth::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 196 of file GridBoth.h.

void casa::GridBoth::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.

void casa::GridBoth::finalizeToVis ( ) [virtual]

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

Implements casa::FTMachine.

virtual Bool casa::GridBoth::fromRecord ( String error,
const RecordInterface inRec 
) [virtual]

Reimplemented from casa::FTMachine.

void casa::GridBoth::get ( VisBuffer vb,
Int  row = -1 
) [virtual]

Get actual coherence from grid by degridding.

Implements casa::FTMachine.

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

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

Get the final weights image.

Implements casa::FTMachine.

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

Initialize transform to Sky plane: initializes the image.

Implements casa::FTMachine.

void casa::GridBoth::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 String casa::GridBoth::name ( ) const [inline, virtual]

Return the name of the machine.

Implements casa::FTMachine.

Definition at line 197 of file GridBoth.h.

virtual void casa::GridBoth::normalizeImage ( Lattice< Complex > &  ,
const Matrix< Double > &  ,
Lattice< Float > &  ,
Bool   
) [inline, virtual]

Reimplemented from casa::FTMachine.

Definition at line 179 of file GridBoth.h.

void casa::GridBoth::ok ( ) [private, virtual]

Reimplemented from casa::FTMachine.

GridBoth& casa::GridBoth::operator= ( const GridBoth other)

Assignment operator.

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

Put coherence to grid by gridding.

Implements casa::FTMachine.

virtual void casa::GridBoth::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 195 of file GridBoth.h.

virtual Bool casa::GridBoth::toRecord ( String error,
RecordInterface outRec,
Bool  withImage = False 
) [virtual]

Save and restore the GridFT to and from a record.

Reimplemented from casa::FTMachine.


Member Data Documentation

Definition at line 203 of file GridBoth.h.

TempImage<Complex>* casa::GridBoth::sdImage_p [private]

Images for Synthesis and SD.

Definition at line 206 of file GridBoth.h.

Definition at line 202 of file GridBoth.h.

Definition at line 209 of file GridBoth.h.

Definition at line 209 of file GridBoth.h.

Definition at line 207 of file GridBoth.h.

Definition at line 197 of file GridBoth.h.


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