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

An FTMachine for Gridded Fourier transforms specializing in setjy frequency scaling. More...

#include <SetJyGridFT.h>

Inheritance diagram for casa::SetJyGridFT:
casa::GridFT casa::FTMachine

List of all members.

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.
SetJyGridFToperator= (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< Doublefreqscale_p
 Prepare the grid for degridding void prepGridForDegrid();.
Vector< Doublescale_p
Vector< Doubleinterpscale_p

Detailed Description

An FTMachine for Gridded Fourier transforms specializing in setjy frequency scaling.

Intended use:

Public interface

Prerequisite

Etymology

Inheriting from GridFT which does Grid-based Fourier transforms. special case for setjy style frequency scaling

Synopsis

Example

Motivation

Define an interface to allow efficient processing of chunks of visibility data

Definition at line 71 of file SetJyGridFT.h.


Constructor & Destructor Documentation

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 = VectorDouble >(1, 0.0),
const Vector< Double > &  scale = VectorDouble >(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.

Construct from a Record containing the GridFT state.

Copy constructor.

virtual casa::SetJyGridFT::~SetJyGridFT ( ) [virtual]

Member Function Documentation

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.


Member Data Documentation

Prepare the grid for degridding void prepGridForDegrid();.

Definition at line 133 of file SetJyGridFT.h.

Definition at line 135 of file SetJyGridFT.h.

Definition at line 134 of file SetJyGridFT.h.


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