casa
5.7.0-16
|
#include <MultiTermFTNew.h>
Protected Member Functions | |
virtual void | initMaps (const VisBuffer &vb) |
have to call the initmaps of subftm More... | |
casacore::CountedPtr< FTMachine > | getNewFTM (const casacore::CountedPtr< FTMachine > &ftm) |
Instantiate a new sub FTM. More... | |
casacore::Bool | modifyVisWeights (VisBuffer &vb, casacore::uInt thisterm) |
Multiply Imaging weights by Taylor-function weights - during "put". More... | |
casacore::Bool | modifyModelVis (VisBuffer &vb, casacore::uInt thisterm) |
Multiply model visibilities by Taylor-function weights - during "get". More... | |
void | restoreImagingWeights (VisBuffer &vb) |
Restore vb.imagingweights to the original. More... | |
casacore::Bool | storeAsImg (casacore::String fileName, casacore::ImageInterface< casacore::Float > &theImg) |
Helper function to write ImageInterfaces to disk. More... | |
Protected Member Functions inherited from casa::FTMachine | |
casacore::LogIO & | logIO () |
virtual void | initPolInfo (const VisBuffer &vb) |
virtual void | ok () |
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... | |
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... | |
Public Attributes inherited from casa::FTMachine | |
casacore::Bool | isDryRun |
Definition at line 56 of file MultiTermFTNew.h.
casa::MultiTermFTNew::MultiTermFTNew | ( | casacore::CountedPtr< FTMachine > & | subftm, |
casacore::Int | nterms = 1 , |
||
casacore::Bool | forward = false |
||
) |
Construct using an existing FT-Machine.
casa::MultiTermFTNew::MultiTermFTNew | ( | const casacore::RecordInterface & | stateRec | ) |
Construct from a casacore::Record containing the MultiTermFTNew state.
casa::MultiTermFTNew::MultiTermFTNew | ( | const MultiTermFTNew & | other | ) |
Copy constructor.
This first calls the default "=" operator, and then instantiates objects for member pointers.
casa::MultiTermFTNew::~MultiTermFTNew | ( | ) |
Destructor.
|
virtual |
clone copy the default cloner clones via a Record copy
Reimplemented from casa::FTMachine.
|
virtual |
Calculate residual visibilities if possible.
The purpose is to allow rGridFT to make this multi-threaded
Implements casa::FTMachine.
|
inlinevirtual |
Called at the end of gridding : subftm->finalizeToSky()
Implements casa::FTMachine.
Definition at line 103 of file MultiTermFTNew.h.
|
virtual |
Reimplemented from casa::FTMachine.
|
virtual |
Called at the end of de-gridding : subftm->finalizeToVis()
Implements casa::FTMachine.
|
virtual |
Reimplemented from casa::FTMachine.
|
virtual |
void normalizeToSky(casacore::ImageInterface<casacore::Complex>& compImage, casacore::ImageInterface<casacore::Float>& resImage, casacore::ImageInterface<casacore::Float>& weightImage, casacore::Bool dopsf, casacore::Matrix<casacore::Float>& weights) {throw(casacore::AipsError("MultiTermFTNew::normalizeToSky should not get called !"));};
Do the degridding via subftm->get() and modify model-visibilities by Taylor-weights
Implements casa::FTMachine.
|
inlinevirtual |
Get the final image: do the Fourier transform grid-correct, then optionally normalize by the summed weights Note : Post-gridding residual-image divisions by PBs will go here.
For now, it just calls subftm->getImage() casacore::ImageInterface<casacore::Complex>& getImage(casacore::Matrix<casacore::Float>& weights, casacore::Bool normalize=true) {return getImage(weights,normalize,0);}; casacore::ImageInterface<casacore::Complex>& getImage(casacore::Matrix<casacore::Float>& weights, casacore::Bool normalize=true, const casacore::Int taylorindex=0);
Implements casa::FTMachine.
Definition at line 145 of file MultiTermFTNew.h.
|
protected |
Instantiate a new sub FTM.
|
inlinevirtual |
Get the final weights image.
Implements casa::FTMachine.
Definition at line 151 of file MultiTermFTNew.h.
References AlwaysAssert, and subftms_p.
|
inlinevirtual |
Called at the start of gridding : subftm->initializeToSky()
Implements casa::FTMachine.
Definition at line 91 of file MultiTermFTNew.h.
|
virtual |
|
inlinevirtual |
Called at the start of de-gridding : subftm->initializeToVis() Note : Pre-de-gridding model-image divisions by PBs will go here.
Implements casa::FTMachine.
Definition at line 77 of file MultiTermFTNew.h.
|
virtual |
Reimplemented from casa::FTMachine.
|
protectedvirtual |
have to call the initmaps of subftm
Reimplemented from casa::FTMachine.
|
inlinevirtual |
Various small inline functions.
Reimplemented from casa::FTMachine.
Definition at line 162 of file MultiTermFTNew.h.
|
inlinevirtual |
Reimplemented from casa::FTMachine.
Definition at line 183 of file MultiTermFTNew.h.
References isUsingCFCache(), and subftms_p.
Referenced by isUsingCFCache().
|
virtual |
Make an image : subftm->makeImage()
Reimplemented from casa::FTMachine.
|
protected |
Multiply model visibilities by Taylor-function weights - during "get".
|
protected |
Multiply Imaging weights by Taylor-function weights - during "put".
|
inlinevirtual |
Return the name of the machine.
Implements casa::FTMachine.
Definition at line 164 of file MultiTermFTNew.h.
References machineName_p.
MultiTermFTNew& casa::MultiTermFTNew::operator= | ( | const MultiTermFTNew & | other | ) |
Assignment operator — leave it as the default.
|
inline |
Definition at line 167 of file MultiTermFTNew.h.
References casacore::nelements(), and subftms_p.
|
virtual |
Modify imaging weights with Taylor-weights and do gridding via subftm->put()
Reimplemented from casa::FTMachine.
|
inlinevirtual |
Have a const version for compatibility with other FTMs.
. Throw an exception if called.
Implements casa::FTMachine.
Definition at line 123 of file MultiTermFTNew.h.
|
protected |
Restore vb.imagingweights to the original.
|
inlinevirtual |
cerr << "MTFTMN: " << isDryRun << endl;
Reimplemented from casa::FTMachine.
Definition at line 176 of file MultiTermFTNew.h.
References casa::FTMachine::isDryRun, and subftms_p.
|
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 165 of file MultiTermFTNew.h.
|
inlinevirtual |
To make sure no padding is used in certain gridders.
Reimplemented from casa::FTMachine.
Definition at line 163 of file MultiTermFTNew.h.
References subftms_p.
|
protected |
Helper function to write ImageInterfaces to disk.
|
virtual |
{throw(casacore::AipsError("MultiTermFTNew::getWeightImage() should not be called"));}
Save and restore the MultiTermFTNew to and from a record
Reimplemented from casa::FTMachine.
|
inlinevirtual |
All FTMachines that fill weightimage, need to set this.
TODO : Make this pure virtual.
Reimplemented from casa::FTMachine.
Definition at line 148 of file MultiTermFTNew.h.
References AlwaysAssert, and subftms_p.
|
protected |
Definition at line 207 of file MultiTermFTNew.h.
|
protected |
Definition at line 208 of file MultiTermFTNew.h.
Referenced by name().
|
protected |
Definition at line 202 of file MultiTermFTNew.h.
|
protected |
Definition at line 205 of file MultiTermFTNew.h.
|
protected |
Definition at line 205 of file MultiTermFTNew.h.
|
protected |
Definition at line 206 of file MultiTermFTNew.h.
|
protected |
casacore::Bool donePSF_p;
Definition at line 212 of file MultiTermFTNew.h.
Referenced by getWeightImage(), isUsingCFCache(), printFTTypes(), setDryRun(), setNoPadding(), and useWeightImage().