casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
casa::VPManager Class Reference

#include <VPManager.h>

List of all members.

Public Member Functions

void reset (Bool verbose=False)
Bool saveastable (const String &tablename)
Bool loadfromtable (const String &tablename)
Bool summarizevps (const Bool verbose)
Bool setcannedpb (const String &tel, const String &other, const Bool dopb, const String &commonpb, const Bool dosquint, const Quantity &paincrement, const Bool usesymmetricbeam, Record &rec)
Bool setpbairy (const String &telescope, const String &othertelescope, const Bool dopb, const Quantity &dishdiam, const Quantity &blockagediam, const Quantity &maxrad, const Quantity &reffreq, MDirection &squintdir, const Quantity &squintreffreq, const Bool dosquint, const Quantity &paincrement, const Bool usesymmetricbeam, Record &rec)
Bool setpbcospoly (const String &telescope, const String &othertelescope, const Bool dopb, const Vector< Double > &coeff, const Vector< Double > &scale, const Quantity &maxrad, const Quantity &reffreq, const String &isthispb, MDirection &squintdir, const Quantity &squintreffreq, const Bool dosquint, const Quantity &paincrement, const Bool usesymmetricbeam, Record &rec)
Bool setpbgauss (const String &tel, const String &other, const Bool dopb, const Quantity &halfwidth, const Quantity maxrad, const Quantity &reffreq, const String &isthispb, MDirection &squintdir, const Quantity &squintreffreq, const Bool dosquint, const Quantity &paincrement, const Bool usesymmetricbeam, Record &rec)
Bool setpbinvpoly (const String &telescope, const String &othertelescope, const Bool dopb, const Vector< Double > &coeff, const Quantity &maxrad, const Quantity &reffreq, const String &isthispb, MDirection &squintdir, const Quantity &squintreffreq, const Bool dosquint, const Quantity &paincrement, const Bool usesymmetricbeam, Record &rec)
Bool setpbnumeric (const String &telescope, const String &othertelescope, const Bool dopb, const Vector< Double > &vect, const Quantity &maxrad, const Quantity &reffreq, const String &isthispb, MDirection &squintdir, const Quantity &squintreffreq, const Bool dosquint, const Quantity &paincrement, const Bool usesymmetricbeam, Record &rec)
Bool setpbimage (const String &telescope, const String &othertelescope, const Bool dopb, const String &realimage, const String &imagimage, const String &compleximage, Record &rec)
Bool setpbpoly (const String &telescope, const String &othertelescope, const Bool dopb, const Vector< Double > &coeff, const Quantity &maxrad, const Quantity &reffreq, const String &isthispb, MDirection &squintdir, const Quantity &squintreffreq, const Bool dosquint, const Quantity &paincrement, const Bool usesymmetricbeam, Record &rec)
Bool setpbantresptable (const String &telescope, const String &othertelescope, const Bool dopb, const String &tablepath)
Bool setuserdefault (const Int vplistfield, const String &telescope, const String &antennatype="")
 no record filled, need to access via getvp()
Bool getuserdefault (Int &vplistfield, const String &telescope, const String &antennatype="")
Bool getanttypes (Vector< String > &anttypes, const String &telescope, const MEpoch &obstime, const MFrequency &freq, const MDirection &obsdirection)
Int numvps (const String &telescope, const MEpoch &obstime, const MFrequency &freq, const MDirection &obsdirection=MDirection(Quantity(0.,"deg"), Quantity(90.,"deg"), MDirection::AZEL))
 return number of voltage patterns satisfying the given constraints
Bool getvp (Record &rec, const String &telescope, const MEpoch &obstime, const MFrequency &freq, const String &antennatype="", const MDirection &obsdirection=MDirection(Quantity(0.,"deg"), Quantity(90.,"deg"), MDirection::AZEL))
 get the voltage pattern satisfying the given constraints
Bool getvp (Record &rec, const String &telescope, const String &antennatype="")
 get a general voltage pattern for the given telescope and ant type if available

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};

Protected Member Functions

 VPManager (Bool verbose=False)

Private Member Functions

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

Private Attributes

Record vplist_p
SimpleOrderedMap< String, Intvplistdefaults_p
AntennaResponses aR_p

Static Private Attributes

static VPManagerinstance_p
static Mutex mutex_p

Detailed Description

Definition at line 37 of file VPManager.h.


Constructor & Destructor Documentation

casa::VPManager::VPManager ( Bool  verbose = False) [protected]

Member Function Documentation

String casa::VPManager::antennaDescription ( const String telescope,
const String antennatype 
) [inline, private]

Definition at line 192 of file VPManager.h.

References casa::String::empty().

String casa::VPManager::antTypeFromAntDesc ( const String antDesc) [inline, private]

Definition at line 204 of file VPManager.h.

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

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

get the voltage pattern satisfying the given constraints

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

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

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

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

return number of voltage patterns satisfying the given constraints

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

no record filled, need to access via getvp()

set the default voltage pattern for the given telescope

String casa::VPManager::telFromAntDesc ( const String antDesc) [inline, private]

Definition at line 198 of file VPManager.h.

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


Member Data Documentation

Definition at line 190 of file VPManager.h.

Definition at line 184 of file VPManager.h.

Mutex casa::VPManager::mutex_p [static, private]

Definition at line 186 of file VPManager.h.

Definition at line 188 of file VPManager.h.

Definition at line 189 of file VPManager.h.


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