casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
casa::MosaicFT Class Reference

#include <MosaicFT.h>

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

Public Member Functions

 MosaicFT (SkyJones *sj, casacore::MPosition mloc, casacore::String stokes, casacore::Long cachesize, casacore::Int tilesize=16, casacore::Bool usezero=true, casacore::Bool useDoublePrec=false)
 Constructor: cachesize is the size of the cache in words (e.g. More...
 
 MosaicFT (const casacore::RecordInterface &stateRec)
 Construct from a casacore::Record containing the MosaicFT state. More...
 
 MosaicFT (const MosaicFT &other)
 Copy constructor–convolution function is referenced. More...
 
MosaicFToperator= (const MosaicFT &other)
 Assignment operator – convolution function is referenced. More...
 
 ~MosaicFT ()
 
void initializeToVis (casacore::ImageInterface< casacore::Complex > &image, const VisBuffer &vb)
 Initialize transform to Visibility plane using the image as a template. More...
 
void finalizeToVis ()
 Finalize transform to Visibility plane: flushes the image cache and shows statistics if it is being used. More...
 
void initializeToSky (casacore::ImageInterface< casacore::Complex > &image, casacore::Matrix< casacore::Float > &weight, const VisBuffer &vb)
 Initialize transform to Sky plane: initializes the image. More...
 
void get (VisBuffer &vb, casacore::Int row=-1)
 Get actual coherence from grid by degridding. More...
 
void put (const VisBuffer &vb, casacore::Int row=-1, casacore::Bool dopsf=false, FTMachine::Type type=FTMachine::OBSERVED)
 Put coherence to grid by gridding. More...
 
void makeImage (FTMachine::Type type, VisSet &vs, casacore::ImageInterface< casacore::Complex > &image, casacore::Matrix< casacore::Float > &weight)
 Make the entire image. More...
 
casacore::ImageInterface
< casacore::Complex > & 
getImage (casacore::Matrix< casacore::Float > &, casacore::Bool normalize=true)
 Get the final image: do the Fourier transform and grid-correct, then optionally normalize by the summed weights. More...
 
virtual void normalizeImage (casacore::Lattice< casacore::Complex > &, const casacore::Matrix< casacore::Double > &, casacore::Lattice< casacore::Float > &, casacore::Bool)
 
void getWeightImage (casacore::ImageInterface< casacore::Float > &, casacore::Matrix< casacore::Float > &)
 Get the final weights image. More...
 
virtual void getFluxImage (casacore::ImageInterface< casacore::Float > &image)
 Get a flux (divide by this to get a flux density correct image) image if there is one. More...
 
casacore::Bool toRecord (casacore::String &error, casacore::RecordInterface &outRec, casacore::Bool withImage=false, const casacore::String diskimage="")
 Save and restore the MosaicFT to and from a record. More...
 
casacore::Bool fromRecord (casacore::String &error, const casacore::RecordInterface &inRec)
 
casacore::Bool isFourier ()
 Can this FTMachine be represented by Fourier convolutions? More...
 
virtual casacore::String name () const
 Return name of this machine. More...
 
virtual casacore::Bool useWeightImage ()
 All FTMachines that fill weightimage, need to set this. More...
 
void setConvFunc (casacore::CountedPtr< SimplePBConvFunc > &pbconvFunc)
 Copy convolution function etc to another FT machine necessary if ft and ift are distinct but can share convfunctions. More...
 
casacore::CountedPtr
< SimplePBConvFunc > & 
getConvFunc ()
 
casacore::CountedPtr
< casacore::TempImage
< casacore::Float > > & 
getConvWeightImage ()
 
virtual void reset ()
 reset weight image More...
 
virtual void setMiscInfo (const casacore::Int qualifier)
 set the order of the Taylor term for MFS this is to tell A-casacore::Projection to qualify the accumulated avgPB for each Taylor term in the CFCache. More...
 
virtual void ComputeResiduals (VisBuffer &, casacore::Bool)
 Make the VB and VBStore interefaces for the interim re-factoring work. More...
 
- Public Member Functions inherited from casa::FTMachine
 FTMachine ()
 
 FTMachine (casacore::CountedPtr< CFCache > &cfcache, casacore::CountedPtr< ConvolutionFunction > &cfctor)
 
 FTMachine (const FTMachine &other)
 
FTMachineoperator= (const FTMachine &other)
 
void setBasePrivates (const FTMachine &other)
 
virtual ~FTMachine ()
 
virtual FTMachinecloneFTM ()
 clone copy the default cloner clones via a Record copy More...
 
virtual void initializeToVis (casacore::Block< casacore::CountedPtr< casacore::ImageInterface< casacore::Complex > > > &compImageVec, casacore::PtrBlock< casacore::SubImage< casacore::Float > * > &modelImageVec, casacore::PtrBlock< casacore::SubImage< casacore::Float > * > &weightImageVec, casacore::PtrBlock< casacore::SubImage< casacore::Float > * > &fluxScaleVec, casacore::Block< casacore::Matrix< casacore::Float > > &weightsVec, const VisBuffer &vb)
 Vectorized InitializeToVis. More...
 
virtual void initializeToVisNew (const VisBuffer &vb, casacore::CountedPtr< SIImageStore > imstore)
 
virtual void initializeToSky (casacore::Block< casacore::CountedPtr< casacore::ImageInterface< casacore::Complex > > > &compImageVec, casacore::Block< casacore::Matrix< casacore::Float > > &weightsVec, const VisBuffer &vb, const casacore::Bool dopsf=false)
 Vectorized InitializeToSky. More...
 
virtual void initializeToSkyNew (const casacore::Bool dopsf, const VisBuffer &vb, casacore::CountedPtr< SIImageStore > imstore)
 
virtual void finalizeToSky ()=0
 

Finalize transform to Sky plane More...

 
virtual void finalizeToSky (casacore::ImageInterface< casacore::Complex > &iimage)
 
virtual void finalizeToSky (casacore::Block< casacore::CountedPtr< casacore::ImageInterface< casacore::Complex > > > &compImageVec, casacore::PtrBlock< casacore::SubImage< casacore::Float > * > &resImageVec, casacore::PtrBlock< casacore::SubImage< casacore::Float > * > &weightImageVec, casacore::PtrBlock< casacore::SubImage< casacore::Float > * > &fluxScaleVec, casacore::Bool dopsf, casacore::Block< casacore::Matrix< casacore::Float > > &weightsVec, const VisBuffer &vb)
 Vectorized finalizeToSky. More...
 
virtual void finalizeToSkyNew (casacore::Bool dopsf, const VisBuffer &vb, casacore::CountedPtr< SIImageStore > imstore)
 
virtual void put (VisBuffer &vb, casacore::Int row=-1, casacore::Bool dopsf=false, FTMachine::Type type=FTMachine::OBSERVED)
 Non const vb version - so that weights can be modified in-place Currently, used only by MultiTermFT. More...
 
virtual void correlationToStokes (casacore::ImageInterface< casacore::Complex > &compImage, casacore::ImageInterface< casacore::Float > &resImage, const casacore::Bool dopsf)
 
More...
 
virtual void stokesToCorrelation (casacore::ImageInterface< casacore::Float > &modelImage, casacore::ImageInterface< casacore::Complex > &compImage)
 
virtual void normalizeImage (casacore::ImageInterface< casacore::Float > &skyImage, casacore::Matrix< casacore::Float > &sumOfWts, casacore::ImageInterface< casacore::Float > &sensitivityImage, casacore::Bool dopsf, casacore::Float pblimit, casacore::Int normtype)
 
virtual casacore::Bool isSkyJonesSet ()
 
virtual casacore::Bool isSkyJonesChanged (VisBuffer &vb, casacore::Int row)
 
virtual void setSkyJones (casacore::Vector< casacore::CountedPtr< SkyJones > > &sj)
 Set SkyJones if image domain corrections /applycation are needed To reset the the FTMachine for stopping image based correction/applycation set in a casacore::Vector of size 0. More...
 
casacore::Bool changedSkyJonesLogic (const VisBuffer &vb, casacore::Bool &firstRow, casacore::Bool &internalRow)
 
template<typename T >
void getGrid (casacore::Array< T > &thegrid)
 
More...
 
virtual const
casacore::CountedPtr
< ConvolutionFunction > & 
getAWConvFunc ()
 
virtual void makeImage (FTMachine::Type type, ROVisibilityIterator &vi, casacore::ImageInterface< casacore::Complex > &image, casacore::Matrix< casacore::Float > &weight)
 Make the entire image using a ROVisIter. More...
 
void girarUVW (casacore::Matrix< casacore::Double > &uvw, casacore::Vector< casacore::Double > &dphase, const VisBuffer &vb)
 
More...
 
void rotateUVW (casacore::Matrix< casacore::Double > &uvw, casacore::Vector< casacore::Double > &dphase, const VisBuffer &vb)
 
void refocus (casacore::Matrix< casacore::Double > &uvw, const casacore::Vector< casacore::Int > &ant1, const casacore::Vector< casacore::Int > &ant2, casacore::Vector< casacore::Double > &dphase, const VisBuffer &vb)
 Refocus on a finite distance. More...
 
virtual casacore::Bool changed (const VisBuffer &vb)
 Has this operator changed since the last application? More...
 
casacore::Bool setSpw (casacore::Vector< casacore::Int > &spw, casacore::Bool validFrame)
 set spw for cube that will be used; More...
 
virtual casacore::Bool doublePrecGrid ()
 return whether the ftmachine is using a double precision grid More...
 
virtual void setNoPadding (casacore::Bool nopad)
 To make sure no padding is used in certain gridders. More...
 
void setLocation (const casacore::MPosition &loc)
 set and get the location used for frame More...
 
casacore::MPositiongetLocation ()
 
virtual void setMovingSource (const casacore::String &sourcename)
 set a moving source aka planets or comets => adjust phase center on the fly for gridding More...
 
virtual void setMovingSource (const casacore::MDirection &mdir)
 
void setPhaseCenterTime (const casacore::Double time)
 set and get Time to calculate phasecenter -1.0 means using the time available at each iteration..this is used when the phasecenter in the field table is either a polynomial or has a ephemerides tables associated with it Using double in the units and epoch-frame of the ms(s)..caller is responsible for conversion More...
 
casacore::Double getPhaseCenterTime ()
 
virtual void setFreqInterpolation (const casacore::String &method)
 set frequency interpolation type More...
 
virtual void setPointingDirColumn (const casacore::String &column="DIRECTION")
 tell ftmachine which Pointing table column to use for Direction Mosaic or Single dish ft use this for example More...
 
virtual casacore::String getPointingDirColumnInUse ()
 
virtual void setSpwChanSelection (const casacore::Cube< casacore::Int > &spwchansels)
 
virtual casacore::Cube
< casacore::Int
getSpwChanSelection ()
 
virtual void setSpwFreqSelection (const casacore::Matrix< casacore::Double > &spwfreqs)
 
virtual casacore::Matrix
< casacore::Double
getSpwFreqSelection ()
 
virtual void setCanComputeResiduals (casacore::Bool &b)
 
virtual casacore::Bool canComputeResiduals ()
 
virtual casacore::Float getPBLimit ()
 
void setnumthreads (casacore::Int n)
 virtual void ComputeResiduals(VBStore& vb)=0; get and set numthreads More...
 
casacore::Int getnumthreads ()
 
virtual void setCFCache (casacore::CountedPtr< CFCache > &cfc, const casacore::Bool resetCFC=true)
 
casacore::CountedPtr< CFCachegetCFCache ()
 
casacore::String getCacheDir ()
 
virtual void setDryRun (casacore::Bool val)
 
virtual casacore::Bool dryRun ()
 
virtual casacore::Bool isUsingCFCache ()
 

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()
 
- Public Attributes inherited from casa::FTMachine
casacore::Bool isDryRun
 

Protected Member Functions

casacore::Int nint (casacore::Double val)
 
void findConvFunction (const casacore::ImageInterface< casacore::Complex > &image, const VisBuffer &vb)
 Find the convolution function. More...
 
void addBeamCoverage (casacore::ImageInterface< casacore::Complex > &image)
 void girarUVW(casacore::Matrix<casacore::Double>& uvw, casacore::Vector<casacore::Double>& dphase, const VisBuffer& vb); More...
 
void prepGridForDegrid ()
 
casacore::Array
< casacore::Complex > * 
getDataPointer (const casacore::IPosition &, casacore::Bool)
 Get the appropriate data pointer. More...
 
void ok ()
 
void init ()
 
casacore::Bool recordOnGrid (const VisBuffer &vb, casacore::Int rownr) const
 Is this record on Grid? check both ends. More...
 
casacore::Int getIndex (const casacore::ROMSPointingColumns &mspc, const casacore::Double &time, const casacore::Double &interval)
 
casacore::Bool getXYPos (const VisBuffer &vb, casacore::Int row)
 
- Protected Member Functions inherited from casa::FTMachine
casacore::LogIOlogIO ()
 
virtual void initMaps (const VisBuffer &vb)
 
virtual void initPolInfo (const VisBuffer &vb)
 
virtual void gridOk (casacore::Int gridsupport)
 check if image is big enough for gridding More...
 
casacore::Bool matchChannel (const casacore::Int &spw, const VisBuffer &vb)
 
casacore::Bool matchAllSpwChans (const VisBuffer &vb)
 redo all spw chan match especially if ms has changed underneath More...
 
virtual casacore::Bool interpolateFrequencyTogrid (const VisBuffer &vb, const casacore::Matrix< casacore::Float > &wt, casacore::Cube< casacore::Complex > &data, casacore::Cube< casacore::Int > &flag, casacore::Matrix< casacore::Float > &weight, FTMachine::Type type=FTMachine::OBSERVED)
 interpolate visibility data of vb to grid frequency definition flag will be set the one as described in interpolateArray1D return false if no interpolation is done...for e.g for nearest case More...
 
virtual casacore::Bool interpolateFrequencyFromgrid (VisBuffer &vb, casacore::Cube< casacore::Complex > &data, FTMachine::Type type=FTMachine::MODEL)
 degridded data interpolated back onto visibilities More...
 
virtual void getInterpolateArrays (const VisBuffer &vb, casacore::Cube< casacore::Complex > &data, casacore::Cube< casacore::Int > &flag)
 Interpolate visibilities to be degridded upon. More...
 
void setSpectralFlag (const VisBuffer &vb, casacore::Cube< casacore::Bool > &modflagcube)
 
casacore::Bool saveMeasure (casacore::RecordInterface &rec, const casacore::String &name, casacore::String &error, const casacore::Measure &ms)
 helper to save Measures in a record More...
 

Protected Attributes

SkyJonessj_p
 
casacore::LatticeCache
< casacore::Complex > * 
imageCache
 Image cache. More...
 
casacore::Long cachesize
 Sizes. More...
 
casacore::Int tilesize
 
casacore::ConvolveGridder
< casacore::Double,
casacore::Complex > * 
gridder
 Gridder. More...
 
casacore::Bool isTiled
 Is this tiled? More...
 
casacore::CountedPtr
< casacore::Lattice
< casacore::Complex > > 
arrayLattice
 casacore::Array lattice More...
 
casacore::CountedPtr
< casacore::Lattice
< casacore::Complex > > 
lattice
 Lattice. More...
 
casacore::CountedPtr
< casacore::Lattice
< casacore::Complex > > 
weightLattice
 
casacore::Float maxAbsData
 
casacore::IPosition centerLoc
 Useful IPositions. More...
 
casacore::IPosition offsetLoc
 
casacore::Vector
< casacore::Double
uvScale
 Image Scaling and offset. More...
 
casacore::Vector
< casacore::Double
uvOffset
 
casacore::Array
< casacore::Complex > 
griddedWeight
 casacore::Array for non-tiled gridding More...
 
casacore::Array
< casacore::DComplex > 
griddedWeight2
 
casacore::MSPointingColumnsmspc
 Pointing columns. More...
 
casacore::MSAntennaColumnsmsac
 Antenna columns. More...
 
casacore::DirectionCoordinate directionCoord
 
casacore::MDirection::ConvertpointingToImage
 
casacore::Vector
< casacore::Double
xyPos
 
casacore::MDirection worldPosMeas
 
casacore::Int priorCacheSize
 
casacore::Bool usezero_p
 Grid/degrid zero spacing points? More...
 
casacore::Array
< casacore::Complex > 
convFunc
 
casacore::Array
< casacore::Complex > 
weightConvFunc_p
 
casacore::Int convSampling
 
casacore::Int convSize
 
casacore::Int convSupport
 
casacore::Vector< casacore::IntconvSupportPlanes_p
 
casacore::Vector< casacore::IntconvSizePlanes_p
 
casacore::Vector< casacore::IntconvRowMap_p
 
casacore::Vector< casacore::IntconvChanMap_p
 
casacore::Vector< casacore::IntconvPolMap_p
 
casacore::Int wConvSize
 
casacore::Int lastIndex_p
 
casacore::CountedPtr
< casacore::TempImage
< casacore::Float > > 
skyCoverage_p
 
casacore::TempImage
< casacore::Complex > * 
convWeightImage_p
 
casacore::CountedPtr
< SimplePBConvFunc
pbConvFunc_p
 
casacore::String machineName_p
 Later this. More...
 
casacore::Bool doneWeightImage_p
 
casacore::String stokes_p
 
- Protected Attributes inherited from casa::FTMachine
casacore::LogIO logIO_p
 
casacore::ImageInterface
< casacore::Complex > * 
image
 
casacore::UVWMachineuvwMachine_p
 
casacore::CountedPtr
< casacore::UVWMachine
phaseShifter_p
 
casacore::MeasFrame mFrame_p
 
casacore::Bool tangentSpecified_p
 Direction of desired tangent plane. More...
 
casacore::MDirection mTangent_p
 
casacore::MDirection mImage_p
 
casacore::MDirection movingDir_p
 moving source stuff More...
 
casacore::Bool fixMovingSource_p
 
casacore::MDirection firstMovingDir_p
 
casacore::Double distance_p
 
casacore::uInt nAntenna_p
 
casacore::Int lastFieldId_p
 
casacore::Int lastMSId_p
 
casacore::Bool useDoubleGrid_p
 Use douple precision grid in gridding process. More...
 
casacore::Matrix
< casacore::Double
sumWeight
 Sum of weights per polarization and per chan. More...
 
casacore::Matrix
< casacore::Double
sumCFWeight
 
casacore::Int nx
 Sizes. More...
 
casacore::Int ny
 
casacore::Int npol
 
casacore::Int nchan
 
casacore::Int nvischan
 
casacore::Int nvispol
 
casacore::Vector< casacore::IntchanMap
 Maps of channels and polarization. More...
 
casacore::Vector< casacore::IntpolMap
 
casacore::Bool isIOnly
 Is casacore::Stokes I only? iso XX,XY,YX,YY or LL,LR,RL,RR. More...
 
casacore::MPosition mLocation_p
 Default Position used for phase rotations. More...
 
casacore::Bool doUVWRotation_p
 Set if uvwrotation is necessary. More...
 
casacore::Block
< casacore::Vector
< casacore::Int > > 
multiChanMap_p
 setup multiple spectral window for cubes More...
 
casacore::Vector< casacore::IntselectedSpw_p
 
casacore::Vector< casacore::IntnVisChan_p
 
casacore::SpectralCoordinate spectralCoord_p
 Private variables needed for spectral frame conversion. More...
 
casacore::Vector< casacore::BooldoConversion_p
 
casacore::Bool freqFrameValid_p
 
casacore::Vector
< casacore::Double
imageFreq_p
 
casacore::Vector
< casacore::Double
lsrFreq_p
 casacore::Vector of float lsrfreq needed for regridding More...
 
casacore::Vector
< casacore::Double
interpVisFreq_p
 
casacore::InterpolateArray1D
< casacore::Double,
casacore::Complex >
::InterpolationMethod 
freqInterpMethod_p
 
casacore::String pointingDirCol_p
 
casacore::Cube< casacore::IntspwChanSelFlag_p
 
casacore::Matrix
< casacore::Double
spwFreqSel_p
 
casacore::Matrix
< casacore::Double
expandedSpwFreqSel_p
 
casacore::Matrix
< casacore::Double
expandedSpwConjFreqSel_p
 
casacore::Vector< casacore::IntcfStokes_p
 
casacore::Int polInUse_p
 
casacore::CountedPtr< CFCachecfCache_p
 
CFStore cfs_p
 
CFStore cfwts_p
 
casacore::CountedPtr< CFStore2cfs2_p
 
casacore::CountedPtr< CFStore2cfwts2_p
 
casacore::CountedPtr
< ConvolutionFunction
convFuncCtor_p
 
casacore::CountedPtr
< PolOuterProduct
pop_p
 
casacore::Bool canComputeResiduals_p
 
casacore::Bool toVis_p
 
casacore::Int numthreads_p
 
casacore::Array
< casacore::Complex > 
griddedData
 casacore::Array for non-tiled gridding These are common to most FTmachines More...
 
casacore::Array
< casacore::DComplex > 
griddedData2
 
casacore::Float pbLimit_p
 
casacore::Vector
< casacore::CountedPtr
< SkyJones > > 
sj_p
 casacore::Vector<SkyJones *> sj_p; More...
 
casacore::CountedPtr
< casacore::ImageInterface
< casacore::Complex > > 
cmplxImage_p
 A holder for the complex image if nobody else is keeping it. More...
 
FFT2D ft_p
 
casacore::Double phaseCenterTime_p
 

Additional Inherited Members

- Public Types inherited from casa::FTMachine
enum  Type {
  OBSERVED,
  MODEL,
  CORRECTED,
  RESIDUAL,
  PSF,
  COVERAGE,
  N_types,
  DEFAULT
}
 Types of known Images that may be made using the makeImage method. More...
 
- Static Public Member Functions inherited from casa::FTMachine
static void locateuvw (const casacore::Double *&uvw, const casacore::Double *&dphase, const casacore::Double *&freq, const casacore::Int &nchan, const casacore::Double *&scale, const casacore::Double *&offset, const casacore::Int &sampling, casacore::Int *&loc, casacore::Int *&off, casacore::Complex *&phasor, const casacore::Int &row, const casacore::Bool &doW=false)
 helper function for openmp to call...no private dependency More...
 

Detailed Description

Definition at line 135 of file MosaicFT.h.

Constructor & Destructor Documentation

casa::MosaicFT::MosaicFT ( SkyJones sj,
casacore::MPosition  mloc,
casacore::String  stokes,
casacore::Long  cachesize,
casacore::Int  tilesize = 16,
casacore::Bool  usezero = true,
casacore::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 casacore::RecordInterface stateRec)

Construct from a casacore::Record containing the MosaicFT state.

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

Copy constructor–convolution function is referenced.

casa::MosaicFT::~MosaicFT ( )

Member Function Documentation

void casa::MosaicFT::addBeamCoverage ( casacore::ImageInterface< casacore::Complex > &  image)
protected

void girarUVW(casacore::Matrix<casacore::Double>& uvw, casacore::Vector<casacore::Double>& dphase, const VisBuffer& vb);

virtual void casa::MosaicFT::ComputeResiduals ( VisBuffer vb,
casacore::Bool  useCorrected 
)
inlinevirtual

Make the VB and VBStore interefaces for the interim re-factoring work.

Finally removed the VB interface.

Implements casa::FTMachine.

Definition at line 235 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 casacore::ImageInterface< casacore::Complex > &  image,
const VisBuffer vb 
)
protectedvirtual

Find the convolution function.

Reimplemented from casa::FTMachine.

casacore::Bool casa::MosaicFT::fromRecord ( casacore::String error,
const casacore::RecordInterface inRec 
)
virtual

Reimplemented from casa::FTMachine.

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

Get actual coherence from grid by degridding.

Implements casa::FTMachine.

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

Get the appropriate data pointer.

virtual void casa::MosaicFT::getFluxImage ( casacore::ImageInterface< casacore::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.

casacore::ImageInterface<casacore::Complex>& casa::MosaicFT::getImage ( casacore::Matrix< casacore::Float > &  ,
casacore::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.

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

Get the final weights image.

Implements casa::FTMachine.

Reimplemented in casa::MosaicFTNew.

casacore::Bool casa::MosaicFT::getXYPos ( const VisBuffer vb,
casacore::Int  row 
)
protected
void casa::MosaicFT::init ( )
protected
void casa::MosaicFT::initializeToSky ( casacore::ImageInterface< casacore::Complex > &  image,
casacore::Matrix< casacore::Float > &  weight,
const VisBuffer vb 
)
virtual

Initialize transform to Sky plane: initializes the image.

Implements casa::FTMachine.

void casa::MosaicFT::initializeToVis ( casacore::ImageInterface< casacore::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.

casacore::Bool casa::MosaicFT::isFourier ( )
inlinevirtual

Can this FTMachine be represented by Fourier convolutions?

Reimplemented from casa::FTMachine.

Definition at line 216 of file MosaicFT.h.

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

Make the entire image.

Reimplemented from casa::FTMachine.

virtual casacore::String casa::MosaicFT::name ( ) const
virtual

Return name of this machine.

Implements casa::FTMachine.

Reimplemented in casa::MosaicFTNew.

casacore::Int casa::MosaicFT::nint ( casacore::Double  val)
inlineprotected

Definition at line 239 of file MosaicFT.h.

References casacore::floor().

virtual void casa::MosaicFT::normalizeImage ( casacore::Lattice< casacore::Complex > &  ,
const casacore::Matrix< casacore::Double > &  ,
casacore::Lattice< casacore::Float > &  ,
casacore::Bool   
)
inlinevirtual

Reimplemented from casa::FTMachine.

Definition at line 195 of file MosaicFT.h.

void casa::MosaicFT::ok ( )
protectedvirtual

Reimplemented from casa::FTMachine.

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

Assignment operator – convolution function is referenced.

void casa::MosaicFT::prepGridForDegrid ( )
protected
void casa::MosaicFT::put ( const VisBuffer vb,
casacore::Int  row = -1,
casacore::Bool  dopsf = false,
FTMachine::Type  type = FTMachine::OBSERVED 
)
virtual

Put coherence to grid by gridding.

Implements casa::FTMachine.

casacore::Bool casa::MosaicFT::recordOnGrid ( const VisBuffer vb,
casacore::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 ( casacore::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 casacore::Int  qualifier)
inlinevirtual

set the order of the Taylor term for MFS this is to tell A-casacore::Projection to qualify the accumulated avgPB for each Taylor term in the CFCache.

Implements casa::FTMachine.

Definition at line 234 of file MosaicFT.h.

casacore::Bool casa::MosaicFT::toRecord ( casacore::String error,
casacore::RecordInterface outRec,
casacore::Bool  withImage = false,
const casacore::String  diskimage = "" 
)
virtual

Save and restore the MosaicFT to and from a record.

Reimplemented from casa::FTMachine.

virtual casacore::Bool casa::MosaicFT::useWeightImage ( )
inlinevirtual

All FTMachines that fill weightimage, need to set this.

TODO : Make this pure virtual.

Reimplemented from casa::FTMachine.

Definition at line 221 of file MosaicFT.h.

Member Data Documentation

casacore::CountedPtr<casacore::Lattice<casacore::Complex> > casa::MosaicFT::arrayLattice
protected

casacore::Array lattice

Definition at line 280 of file MosaicFT.h.

casacore::Long casa::MosaicFT::cachesize
protected

Sizes.

Definition at line 270 of file MosaicFT.h.

casacore::IPosition casa::MosaicFT::centerLoc
protected

Useful IPositions.

Definition at line 290 of file MosaicFT.h.

casacore::Vector<casacore::Int> casa::MosaicFT::convChanMap_p
protected

Definition at line 325 of file MosaicFT.h.

casacore::Array<casacore::Complex> casa::MosaicFT::convFunc
protected

Definition at line 317 of file MosaicFT.h.

casacore::Vector<casacore::Int> casa::MosaicFT::convPolMap_p
protected

Definition at line 326 of file MosaicFT.h.

casacore::Vector<casacore::Int> casa::MosaicFT::convRowMap_p
protected

Definition at line 324 of file MosaicFT.h.

casacore::Int casa::MosaicFT::convSampling
protected

Definition at line 319 of file MosaicFT.h.

casacore::Int casa::MosaicFT::convSize
protected

Definition at line 320 of file MosaicFT.h.

casacore::Vector<casacore::Int> casa::MosaicFT::convSizePlanes_p
protected

Definition at line 323 of file MosaicFT.h.

casacore::Int casa::MosaicFT::convSupport
protected

Definition at line 321 of file MosaicFT.h.

casacore::Vector<casacore::Int> casa::MosaicFT::convSupportPlanes_p
protected

Definition at line 322 of file MosaicFT.h.

casacore::TempImage<casacore::Complex>* casa::MosaicFT::convWeightImage_p
protected

Definition at line 339 of file MosaicFT.h.

casacore::DirectionCoordinate casa::MosaicFT::directionCoord
protected

Definition at line 304 of file MosaicFT.h.

casacore::Bool casa::MosaicFT::doneWeightImage_p
protected

Definition at line 343 of file MosaicFT.h.

casacore::Array<casacore::Complex> casa::MosaicFT::griddedWeight
protected

casacore::Array for non-tiled gridding

Definition at line 296 of file MosaicFT.h.

casacore::Array<casacore::DComplex> casa::MosaicFT::griddedWeight2
protected

Definition at line 297 of file MosaicFT.h.

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

Gridder.

Definition at line 274 of file MosaicFT.h.

casacore::LatticeCache<casacore::Complex>* casa::MosaicFT::imageCache
protected

Image cache.

Definition at line 267 of file MosaicFT.h.

casacore::Bool casa::MosaicFT::isTiled
protected

Is this tiled?

Definition at line 277 of file MosaicFT.h.

casacore::Int casa::MosaicFT::lastIndex_p
protected

Definition at line 330 of file MosaicFT.h.

casacore::CountedPtr<casacore::Lattice<casacore::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 284 of file MosaicFT.h.

casacore::String casa::MosaicFT::machineName_p
protected

Later this.

Definition at line 342 of file MosaicFT.h.

casacore::Float casa::MosaicFT::maxAbsData
protected

Definition at line 287 of file MosaicFT.h.

casacore::MSAntennaColumns* casa::MosaicFT::msac
protected

Antenna columns.

Definition at line 302 of file MosaicFT.h.

casacore::MSPointingColumns* casa::MosaicFT::mspc
protected

Pointing columns.

Definition at line 299 of file MosaicFT.h.

casacore::IPosition casa::MosaicFT::offsetLoc
protected

Definition at line 290 of file MosaicFT.h.

casacore::CountedPtr<SimplePBConvFunc> casa::MosaicFT::pbConvFunc_p
protected

Definition at line 340 of file MosaicFT.h.

Finalize transform to Sky casa::MosaicFT::plane

Definition at line 176 of file MosaicFT.h.

casacore::MDirection::Convert* casa::MosaicFT::pointingToImage
protected

Definition at line 306 of file MosaicFT.h.

casacore::Int casa::MosaicFT::priorCacheSize
protected

Definition at line 312 of file MosaicFT.h.

SkyJones* casa::MosaicFT::sj_p
protected

Definition at line 251 of file MosaicFT.h.

casacore::CountedPtr<casacore::TempImage<casacore::Float> > casa::MosaicFT::skyCoverage_p
protected

Definition at line 338 of file MosaicFT.h.

casacore::String casa::MosaicFT::stokes_p
protected

Definition at line 344 of file MosaicFT.h.

casacore::Int casa::MosaicFT::tilesize
protected

Definition at line 271 of file MosaicFT.h.

casacore::Bool casa::MosaicFT::usezero_p
protected

Grid/degrid zero spacing points?

Definition at line 315 of file MosaicFT.h.

casacore::Vector<casacore::Double> casa::MosaicFT::uvOffset
protected

Definition at line 293 of file MosaicFT.h.

casacore::Vector<casacore::Double> casa::MosaicFT::uvScale
protected

Image Scaling and offset.

Definition at line 293 of file MosaicFT.h.

casacore::Int casa::MosaicFT::wConvSize
protected

Definition at line 328 of file MosaicFT.h.

casacore::Array<casacore::Complex> casa::MosaicFT::weightConvFunc_p
protected

Definition at line 318 of file MosaicFT.h.

casacore::CountedPtr<casacore::Lattice<casacore::Complex> > casa::MosaicFT::weightLattice
protected

Definition at line 285 of file MosaicFT.h.

casacore::MDirection casa::MosaicFT::worldPosMeas
protected

Definition at line 310 of file MosaicFT.h.

casacore::Vector<casacore::Double> casa::MosaicFT::xyPos
protected

Definition at line 308 of file MosaicFT.h.


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