29 #ifndef SYNTHESIS_AWPROJECTWBFT_H
30 #define SYNTHESIS_AWPROJECTWBFT_H
32 #define MAGICPAVALUE -999.0
153 {(void)shape0; (void)shape1;
return false;};
AWProjectWBFT(casacore::Int nFacets, casacore::Long cachesize, casacore::CountedPtr< CFCache > &cfcache, casacore::CountedPtr< ConvolutionFunction > &cf, casacore::CountedPtr< VisibilityResamplerBase > &visResampler, casacore::Bool applyPointingOffset=true, casacore::Bool doPBCorr=true, casacore::Int tilesize=16, casacore::Float paSteps=5.0, casacore::Float pbLimit=5e-4, casacore::Bool usezero=false, casacore::Bool conjBeams_p=true, casacore::Bool doublePrecGrid=false)
Constructor: cachesize is the size of the cache in words (e.g.
A Vector of integers, for indexing into Array<T> objects.
void setObservatoryLocation(const casacore::MPosition &mLocation)
A Measure: position on Earth.
casacore::TempImage< casacore::Complex > griddedWeights
casacore::TempImage< casacore::Complex > griddedConjWeights
virtual casacore::Bool verifyShapes(casacore::IPosition shape0, casacore::IPosition shape1)
casacore::Int findPointingOffsets(const VisBuffer &vb, casacore::Array< casacore::Float > &l_off, casacore::Array< casacore::Float > &m_off, casacore::Bool Evaluate)
casacore::Bool changed(const VisBuffer& vb) {return vpSJ->changed(vb,1);}; casacore::Bool changed(con...
casacore::Bool resetPBs_p
casacore::Bool conjBeams_p
virtual void initializeToSky(casacore::ImageInterface< casacore::Complex > &image, casacore::Matrix< casacore::Float > &weight, const VisBuffer &vb)
Initialize transform to Sky plane: initializes the image.
virtual void resampleDataToGrid(casacore::Array< casacore::Complex > &griddedData, VBStore &vbs, const VisBuffer &vb, casacore::Bool &dopsf)
virtual casacore::Bool computeAvgPB(const casacore::Double &, const casacore::Double &)
Returns true if accumulation during gridding to compute the average PB must be done.
virtual casacore::ImageInterface< casacore::Complex > & getImage(casacore::Matrix< casacore::Float > &, casacore::Bool normalize=true)
Method used to make normalized image from gridded visibilites.
casacore::Bool oneTimeMessage_p
// These ugly methods (ugly due to their flirtation with FORTRAN) should go!
casacore::ImageInterface< casacore::Complex > * image
virtual void ftWeightImage(casacore::Lattice< casacore::Complex > &wtImage, const casacore::Matrix< casacore::Float > &sumWt, const casacore::Bool &doFFTNorm)
casacore::Vector< casacore::Int > fieldIds_p
virtual void makeSensitivitySqImage(casacore::Lattice< casacore::Complex > &wtImage, casacore::ImageInterface< casacore::Complex > &sensitivitySqImage, const casacore::Matrix< casacore::Float > &sumWt=casacore::Matrix< casacore::Float >(), const casacore::Bool &doFFTNorm=true)
Referenced counted pointer for constant data.
virtual void finalizeToSky()
{casacore::Float tt=(pbPixValue);return (abs(tt) >= pbLimit)?tt:1.0;};
bool Bool
Define the standard types used by Casacore.
casacore::Bool wtImageFTDone_p
virtual casacore::String name() const
Return the name of the machine.
virtual void makeSensitivityImage(const VisBuffer &vb, const casacore::ImageInterface< casacore::Complex > &imageTemplate, casacore::ImageInterface< casacore::Float > &sensitivityImage)
This method is called from AWProjectFT to compute the sensitivity image by accumulating in the image ...
virtual void setCFCache(casacore::CountedPtr< CFCache > &cfc, const casacore::Bool resetCFC=true)
virtual void setMiscInfo(const casacore::Int qualifier) {sensitivityPatternQualifier_p=qualifier;} {q...
Base class for all Casacore library errors.
const Double e
e and functions thereof:
String: the storage and methods of handling collections of characters.
VisBuffers encapsulate one chunk of visibility data for processing.
casacore::Array< casacore::Complex > griddedData
casacore::Array for non-tiled gridding These are common to most FTmachines
virtual casacore::Bool doublePrecGrid()
return whether the ftmachine is using a double precision grid
Abstract base class for Record classes.
casacore::Bool avgPBReady_p
casacore::Long cachesize
Sizes.
AWProjectWBFT(const AWProjectWBFT &other)
Copy constructor.
AWProjectWBFT & operator=(const AWProjectWBFT &other)
Assignment operator.
casacore::CountedPtr< VisibilityResamplerBase > visResamplerWt_p
casacore::MPosition mLocation_p
Default Position used for phase rotations.
void normalizeAvgPB(casacore::ImageInterface< casacore::Complex > &, casacore::ImageInterface< casacore::Float > &)
virtual casacore::Float pbFunc(const casacore::Float &, const casacore::Float &)
Method used to convert the pixel value of the PB image, passed as pbPixValue, to a value used for PB-...
void resampleCFToGrid(casacore::Array< casacore::Complex > &wtsGrid, VBStore &vbs, const VisBuffer &vb)
virtual void resampleGridToData(VBStore& vbs, const VisBuffer& vb);