casa::refim::SetJyGridFT Class Reference

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

#include <SetJyGridFT.h>

Inheritance diagram for casa::refim::SetJyGridFT:
casa::refim::GridFT casa::refim::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 FTMachinecloneFTM ()
 clone FTM
virtual void initializeToVis (ImageInterface< Complex > &image, const vi::VisBuffer2 &vb)
 Initialize transform to Visibility plane using the image as a template.
void get (vi::VisBuffer2 &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, const String diskimage="")
 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

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 73 of file SetJyGridFT.h.


Constructor & Destructor Documentation

casa::refim::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::refim::SetJyGridFT::SetJyGridFT ( const RecordInterface &  stateRec  ) 

Construct from a Record containing the GridFT state.

casa::refim::SetJyGridFT::SetJyGridFT ( const SetJyGridFT other  ) 

Copy constructor.

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

Member Function Documentation

virtual FTMachine* casa::refim::SetJyGridFT::cloneFTM (  )  [virtual]

clone FTM

Reimplemented from casa::refim::GridFT.

virtual Bool casa::refim::SetJyGridFT::fromRecord ( String &  error,
const RecordInterface &  inRec 
) [virtual]

Reimplemented from casa::refim::GridFT.

void casa::refim::SetJyGridFT::get ( vi::VisBuffer2 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::refim::GridFT.

virtual void casa::refim::SetJyGridFT::initializeToVis ( ImageInterface< Complex > &  image,
const vi::VisBuffer2 vb 
) [virtual]

Initialize transform to Visibility plane using the image as a template.

The image is loaded and Fourier transformed.

Reimplemented from casa::refim::GridFT.

virtual String casa::refim::SetJyGridFT::name (  )  const [virtual]

Return the name of the machine.

Reimplemented from casa::refim::GridFT.

SetJyGridFT& casa::refim::SetJyGridFT::operator= ( const SetJyGridFT other  )  [virtual]

Assignment operator.

Reimplemented from casa::refim::GridFT.

virtual void casa::refim::SetJyGridFT::setScale ( const Vector< Double > &  freq,
const Vector< Double > &  scale 
) [virtual]
virtual Bool casa::refim::SetJyGridFT::toRecord ( String &  error,
RecordInterface &  outRec,
Bool  withImage = False,
const String  diskimage = "" 
) [virtual]

Save and restore the GridFT to and from a record.

Reimplemented from casa::refim::GridFT.


Member Data Documentation

Vector<Double> casa::refim::SetJyGridFT::freqscale_p [protected]

Prepare the grid for degridding void prepGridForDegrid();.

Definition at line 137 of file SetJyGridFT.h.

Vector<Double> casa::refim::SetJyGridFT::interpscale_p [protected]

Definition at line 139 of file SetJyGridFT.h.

Vector<Double> casa::refim::SetJyGridFT::scale_p [protected]

Definition at line 138 of file SetJyGridFT.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1