#include <MultiTermFTNew.h>
Public Member Functions | |
| MultiTermFTNew (CountedPtr< FTMachine > &subftm, Int nterms=1, Bool forward=False) | |
| Construct using an existing FT-Machine. | |
| MultiTermFTNew (const RecordInterface &stateRec) | |
| Construct from a Record containing the MultiTermFTNew state. | |
| MultiTermFTNew (const MultiTermFTNew &other) | |
| Copy constructor. | |
| MultiTermFTNew & | operator= (const MultiTermFTNew &other) |
| Assignment operator --- leave it as the default. | |
| ~MultiTermFTNew () | |
| Destructor. | |
| void | initializeToVis (ImageInterface< Complex > &, const VisBuffer &) |
| Called at the start of de-gridding : subftm->initializeToVis() Note : Pre-de-gridding model-image divisions by PBs will go here. | |
| virtual void | initializeToVisNew (const VisBuffer &vb, CountedPtr< SIImageStore > imstore) |
| Vectorized InitializeToVis void initializeToVis(Block<CountedPtr<ImageInterface<Complex> > > & compImageVec,PtrBlock<SubImage<Float> *> & modelImageVec, PtrBlock<SubImage<Float> *>& weightImageVec, PtrBlock<SubImage<Float> *>& fluxScaleVec, Block<Matrix<Float> >& weightsVec, const VisBuffer& vb);. | |
| void | finalizeToVis () |
| Called at the end of de-gridding : subftm->finalizeToVis(). | |
| void | initializeToSky (ImageInterface< Complex > &, Matrix< Float > &, const VisBuffer &) |
| Called at the start of gridding : subftm->initializeToSky(). | |
| virtual void | initializeToSkyNew (const Bool dopsf, const VisBuffer &vb, CountedPtr< SIImageStore > imstore) |
| void initializeToSky(Block<CountedPtr<ImageInterface<Complex> > > & compImageVec, Block<Matrix<Float> >& weightsVec, const VisBuffer& vb, const Bool dopsf); | |
| void | finalizeToSky () |
| Called at the end of gridding : subftm->finalizeToSky(). | |
| virtual void | finalizeToSkyNew (Bool dopsf, const VisBuffer &vb, CountedPtr< SIImageStore > imstore) |
| void finalizeToSky(Block<CountedPtr<ImageInterface<Complex> > > & compImageVec, PtrBlock<SubImage<Float> *> & resImageVec, PtrBlock<SubImage<Float> *>& weightImageVec, PtrBlock<SubImage<Float> *>& fluxScaleVec, Bool dopsf, Block<Matrix<Float> >& weightsVec, const VisBuffer& vb); | |
| void | get (VisBuffer &vb, Int row=-1) |
| void normalizeToSky(ImageInterface<Complex>& compImage, ImageInterface<Float>& resImage, ImageInterface<Float>& weightImage, Bool dopsf, Matrix<Float>& weights) {throw(AipsError("MultiTermFTNew::normalizeToSky should not get called !"));}; | |
| void | put (VisBuffer &vb, Int row=-1, Bool dopsf=False, FTMachine::Type type=FTMachine::OBSERVED) |
| Modify imaging weights with Taylor-weights and do gridding via subftm->put(). | |
| void | put (const VisBuffer &, Int=-1, Bool=False, FTMachine::Type=FTMachine::OBSERVED) |
| Have a const version for compatibility with other FTMs. | |
| virtual void | ComputeResiduals (VisBuffer &vb, Bool useCorrected) |
| Calculate residual visibilities if possible. | |
| void | makeImage (FTMachine::Type type, VisSet &vs, ImageInterface< Complex > &image, Matrix< Float > &weight) |
| Make an image : subftm->makeImage(). | |
| ImageInterface< Complex > & | getImage (Matrix< Float > &, Bool=True) |
| 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. | |
| virtual Bool | useWeightImage () |
| All FTMachines that fill weightimage, need to set this. | |
| void | getWeightImage (ImageInterface< Float > &weightImage, Matrix< Float > &weights) |
| Get the final weights image. | |
| virtual Bool | toRecord (String &error, RecordInterface &outRec, Bool withImage=False, const String diskimage="") |
| {throw(AipsError("MultiTermFTNew::getWeightImage() should not be called"));} | |
| virtual Bool | fromRecord (String &error, const RecordInterface &inRec) |
| virtual Bool | isFourier () |
| Various small inline functions. | |
| virtual void | setNoPadding (Bool nopad) |
| To make sure no padding is used in certain gridders. | |
| virtual String | name () const |
| Return the name of the machine. | |
| 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. | |
| void | printFTTypes () |
| FTMachine * | cloneFTM () |
| clone copy should make it pure virtual forcing every ftm to have a cloner | |
| virtual void | setDryRun (Bool val) |
| virtual Bool | isUsingCFCache () |
Protected Member Functions | |
| virtual void | initMaps (const VisBuffer &vb) |
| have to call the initmaps of subftm | |
| CountedPtr< FTMachine > | getNewFTM (const CountedPtr< FTMachine > &ftm) |
| Instantiate a new sub FTM. | |
| Bool | modifyVisWeights (VisBuffer &vb, uInt thisterm) |
| Multiply Imaging weights by Taylor-function weights - during "put". | |
| Bool | modifyModelVis (VisBuffer &vb, uInt thisterm) |
| Multiply model visibilities by Taylor-function weights - during "get". | |
| void | restoreImagingWeights (VisBuffer &vb) |
| Restore vb.imagingweights to the original. | |
| Bool | storeAsImg (String fileName, ImageInterface< Float > &theImg) |
| Helper function to write ImageInterfaces to disk. | |
Protected Attributes | |
| Cube< Complex > | modviscube_p |
| New MTFT specific internal parameters and functions *uInt | nterms_p |
| New MTFT specific internal parameters and functions *uInt | psfnterms_p |
| Double | reffreq_p |
| Matrix< Float > | imweights_p |
| String | machineName_p |
| Block< CountedPtr< FTMachine > > | subftms_p |
| Bool donePSF_p;. | |
Definition at line 52 of file MultiTermFTNew.h.
| casa::MultiTermFTNew::MultiTermFTNew | ( | CountedPtr< FTMachine > & | subftm, | |
| Int | nterms = 1, |
|||
| Bool | forward = False | |||
| ) |
Construct using an existing FT-Machine.
| casa::MultiTermFTNew::MultiTermFTNew | ( | const RecordInterface & | stateRec | ) |
Construct from a 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.
| FTMachine* casa::MultiTermFTNew::cloneFTM | ( | ) | [virtual] |
clone copy should make it pure virtual forcing every ftm to have a cloner
Reimplemented from casa::FTMachine.
| virtual void casa::MultiTermFTNew::ComputeResiduals | ( | VisBuffer & | vb, | |
| Bool | useCorrected | |||
| ) | [virtual] |
Calculate residual visibilities if possible.
The purpose is to allow rGridFT to make this multi-threaded
Implements casa::FTMachine.
| void casa::MultiTermFTNew::finalizeToSky | ( | ) | [inline, virtual] |
Called at the end of gridding : subftm->finalizeToSky().
Implements casa::FTMachine.
Definition at line 99 of file MultiTermFTNew.h.
| virtual void casa::MultiTermFTNew::finalizeToSkyNew | ( | Bool | dopsf, | |
| const VisBuffer & | vb, | |||
| CountedPtr< SIImageStore > | imstore | |||
| ) | [virtual] |
Reimplemented from casa::FTMachine.
| void casa::MultiTermFTNew::finalizeToVis | ( | ) | [virtual] |
Called at the end of de-gridding : subftm->finalizeToVis().
Implements casa::FTMachine.
| virtual Bool casa::MultiTermFTNew::fromRecord | ( | String & | error, | |
| const RecordInterface & | inRec | |||
| ) | [virtual] |
Reimplemented from casa::FTMachine.
| void casa::MultiTermFTNew::get | ( | VisBuffer & | vb, | |
| Int | row = -1 | |||
| ) | [virtual] |
void normalizeToSky(ImageInterface<Complex>& compImage, ImageInterface<Float>& resImage, ImageInterface<Float>& weightImage, Bool dopsf, Matrix<Float>& weights) {throw(AipsError("MultiTermFTNew::normalizeToSky should not get called !"));};
Do the degridding via subftm->get() and modify model-visibilities by Taylor-weights
Implements casa::FTMachine.
| ImageInterface<Complex>& casa::MultiTermFTNew::getImage | ( | Matrix< Float > & | , | |
| Bool | = True | |||
| ) | [inline, virtual] |
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() ImageInterface<Complex>& getImage(Matrix<Float>& weights, Bool normalize=True) {return getImage(weights,normalize,0);}; ImageInterface<Complex>& getImage(Matrix<Float>& weights, Bool normalize=True, const Int taylorindex=0);
Implements casa::FTMachine.
Definition at line 141 of file MultiTermFTNew.h.
| CountedPtr<FTMachine> casa::MultiTermFTNew::getNewFTM | ( | const CountedPtr< FTMachine > & | ftm | ) | [protected] |
Instantiate a new sub FTM.
| void casa::MultiTermFTNew::getWeightImage | ( | ImageInterface< Float > & | weightImage, | |
| Matrix< Float > & | weights | |||
| ) | [inline, virtual] |
Get the final weights image.
Implements casa::FTMachine.
Definition at line 147 of file MultiTermFTNew.h.
References AlwaysAssert, and subftms_p.
| void casa::MultiTermFTNew::initializeToSky | ( | ImageInterface< Complex > & | , | |
| Matrix< Float > & | , | |||
| const VisBuffer & | ||||
| ) | [inline, virtual] |
Called at the start of gridding : subftm->initializeToSky().
Implements casa::FTMachine.
Definition at line 87 of file MultiTermFTNew.h.
| virtual void casa::MultiTermFTNew::initializeToSkyNew | ( | const Bool | dopsf, | |
| const VisBuffer & | vb, | |||
| CountedPtr< SIImageStore > | imstore | |||
| ) | [virtual] |
| void casa::MultiTermFTNew::initializeToVis | ( | ImageInterface< Complex > & | , | |
| const VisBuffer & | ||||
| ) | [inline, virtual] |
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 73 of file MultiTermFTNew.h.
| virtual void casa::MultiTermFTNew::initializeToVisNew | ( | const VisBuffer & | vb, | |
| CountedPtr< SIImageStore > | imstore | |||
| ) | [virtual] |
Vectorized InitializeToVis void initializeToVis(Block<CountedPtr<ImageInterface<Complex> > > & compImageVec,PtrBlock<SubImage<Float> *> & modelImageVec, PtrBlock<SubImage<Float> *>& weightImageVec, PtrBlock<SubImage<Float> *>& fluxScaleVec, Block<Matrix<Float> >& weightsVec, const VisBuffer& vb);.
Reimplemented from casa::FTMachine.
| virtual void casa::MultiTermFTNew::initMaps | ( | const VisBuffer & | vb | ) | [protected, virtual] |
have to call the initmaps of subftm
Reimplemented from casa::FTMachine.
| virtual Bool casa::MultiTermFTNew::isFourier | ( | ) | [inline, virtual] |
Various small inline functions.
Reimplemented from casa::FTMachine.
Definition at line 158 of file MultiTermFTNew.h.
References casacore::True.
| virtual Bool casa::MultiTermFTNew::isUsingCFCache | ( | ) | [inline, virtual] |
Reimplemented from casa::FTMachine.
Definition at line 179 of file MultiTermFTNew.h.
References casacore::False, isUsingCFCache(), and subftms_p.
Referenced by isUsingCFCache().
| void casa::MultiTermFTNew::makeImage | ( | FTMachine::Type | type, | |
| VisSet & | vs, | |||
| ImageInterface< Complex > & | image, | |||
| Matrix< Float > & | weight | |||
| ) | [virtual] |
Make an image : subftm->makeImage().
Reimplemented from casa::FTMachine.
| Bool casa::MultiTermFTNew::modifyModelVis | ( | VisBuffer & | vb, | |
| uInt | thisterm | |||
| ) | [protected] |
Multiply model visibilities by Taylor-function weights - during "get".
| Bool casa::MultiTermFTNew::modifyVisWeights | ( | VisBuffer & | vb, | |
| uInt | thisterm | |||
| ) | [protected] |
Multiply Imaging weights by Taylor-function weights - during "put".
| virtual String casa::MultiTermFTNew::name | ( | ) | const [inline, virtual] |
Return the name of the machine.
Implements casa::FTMachine.
Definition at line 160 of file MultiTermFTNew.h.
References machineName_p.
| MultiTermFTNew& casa::MultiTermFTNew::operator= | ( | const MultiTermFTNew & | other | ) |
Assignment operator --- leave it as the default.
Reimplemented from casa::FTMachine.
| void casa::MultiTermFTNew::printFTTypes | ( | ) | [inline] |
Definition at line 163 of file MultiTermFTNew.h.
References casacore::nelements(), and subftms_p.
| void casa::MultiTermFTNew::put | ( | const VisBuffer & | , | |
| Int | = -1, |
|||
| Bool | = False, |
|||
| FTMachine::Type | = FTMachine::OBSERVED | |||
| ) | [inline, virtual] |
Have a const version for compatibility with other FTMs.
. Throw an exception if called.
Implements casa::FTMachine.
Definition at line 119 of file MultiTermFTNew.h.
| void casa::MultiTermFTNew::put | ( | VisBuffer & | vb, | |
| Int | row = -1, |
|||
| Bool | dopsf = False, |
|||
| FTMachine::Type | type = FTMachine::OBSERVED | |||
| ) | [virtual] |
Modify imaging weights with Taylor-weights and do gridding via subftm->put().
Reimplemented from casa::FTMachine.
| void casa::MultiTermFTNew::restoreImagingWeights | ( | VisBuffer & | vb | ) | [protected] |
Restore vb.imagingweights to the original.
| virtual void casa::MultiTermFTNew::setDryRun | ( | Bool | val | ) | [inline, virtual] |
cerr << "MTFTMN: " << isDryRun << endl;
Reimplemented from casa::FTMachine.
Definition at line 172 of file MultiTermFTNew.h.
References casa::FTMachine::isDryRun, and subftms_p.
| virtual void casa::MultiTermFTNew::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 161 of file MultiTermFTNew.h.
| virtual void casa::MultiTermFTNew::setNoPadding | ( | Bool | nopad | ) | [inline, virtual] |
To make sure no padding is used in certain gridders.
Reimplemented from casa::FTMachine.
Definition at line 159 of file MultiTermFTNew.h.
References subftms_p.
| Bool casa::MultiTermFTNew::storeAsImg | ( | String | fileName, | |
| ImageInterface< Float > & | theImg | |||
| ) | [protected] |
Helper function to write ImageInterfaces to disk.
| virtual Bool casa::MultiTermFTNew::toRecord | ( | String & | error, | |
| RecordInterface & | outRec, | |||
| Bool | withImage = False, |
|||
| const String | diskimage = "" | |||
| ) | [virtual] |
{throw(AipsError("MultiTermFTNew::getWeightImage() should not be called"));}
Save and restore the MultiTermFTNew to and from a record
Reimplemented from casa::FTMachine.
| virtual Bool casa::MultiTermFTNew::useWeightImage | ( | ) | [inline, virtual] |
All FTMachines that fill weightimage, need to set this.
TODO : Make this pure virtual.
Reimplemented from casa::FTMachine.
Definition at line 144 of file MultiTermFTNew.h.
References AlwaysAssert, and subftms_p.
Matrix<Float> casa::MultiTermFTNew::imweights_p [protected] |
Definition at line 203 of file MultiTermFTNew.h.
String casa::MultiTermFTNew::machineName_p [protected] |
Definition at line 204 of file MultiTermFTNew.h.
Referenced by name().
Cube<Complex> casa::MultiTermFTNew::modviscube_p [protected] |
Definition at line 198 of file MultiTermFTNew.h.
New MTFT specific internal parameters and functions* uInt casa::MultiTermFTNew::nterms_p [protected] |
Definition at line 201 of file MultiTermFTNew.h.
New MTFT specific internal parameters and functions* uInt casa::MultiTermFTNew::psfnterms_p [protected] |
Definition at line 201 of file MultiTermFTNew.h.
Double casa::MultiTermFTNew::reffreq_p [protected] |
Definition at line 202 of file MultiTermFTNew.h.
Block< CountedPtr<FTMachine> > casa::MultiTermFTNew::subftms_p [protected] |
Bool donePSF_p;.
Definition at line 208 of file MultiTermFTNew.h.
Referenced by getWeightImage(), isUsingCFCache(), printFTTypes(), setDryRun(), setNoPadding(), and useWeightImage().
1.6.1