casa
$Rev:20696$
|
#include <VPManager.h>
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 VPManager * | Instance () |
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, Int > | vplistdefaults_p |
AntennaResponses | aR_p |
Static Private Attributes | |
static VPManager * | instance_p |
static Mutex | mutex_p |
Definition at line 37 of file VPManager.h.
casa::VPManager::VPManager | ( | Bool | verbose = False | ) | [protected] |
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
Bool casa::VPManager::summarizevps | ( | const Bool | verbose | ) |
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().
AntennaResponses casa::VPManager::aR_p [private] |
Definition at line 190 of file VPManager.h.
VPManager* casa::VPManager::instance_p [static, private] |
Definition at line 184 of file VPManager.h.
Mutex casa::VPManager::mutex_p [static, private] |
Definition at line 186 of file VPManager.h.
Record casa::VPManager::vplist_p [private] |
Definition at line 188 of file VPManager.h.
SimpleOrderedMap<String, Int > casa::VPManager::vplistdefaults_p [private] |
Definition at line 189 of file VPManager.h.