28 #ifndef SYNTHESIS_TRANSFORM2_CFCACHE_H
29 #define SYNTHESIS_TRANSFORM2_CFCACHE_H
54 using namespace CFDefs;
138 {freqList.resize(0); wList.resize(0); muellerList.resize(0); cfNameList.resize(0);}
140 std::vector<casacore::Double> freqList,
wList;
154 memCache2_p(), memCacheWt2_p(),memCache_p(), memCacheWt_p(),
155 cfCacheTable_p(), XSup(), YSup(), paList(),
156 paList_p(), key2IndexMap(),
157 Dir(
""), WtImagePrefix(
""), cfPrefix(cfDir), aux(
"aux.dat"), paCD_p(), avgPBReady_p(false),
158 avgPBReadyQualifier_p(
""), OTODone_p(false), loadPixBuf_p(
casacore::
True)
202 {cacheConvFunction(cfs.
pa, cfs,nameQualifier,savePA);}
208 {cacheConvFunction(pa.
getValue(
"rad"), cfs, nameQualifier,savePA);}
226 {
return searchConvFunction(which, pa.
getValue(
"rad"), dPA.
getValue(
"rad"));};
249 {
return locateConvFunction(cfs, cftws, Nw,pa.
getValue(
"rad"), dPA.
getValue(
"rad"),mosXPos,mosYPos);};
255 {
return locateConvFunction(cfs, Nw,pa.
getValue(
"rad"), dPA.
getValue(
"rad"),nameQualifier, mosXPos,mosYPos);};
290 {
return (avgPBReady_p && (avgPBReadyQualifier_p == qualifier));};
casacore::Vector< CFStore > CFStoreCacheType
std::vector< casacore::Double > wList
casacore::Bool avgPBReady_p
casacore::String getCacheDir(CFCDirType dirType=USERDIR)
CFCacheTable & operator=(const CFCacheTable &other)
std::vector< casacore::Float > paList_p
CFStoreCacheType memCacheWt_p
casacore::String getWtImagePrefix()
//////////////////////////////////////////////////////////////////////////
PtrHolder< T > & operator=(const PtrHolder< T > &other)
casacore::Double conjFreq(const casacore::Double &freq, const casacore::Double &refFreq)
casacore::Bool searchConvFunction(casacore::Int &which, const casacore::Quantity pa, const casacore::Quantity dPA)
Methods to sarch for a convolution function in the caches (disk or memory) for the give Parallactic ...
casacore::Vector< casacore::Float > Sampling
Get information about, and manipulate directories.
casacore::Vector< CFStore2 > CFStoreCacheType2
TableExprNode pattern(const TableExprNode &node)
void makeFTCoordSys(const casacore::CoordinateSystem &coords, const casacore::Int &convSize, const casacore::Vector< casacore::Double > &ftRef, casacore::CoordinateSystem &ftCoords)
casacore::String avgPBReadyQualifier_p
void setCacheDir(const char *dir)
Method to set the disk cache directory name.
casacore::TableRecord getCFParams(const casacore::String &dirName, const casacore::String &fileName, casacore::Array< casacore::Complex > &pixelBuffer, casacore::CoordinateSystem &coordSys, casacore::Double &sampling, casacore::Double &paVal, casacore::Int &xSupport, casacore::Int &ySupport, casacore::Double &fVal, casacore::Double &wVal, casacore::Int &mVal, casacore::Double &conjFreq, casacore::Int &conjPoln, casacore::Bool loadPixels, casacore::Bool loadMiscInfo=true)
casacore::Matrix< casacore::Int > YSup
ParAngleChangeDetector paCD_p
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
Referenced counted pointer for constant data.
std::vector< casacore::String > cfNameList
CFCacheTableType cfCacheTable_p
std::string path(const std::string &name)
void setPAChangeDetector(const ParAngleChangeDetector &paCD)
Method to set the class to caluclate the differential Parallactic Angle.
bool Bool
Define the standard types used by Casacore.
casacore::Int locateConvFunction(CFStore &cfs, const casacore::Int Nw, const casacore::Quantity pa, const casacore::Quantity dPA, const casacore::String &nameQualifier="", const casacore::Int mosXPos=0, const casacore::Int mosYPos=0)
casacore::Bool avgPBReady(const casacore::String &qualifier=casacore::String(""))
A hierarchical collection of named fields of various types.
std::vector< CFCacheTable > CFCacheTableType
const Qtype & getValue() const
Get value of quantum in current units (i.e.
CFStoreCacheType2 memCacheWt2_p
std::vector< casacore::Double > freqList
std::vector< casacore::Int > muellerList
An object to manage the caches of pre-computed convolution functions on the disk and in the memory...
String: the storage and methods of handling collections of characters.
void cacheConvFunction(CFStore &cfs, casacore::String nameQualifier="", casacore::Bool savePA=true)
Methods to cache the convolution function.
void cacheConvFunction(const casacore::Quantity pa, CFStore &cfs, casacore::String nameQualifier="", casacore::Bool savePA=true)
One level lower - the Parallactic angle can be separately provided.
CFCache(const char *cfDir="CF")
casacore::Matrix< casacore::Float > key2IndexMap
void setWtImagePrefix(const char *prefix)
casacore::Bool isLazyFillOn()
casacore::Int loadAvgPB(casacore::CountedPtr< casacore::ImageInterface< casacore::Float > > &avgPB, casacore::String qualifier=casacore::String(""))
Interconvert pixel and world coordinates.
casacore::Int locateConvFunction(CFStore &cfs, CFStore &cftws, const casacore::Int Nw, const casacore::Quantity pa, const casacore::Quantity dPA, const casacore::Int mosXPos=0, const casacore::Int mosYPos=0)
Method to locate a convolution function for the given w-term index and PA value.
casacore::String WtImagePrefix
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.