casa::MosaicFT Class Reference

#include <MosaicFT.h>

Inheritance diagram for casa::MosaicFT:
casa::FTMachine casa::MosaicFTNew

List of all members.

Public Member Functions

 MosaicFT (SkyJones *sj, MPosition mloc, String stokes, Long cachesize, Int tilesize=16, Bool usezero=True, Bool useDoublePrec=False)
 Constructor: cachesize is the size of the cache in words (e.g.
 MosaicFT (const RecordInterface &stateRec)
 Construct from a Record containing the MosaicFT state.
 MosaicFT (const MosaicFT &other)
 Copy constructor.
MosaicFToperator= (const MosaicFT &other)
 Assignment operator.
 ~MosaicFT ()
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 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.
void makeImage (FTMachine::Type type, VisSet &vs, ImageInterface< Complex > &image, Matrix< Float > &weight)
 Make the entire image.
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 void getFluxImage (ImageInterface< Float > &image)
 Get a flux (divide by this to get a flux density correct image) image if there is one.
Bool toRecord (String &error, RecordInterface &outRec, Bool withImage=False, const String diskimage="")
 Save and restore the MosaicFT to and from a record.
Bool fromRecord (String &error, const RecordInterface &inRec)
Bool isFourier ()
 Can this FTMachine be represented by Fourier convolutions?
virtual String name () const
 Return name of this machine.
virtual Bool useWeightImage ()
 All FTMachines that fill weightimage, need to set this.
void setConvFunc (CountedPtr< SimplePBConvFunc > &pbconvFunc)
 Copy convolution function etc to another FT machine necessary if ft and ift are distinct but can share convfunctions.
CountedPtr< SimplePBConvFunc > & getConvFunc ()
CountedPtr< TempImage< Float > > & getConvWeightImage ()
virtual void reset ()
 reset weight image
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.

Public Attributes

Finalize transform to Sky plane: flushes the image cache and shows statistics if it is being used. DOES NOT DO THE FINAL TRANSFORM! */ void finalizeToSky()

Protected Member Functions

Int nint (Double val)
void findConvFunction (const ImageInterface< Complex > &image, const VisBuffer &vb)
 Find the convolution function.
void girarUVW (Matrix< Double > &uvw, Vector< Double > &dphase, const VisBuffer &vb)
void addBeamCoverage (ImageInterface< Complex > &image)
void prepGridForDegrid ()
Array< Complex > * getDataPointer (const IPosition &, Bool)
 Get the appropriate data pointer.
void ok ()
void init ()
Bool recordOnGrid (const VisBuffer &vb, Int rownr) const
 Is this record on Grid? check both ends.
Int getIndex (const ROMSPointingColumns &mspc, const Double &time, const Double &interval)
Bool getXYPos (const VisBuffer &vb, Int row)

Protected Attributes

SkyJonessj_p
 Vector<SkyJones *> sj_p;.
LatticeCache< Complex > * imageCache
 Image cache.
Long cachesize
 Sizes.
Int tilesize
ConvolveGridder< Double,
Complex > * 
gridder
 Gridder.
Bool isTiled
 Is this tiled?
CountedPtr< Lattice< Complex > > arrayLattice
 Array lattice.
CountedPtr< Lattice< Complex > > lattice
 Lattice.
CountedPtr< Lattice< Complex > > weightLattice
Float maxAbsData
IPosition centerLoc
 Useful IPositions.
IPosition offsetLoc
Vector< Double > uvScale
 Image Scaling and offset.
Vector< Double > uvOffset
Array< Complex > griddedWeight
 Array for non-tiled gridding.
Array< DComplex > griddedWeight2
MSPointingColumns * mspc
 Pointing columns.
MSAntennaColumns * msac
 Antenna columns.
DirectionCoordinate directionCoord
MDirection::Convert * pointingToImage
Vector< Double > xyPos
MDirection worldPosMeas
Int priorCacheSize
Bool usezero_p
 Grid/degrid zero spacing points?
Array< Complex > convFunc
Array< Complex > weightConvFunc_p
Int convSampling
Int convSize
Int convSupport
Vector< Int > convSupportPlanes_p
Vector< Int > convSizePlanes_p
Vector< Int > convRowMap_p
Vector< Int > convChanMap_p
Vector< Int > convPolMap_p
Int wConvSize
Int lastIndex_p
CountedPtr< TempImage< Float > > skyCoverage_p
TempImage< Complex > * convWeightImage_p
CountedPtr< SimplePBConvFuncpbConvFunc_p
CountedPtr< UVWMachine > phaseShifter_p
String machineName_p
 Later this.
Bool doneWeightImage_p
String stokes_p

Detailed Description

Definition at line 131 of file MosaicFT.h.


Constructor & Destructor Documentation

casa::MosaicFT::MosaicFT ( SkyJones sj,
MPosition  mloc,
String  stokes,
Long  cachesize,
Int  tilesize = 16,
Bool  usezero = True,
Bool  useDoublePrec = False 
)

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

casa::MosaicFT::MosaicFT ( const RecordInterface &  stateRec  ) 

Construct from a Record containing the MosaicFT state.

casa::MosaicFT::MosaicFT ( const MosaicFT other  ) 

Copy constructor.

casa::MosaicFT::~MosaicFT (  ) 

Member Function Documentation

void casa::MosaicFT::addBeamCoverage ( ImageInterface< Complex > &  image  )  [protected]
virtual void casa::MosaicFT::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 230 of file MosaicFT.h.

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

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

Implements casa::FTMachine.

void casa::MosaicFT::findConvFunction ( const ImageInterface< Complex > &  image,
const VisBuffer vb 
) [protected, virtual]

Find the convolution function.

Reimplemented from casa::FTMachine.

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

Reimplemented from casa::FTMachine.

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

Get actual coherence from grid by degridding.

Implements casa::FTMachine.

CountedPtr<SimplePBConvFunc>& casa::MosaicFT::getConvFunc (  ) 
CountedPtr<TempImage<Float> >& casa::MosaicFT::getConvWeightImage (  ) 
Array<Complex>* casa::MosaicFT::getDataPointer ( const IPosition &  ,
Bool   
) [protected]

Get the appropriate data pointer.

virtual void casa::MosaicFT::getFluxImage ( ImageInterface< Float > &  image  )  [virtual]

Get a flux (divide by this to get a flux density correct image) image if there is one.

Reimplemented from casa::FTMachine.

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

Reimplemented in casa::MosaicFTNew.

Int casa::MosaicFT::getIndex ( const ROMSPointingColumns &  mspc,
const Double &  time,
const Double &  interval 
) [protected]
void casa::MosaicFT::getWeightImage ( ImageInterface< Float > &  ,
Matrix< Float > &   
) [virtual]

Get the final weights image.

Implements casa::FTMachine.

Reimplemented in casa::MosaicFTNew.

Bool casa::MosaicFT::getXYPos ( const VisBuffer vb,
Int  row 
) [protected]
void casa::MosaicFT::girarUVW ( Matrix< Double > &  uvw,
Vector< Double > &  dphase,
const VisBuffer vb 
) [protected]
void casa::MosaicFT::init (  )  [protected]
void casa::MosaicFT::initializeToSky ( ImageInterface< Complex > &  image,
Matrix< Float > &  weight,
const VisBuffer vb 
) [virtual]

Initialize transform to Sky plane: initializes the image.

Implements casa::FTMachine.

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

Bool casa::MosaicFT::isFourier (  )  [inline, virtual]

Can this FTMachine be represented by Fourier convolutions?

Reimplemented from casa::FTMachine.

Definition at line 211 of file MosaicFT.h.

References casacore::True.

void casa::MosaicFT::makeImage ( FTMachine::Type  type,
VisSet vs,
ImageInterface< Complex > &  image,
Matrix< Float > &  weight 
) [virtual]

Make the entire image.

Reimplemented from casa::FTMachine.

virtual String casa::MosaicFT::name (  )  const [virtual]

Return name of this machine.

Implements casa::FTMachine.

Reimplemented in casa::MosaicFTNew.

Int casa::MosaicFT::nint ( Double  val  )  [inline, protected]

Definition at line 234 of file MosaicFT.h.

References casacore::floor().

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

Reimplemented from casa::FTMachine.

Definition at line 191 of file MosaicFT.h.

void casa::MosaicFT::ok (  )  [protected, virtual]

Reimplemented from casa::FTMachine.

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

Assignment operator.

Reimplemented from casa::FTMachine.

void casa::MosaicFT::prepGridForDegrid (  )  [protected]
void casa::MosaicFT::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.

Bool casa::MosaicFT::recordOnGrid ( const VisBuffer vb,
Int  rownr 
) const [protected]

Is this record on Grid? check both ends.

This assumes that the ends bracket the middle

virtual void casa::MosaicFT::reset (  )  [virtual]

reset weight image

Reimplemented from casa::FTMachine.

void casa::MosaicFT::setConvFunc ( CountedPtr< SimplePBConvFunc > &  pbconvFunc  ) 

Copy convolution function etc to another FT machine necessary if ft and ift are distinct but can share convfunctions.

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

Bool casa::MosaicFT::toRecord ( String &  error,
RecordInterface &  outRec,
Bool  withImage = False,
const String  diskimage = "" 
) [virtual]

Save and restore the MosaicFT to and from a record.

Reimplemented from casa::FTMachine.

virtual Bool casa::MosaicFT::useWeightImage (  )  [inline, virtual]

All FTMachines that fill weightimage, need to set this.

TODO : Make this pure virtual.

Reimplemented from casa::FTMachine.

Definition at line 216 of file MosaicFT.h.

References casacore::True.


Member Data Documentation

CountedPtr<Lattice<Complex> > casa::MosaicFT::arrayLattice [protected]

Array lattice.

Definition at line 275 of file MosaicFT.h.

Long casa::MosaicFT::cachesize [protected]

Sizes.

Definition at line 265 of file MosaicFT.h.

IPosition casa::MosaicFT::centerLoc [protected]

Useful IPositions.

Definition at line 285 of file MosaicFT.h.

Vector<Int> casa::MosaicFT::convChanMap_p [protected]

Definition at line 320 of file MosaicFT.h.

Array<Complex> casa::MosaicFT::convFunc [protected]

Definition at line 312 of file MosaicFT.h.

Vector<Int> casa::MosaicFT::convPolMap_p [protected]

Definition at line 321 of file MosaicFT.h.

Vector<Int> casa::MosaicFT::convRowMap_p [protected]

Definition at line 319 of file MosaicFT.h.

Definition at line 314 of file MosaicFT.h.

Int casa::MosaicFT::convSize [protected]

Definition at line 315 of file MosaicFT.h.

Vector<Int> casa::MosaicFT::convSizePlanes_p [protected]

Definition at line 318 of file MosaicFT.h.

Int casa::MosaicFT::convSupport [protected]

Definition at line 316 of file MosaicFT.h.

Vector<Int> casa::MosaicFT::convSupportPlanes_p [protected]

Definition at line 317 of file MosaicFT.h.

TempImage<Complex>* casa::MosaicFT::convWeightImage_p [protected]

Definition at line 333 of file MosaicFT.h.

DirectionCoordinate casa::MosaicFT::directionCoord [protected]

Definition at line 299 of file MosaicFT.h.

Definition at line 338 of file MosaicFT.h.

Array<Complex> casa::MosaicFT::griddedWeight [protected]

Array for non-tiled gridding.

Definition at line 291 of file MosaicFT.h.

Array<DComplex> casa::MosaicFT::griddedWeight2 [protected]

Definition at line 292 of file MosaicFT.h.

ConvolveGridder<Double, Complex>* casa::MosaicFT::gridder [protected]

Gridder.

Definition at line 269 of file MosaicFT.h.

LatticeCache<Complex>* casa::MosaicFT::imageCache [protected]

Image cache.

Definition at line 262 of file MosaicFT.h.

Bool casa::MosaicFT::isTiled [protected]

Is this tiled?

Definition at line 272 of file MosaicFT.h.

Int casa::MosaicFT::lastIndex_p [protected]

Definition at line 325 of file MosaicFT.h.

CountedPtr<Lattice<Complex> > casa::MosaicFT::lattice [protected]

Lattice.

For non-tiled gridding, this will point to arrayLattice, whereas for tiled gridding, this points to the image

Definition at line 279 of file MosaicFT.h.

String casa::MosaicFT::machineName_p [protected]

Later this.

Definition at line 337 of file MosaicFT.h.

Float casa::MosaicFT::maxAbsData [protected]

Definition at line 282 of file MosaicFT.h.

MSAntennaColumns* casa::MosaicFT::msac [protected]

Antenna columns.

Definition at line 297 of file MosaicFT.h.

MSPointingColumns* casa::MosaicFT::mspc [protected]

Pointing columns.

Definition at line 294 of file MosaicFT.h.

IPosition casa::MosaicFT::offsetLoc [protected]

Definition at line 285 of file MosaicFT.h.

Definition at line 334 of file MosaicFT.h.

CountedPtr<UVWMachine> casa::MosaicFT::phaseShifter_p [protected]

Definition at line 335 of file MosaicFT.h.

Finalize transform to Sky casa::MosaicFT::plane

Definition at line 172 of file MosaicFT.h.

MDirection::Convert* casa::MosaicFT::pointingToImage [protected]

Definition at line 301 of file MosaicFT.h.

Definition at line 307 of file MosaicFT.h.

Vector<SkyJones *> sj_p;.

Reimplemented from casa::FTMachine.

Definition at line 246 of file MosaicFT.h.

CountedPtr<TempImage<Float> > casa::MosaicFT::skyCoverage_p [protected]

Definition at line 332 of file MosaicFT.h.

String casa::MosaicFT::stokes_p [protected]

Definition at line 339 of file MosaicFT.h.

Int casa::MosaicFT::tilesize [protected]

Definition at line 266 of file MosaicFT.h.

Bool casa::MosaicFT::usezero_p [protected]

Grid/degrid zero spacing points?

Definition at line 310 of file MosaicFT.h.

Vector<Double> casa::MosaicFT::uvOffset [protected]

Definition at line 288 of file MosaicFT.h.

Vector<Double> casa::MosaicFT::uvScale [protected]

Image Scaling and offset.

Definition at line 288 of file MosaicFT.h.

Int casa::MosaicFT::wConvSize [protected]

Definition at line 323 of file MosaicFT.h.

Array<Complex> casa::MosaicFT::weightConvFunc_p [protected]

Definition at line 313 of file MosaicFT.h.

CountedPtr<Lattice<Complex> > casa::MosaicFT::weightLattice [protected]

Definition at line 280 of file MosaicFT.h.

MDirection casa::MosaicFT::worldPosMeas [protected]

Definition at line 305 of file MosaicFT.h.

Vector<Double> casa::MosaicFT::xyPos [protected]

Definition at line 303 of file MosaicFT.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