casa
$Rev:20696$
|
An FTMachine for Gridded Fourier transforms specializing in setjy frequency scaling. More...
#include <SetJyGridFT.h>
Public Member Functions | |
SetJyGridFT (Long cachesize, Int tilesize, String convType, MPosition mLocation, MDirection mTangent, Float passing=1.0, Bool usezero=True, Bool useDoublePrec=False, const Vector< Double > &freqscale=Vector< Double >(1, 0.0), const Vector< Double > &scale=Vector< Double >(1, 1.0)) | |
Constructor: cachesize is the size of the cache in words (e.g. | |
SetJyGridFT (const RecordInterface &stateRec) | |
Construct from a Record containing the GridFT state. | |
SetJyGridFT (const SetJyGridFT &other) | |
Copy constructor. | |
SetJyGridFT & | operator= (const SetJyGridFT &other) |
Assignment operator. | |
virtual | ~SetJyGridFT () |
virtual void | initializeToVis (ImageInterface< Complex > &image, const VisBuffer &vb) |
Initialize transform to Visibility plane using the image as a template. | |
void | get (VisBuffer &vb, Int row=-1) |
Finalize transform to Visibility plane: flushes the image cache and shows statistics if it is being used. | |
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 void | setScale (const Vector< Double > &freq, const Vector< Double > &scale) |
virtual String | name () const |
Return the name of the machine. | |
Protected Attributes | |
Vector< Double > | freqscale_p |
Prepare the grid for degridding void prepGridForDegrid();. | |
Vector< Double > | scale_p |
Vector< Double > | interpscale_p |
An FTMachine for Gridded Fourier transforms specializing in setjy frequency scaling.
Public interface
Inheriting from GridFT which does Grid-based Fourier transforms. special case for setjy style frequency scaling
Define an interface to allow efficient processing of chunks of visibility data
Definition at line 71 of file SetJyGridFT.h.
casa::SetJyGridFT::SetJyGridFT | ( | Long | cachesize, |
Int | tilesize, | ||
String | convType, | ||
MPosition | mLocation, | ||
MDirection | mTangent, | ||
Float | passing = 1.0 , |
||
Bool | usezero = True , |
||
Bool | useDoublePrec = False , |
||
const Vector< Double > & | freqscale = Vector< Double >(1, 0.0) , |
||
const Vector< Double > & | scale = Vector< Double >(1, 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::SetJyGridFT::SetJyGridFT | ( | const RecordInterface & | stateRec | ) |
casa::SetJyGridFT::SetJyGridFT | ( | const SetJyGridFT & | other | ) |
Copy constructor.
virtual casa::SetJyGridFT::~SetJyGridFT | ( | ) | [virtual] |
virtual Bool casa::SetJyGridFT::fromRecord | ( | String & | error, |
const RecordInterface & | inRec | ||
) | [virtual] |
Reimplemented from casa::GridFT.
void casa::SetJyGridFT::get | ( | VisBuffer & | vb, |
Int | row = -1 |
||
) | [virtual] |
Finalize transform to Visibility plane: flushes the image cache and shows statistics if it is being used.
void finalizeToVis();
Get actual coherence from grid by degridding
Reimplemented from casa::GridFT.
virtual void casa::SetJyGridFT::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.
Reimplemented from casa::GridFT.
virtual String casa::SetJyGridFT::name | ( | ) | const [virtual] |
Return the name of the machine.
Reimplemented from casa::GridFT.
SetJyGridFT& casa::SetJyGridFT::operator= | ( | const SetJyGridFT & | other | ) |
Assignment operator.
virtual void casa::SetJyGridFT::setScale | ( | const Vector< Double > & | freq, |
const Vector< Double > & | scale | ||
) | [virtual] |
virtual Bool casa::SetJyGridFT::toRecord | ( | String & | error, |
RecordInterface & | outRec, | ||
Bool | withImage = False |
||
) | [virtual] |
Save and restore the GridFT to and from a record.
Reimplemented from casa::GridFT.
Vector<Double> casa::SetJyGridFT::freqscale_p [protected] |
Prepare the grid for degridding void prepGridForDegrid();.
Definition at line 133 of file SetJyGridFT.h.
Vector<Double> casa::SetJyGridFT::interpscale_p [protected] |
Definition at line 135 of file SetJyGridFT.h.
Vector<Double> casa::SetJyGridFT::scale_p [protected] |
Definition at line 134 of file SetJyGridFT.h.