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

Forward declarations. More...

#include <VPManager.h>

Public Member Functions

void reset (casacore::Bool verbose=false)
 
casacore::Bool saveastable (const casacore::String &tablename)
 
casacore::Bool loadfromtable (const casacore::String &tablename)
 
casacore::Bool summarizevps (const casacore::Bool verbose)
 
casacore::Bool setcannedpb (const casacore::String &tel, const casacore::String &other, const casacore::Bool dopb, const casacore::String &commonpb, const casacore::Bool dosquint, const casacore::Quantity &paincrement, const casacore::Bool usesymmetricbeam, casacore::Record &rec)
 
casacore::Bool setpbairy (const casacore::String &telescope, const casacore::String &othertelescope, const casacore::Bool dopb, const casacore::Quantity &dishdiam, const casacore::Quantity &blockagediam, const casacore::Quantity &maxrad, const casacore::Quantity &reffreq, casacore::MDirection &squintdir, const casacore::Quantity &squintreffreq, const casacore::Bool dosquint, const casacore::Quantity &paincrement, const casacore::Bool usesymmetricbeam, casacore::Record &rec)
 
casacore::Bool setpbcospoly (const casacore::String &telescope, const casacore::String &othertelescope, const casacore::Bool dopb, const casacore::Vector< casacore::Double > &coeff, const casacore::Vector< casacore::Double > &scale, const casacore::Quantity &maxrad, const casacore::Quantity &reffreq, const casacore::String &isthispb, casacore::MDirection &squintdir, const casacore::Quantity &squintreffreq, const casacore::Bool dosquint, const casacore::Quantity &paincrement, const casacore::Bool usesymmetricbeam, casacore::Record &rec)
 
casacore::Bool setpbgauss (const casacore::String &tel, const casacore::String &other, const casacore::Bool dopb, const casacore::Quantity &halfwidth, const casacore::Quantity maxrad, const casacore::Quantity &reffreq, const casacore::String &isthispb, casacore::MDirection &squintdir, const casacore::Quantity &squintreffreq, const casacore::Bool dosquint, const casacore::Quantity &paincrement, const casacore::Bool usesymmetricbeam, casacore::Record &rec)
 
casacore::Bool setpbinvpoly (const casacore::String &telescope, const casacore::String &othertelescope, const casacore::Bool dopb, const casacore::Vector< casacore::Double > &coeff, const casacore::Quantity &maxrad, const casacore::Quantity &reffreq, const casacore::String &isthispb, casacore::MDirection &squintdir, const casacore::Quantity &squintreffreq, const casacore::Bool dosquint, const casacore::Quantity &paincrement, const casacore::Bool usesymmetricbeam, casacore::Record &rec)
 
casacore::Bool setpbinvpoly (const casacore::String &telescope, const casacore::String &othertelescope, const casacore::Bool dopb, const casacore::Matrix< casacore::Double > &coeff, const casacore::Vector< casacore::Double > &freqs, const casacore::Quantity &maxrad, const casacore::Quantity &reffreq, const casacore::String &isthispb, casacore::MDirection &squintdir, const casacore::Quantity &squintreffreq, const casacore::Bool dosquint, const casacore::Quantity &paincrement, const casacore::Bool usesymmetricbeam, casacore::Record &rec)
 
casacore::Bool setpbnumeric (const casacore::String &telescope, const casacore::String &othertelescope, const casacore::Bool dopb, const casacore::Vector< casacore::Double > &vect, const casacore::Quantity &maxrad, const casacore::Quantity &reffreq, const casacore::String &isthispb, casacore::MDirection &squintdir, const casacore::Quantity &squintreffreq, const casacore::Bool dosquint, const casacore::Quantity &paincrement, const casacore::Bool usesymmetricbeam, casacore::Record &rec)
 
casacore::Bool setpbimage (const casacore::String &telescope, const casacore::String &othertelescope, const casacore::Bool dopb, const casacore::String &realimage, const casacore::String &imagimage, const casacore::String &compleximage, const casacore::Vector< casacore::String > &antnames, casacore::Record &rec)
 antnames => Antenna names for which this PB image applies. "*" is for all More...
 
casacore::Bool imagepbinfo (casacore::Vector< casacore::Vector< casacore::String > > &antnames, casacore::Vector< casacore::Record > &imagebeams)
 
casacore::Bool setpbpoly (const casacore::String &telescope, const casacore::String &othertelescope, const casacore::Bool dopb, const casacore::Vector< casacore::Double > &coeff, const casacore::Quantity &maxrad, const casacore::Quantity &reffreq, const casacore::String &isthispb, casacore::MDirection &squintdir, const casacore::Quantity &squintreffreq, const casacore::Bool dosquint, const casacore::Quantity &paincrement, const casacore::Bool usesymmetricbeam, casacore::Record &rec)
 
casacore::Bool setpbantresptable (const casacore::String &telescope, const casacore::String &othertelescope, const casacore::Bool dopb, const casacore::String &tablepath)
 
casacore::Bool setuserdefault (const casacore::Int vplistfield, const casacore::String &telescope, const casacore::String &antennatype="")
 no record filled, need to access via getvp() More...
 
casacore::Bool getuserdefault (casacore::Int &vplistfield, const casacore::String &telescope, const casacore::String &antennatype="")
 
casacore::Bool getanttypes (casacore::Vector< casacore::String > &anttypes, const casacore::String &telescope, const casacore::MEpoch &obstime, const casacore::MFrequency &freq, const casacore::MDirection &obsdirection)
 
casacore::Int numvps (const casacore::String &telescope, const casacore::MEpoch &obstime, const casacore::MFrequency &freq, const casacore::MDirection &obsdirection=casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL))
 return number of voltage patterns satisfying the given constraints More...
 
casacore::Bool getvp (casacore::Record &rec, const casacore::String &telescope, const casacore::MEpoch &obstime, const casacore::MFrequency &freq, const casacore::String &antennatype="", const casacore::MDirection &obsdirection=casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL))
 get the voltage pattern satisfying the given constraints More...
 
casacore::Bool getvp (casacore::Record &rec, const casacore::String &telescope, const casacore::String &antennatype="")
 get a general voltage pattern for the given telescope and ant type if available More...
 
casacore::Bool getvps (casacore::Vector< casacore::Record > &unique_out_rec_list, casacore::Vector< casacore::Vector< casacore::uInt > > &beam_index, const casacore::String &telescope, const casacore::Vector< casacore::MEpoch > &inpTimeRange, const casacore::Vector< casacore::MFrequency > &inpFreqRange, const casacore::Vector< casacore::String > &AntennaNames, const casacore::MDirection &obsdirection=casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL))
 get a set of all necessary beams and their properties for a given antenna list More...
 
casacore::Bool vpRecIsIdentical (const casacore::Record &rec0, const casacore::Record &rec1)
 

Static Public Member Functions

static VPManagerInstance ()
 no need of enums here use the one from PBMathInterface enum Type{NONE, COMMONPB, AIRY, GAUSS, POLY, IPOLY, COSPOLY, NUMERIC, IMAGE, ZERNIKE, MAX=ZERNIKE}; More...
 

Protected Member Functions

 VPManager (casacore::Bool verbose=false)
 

Private Member Functions

casacore::String antennaDescription (const casacore::String &telescope, const casacore::String &antennatype)
 
casacore::String telFromAntDesc (const casacore::String &antDesc)
 
casacore::String antTypeFromAntDesc (const casacore::String &antDesc)
 

Private Attributes

casacore::Record vplist_p
 
std::map< casacore::String,
casacore::Int
vplistdefaults_p
 
AntennaResponses aR_p
 

Static Private Attributes

static VPManagerinstance_p
 
static casacore::Mutex mutex_p
 

Detailed Description

Forward declarations.

Definition at line 42 of file VPManager.h.

Constructor & Destructor Documentation

casa::VPManager::VPManager ( casacore::Bool  verbose = false)
protected

Member Function Documentation

casacore::String casa::VPManager::antennaDescription ( const casacore::String telescope,
const casacore::String antennatype 
)
inlineprivate

Definition at line 230 of file VPManager.h.

References casacore::String::empty().

casacore::String casa::VPManager::antTypeFromAntDesc ( const casacore::String antDesc)
inlineprivate

Definition at line 242 of file VPManager.h.

References casacore::String::after(), and casacore::String::contains().

casacore::Bool casa::VPManager::getanttypes ( casacore::Vector< casacore::String > &  anttypes,
const casacore::String telescope,
const casacore::MEpoch obstime,
const casacore::MFrequency freq,
const casacore::MDirection obsdirection 
)
casacore::Bool casa::VPManager::getuserdefault ( casacore::Int vplistfield,
const casacore::String telescope,
const casacore::String antennatype = "" 
)
casacore::Bool casa::VPManager::getvp ( casacore::Record rec,
const casacore::String telescope,
const casacore::MEpoch obstime,
const casacore::MFrequency freq,
const casacore::String antennatype = "",
const casacore::MDirection obsdirection = casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL) 
)

get the voltage pattern satisfying the given constraints

casacore::Bool casa::VPManager::getvp ( casacore::Record rec,
const casacore::String telescope,
const casacore::String antennatype = "" 
)

get a general voltage pattern for the given telescope and ant type if available

casacore::Bool casa::VPManager::getvps ( casacore::Vector< casacore::Record > &  unique_out_rec_list,
casacore::Vector< casacore::Vector< casacore::uInt > > &  beam_index,
const casacore::String telescope,
const casacore::Vector< casacore::MEpoch > &  inpTimeRange,
const casacore::Vector< casacore::MFrequency > &  inpFreqRange,
const casacore::Vector< casacore::String > &  AntennaNames,
const casacore::MDirection obsdirection = casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL) 
)

get a set of all necessary beams and their properties for a given antenna list

casacore::Bool casa::VPManager::imagepbinfo ( casacore::Vector< casacore::Vector< casacore::String > > &  antnames,
casacore::Vector< casacore::Record > &  imagebeams 
)
static VPManager* casa::VPManager::Instance ( )
static

no need of enums here use the one from PBMathInterface enum Type{NONE, COMMONPB, AIRY, GAUSS, POLY, IPOLY, COSPOLY, NUMERIC, IMAGE, ZERNIKE, MAX=ZERNIKE};

this is a SINGLETON class

casacore::Bool casa::VPManager::loadfromtable ( const casacore::String tablename)
casacore::Int casa::VPManager::numvps ( const casacore::String telescope,
const casacore::MEpoch obstime,
const casacore::MFrequency freq,
const casacore::MDirection obsdirection = casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL) 
)

return number of voltage patterns satisfying the given constraints

void casa::VPManager::reset ( casacore::Bool  verbose = false)
casacore::Bool casa::VPManager::saveastable ( const casacore::String tablename)
casacore::Bool casa::VPManager::setcannedpb ( const casacore::String tel,
const casacore::String other,
const casacore::Bool  dopb,
const casacore::String commonpb,
const casacore::Bool  dosquint,
const casacore::Quantity paincrement,
const casacore::Bool  usesymmetricbeam,
casacore::Record rec 
)
casacore::Bool casa::VPManager::setpbairy ( const casacore::String telescope,
const casacore::String othertelescope,
const casacore::Bool  dopb,
const casacore::Quantity dishdiam,
const casacore::Quantity blockagediam,
const casacore::Quantity maxrad,
const casacore::Quantity reffreq,
casacore::MDirection squintdir,
const casacore::Quantity squintreffreq,
const casacore::Bool  dosquint,
const casacore::Quantity paincrement,
const casacore::Bool  usesymmetricbeam,
casacore::Record rec 
)
casacore::Bool casa::VPManager::setpbantresptable ( const casacore::String telescope,
const casacore::String othertelescope,
const casacore::Bool  dopb,
const casacore::String tablepath 
)
casacore::Bool casa::VPManager::setpbcospoly ( const casacore::String telescope,
const casacore::String othertelescope,
const casacore::Bool  dopb,
const casacore::Vector< casacore::Double > &  coeff,
const casacore::Vector< casacore::Double > &  scale,
const casacore::Quantity maxrad,
const casacore::Quantity reffreq,
const casacore::String isthispb,
casacore::MDirection squintdir,
const casacore::Quantity squintreffreq,
const casacore::Bool  dosquint,
const casacore::Quantity paincrement,
const casacore::Bool  usesymmetricbeam,
casacore::Record rec 
)
casacore::Bool casa::VPManager::setpbgauss ( const casacore::String tel,
const casacore::String other,
const casacore::Bool  dopb,
const casacore::Quantity halfwidth,
const casacore::Quantity  maxrad,
const casacore::Quantity reffreq,
const casacore::String isthispb,
casacore::MDirection squintdir,
const casacore::Quantity squintreffreq,
const casacore::Bool  dosquint,
const casacore::Quantity paincrement,
const casacore::Bool  usesymmetricbeam,
casacore::Record rec 
)
casacore::Bool casa::VPManager::setpbimage ( const casacore::String telescope,
const casacore::String othertelescope,
const casacore::Bool  dopb,
const casacore::String realimage,
const casacore::String imagimage,
const casacore::String compleximage,
const casacore::Vector< casacore::String > &  antnames,
casacore::Record rec 
)

antnames => Antenna names for which this PB image applies. "*" is for all

casacore::Bool casa::VPManager::setpbinvpoly ( const casacore::String telescope,
const casacore::String othertelescope,
const casacore::Bool  dopb,
const casacore::Vector< casacore::Double > &  coeff,
const casacore::Quantity maxrad,
const casacore::Quantity reffreq,
const casacore::String isthispb,
casacore::MDirection squintdir,
const casacore::Quantity squintreffreq,
const casacore::Bool  dosquint,
const casacore::Quantity paincrement,
const casacore::Bool  usesymmetricbeam,
casacore::Record rec 
)
casacore::Bool casa::VPManager::setpbinvpoly ( const casacore::String telescope,
const casacore::String othertelescope,
const casacore::Bool  dopb,
const casacore::Matrix< casacore::Double > &  coeff,
const casacore::Vector< casacore::Double > &  freqs,
const casacore::Quantity maxrad,
const casacore::Quantity reffreq,
const casacore::String isthispb,
casacore::MDirection squintdir,
const casacore::Quantity squintreffreq,
const casacore::Bool  dosquint,
const casacore::Quantity paincrement,
const casacore::Bool  usesymmetricbeam,
casacore::Record rec 
)
casacore::Bool casa::VPManager::setpbnumeric ( const casacore::String telescope,
const casacore::String othertelescope,
const casacore::Bool  dopb,
const casacore::Vector< casacore::Double > &  vect,
const casacore::Quantity maxrad,
const casacore::Quantity reffreq,
const casacore::String isthispb,
casacore::MDirection squintdir,
const casacore::Quantity squintreffreq,
const casacore::Bool  dosquint,
const casacore::Quantity paincrement,
const casacore::Bool  usesymmetricbeam,
casacore::Record rec 
)
casacore::Bool casa::VPManager::setpbpoly ( const casacore::String telescope,
const casacore::String othertelescope,
const casacore::Bool  dopb,
const casacore::Vector< casacore::Double > &  coeff,
const casacore::Quantity maxrad,
const casacore::Quantity reffreq,
const casacore::String isthispb,
casacore::MDirection squintdir,
const casacore::Quantity squintreffreq,
const casacore::Bool  dosquint,
const casacore::Quantity paincrement,
const casacore::Bool  usesymmetricbeam,
casacore::Record rec 
)
casacore::Bool casa::VPManager::setuserdefault ( const casacore::Int  vplistfield,
const casacore::String telescope,
const casacore::String antennatype = "" 
)

no record filled, need to access via getvp()

set the default voltage pattern for the given telescope

casacore::Bool casa::VPManager::summarizevps ( const casacore::Bool  verbose)
casacore::String casa::VPManager::telFromAntDesc ( const casacore::String antDesc)
inlineprivate

Definition at line 236 of file VPManager.h.

References casacore::String::before(), and casacore::String::contains().

casacore::Bool casa::VPManager::vpRecIsIdentical ( const casacore::Record rec0,
const casacore::Record rec1 
)

Member Data Documentation

AntennaResponses casa::VPManager::aR_p
private

Definition at line 228 of file VPManager.h.

VPManager* casa::VPManager::instance_p
staticprivate

Definition at line 222 of file VPManager.h.

casacore::Mutex casa::VPManager::mutex_p
staticprivate

Definition at line 224 of file VPManager.h.

casacore::Record casa::VPManager::vplist_p
private

Definition at line 226 of file VPManager.h.

std::map<casacore::String, casacore::Int > casa::VPManager::vplistdefaults_p
private

Definition at line 227 of file VPManager.h.


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