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 setpbinvpoly (const String &telescope, const String &othertelescope, const Bool dopb, const Matrix< Double > &coeff, const Vector< Double > &freqs, 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, const Vector< String > &antnames, Record &rec)
 antnames => Antenna names for which this PB image applies. "*" is for all
Bool imagepbinfo (Vector< Vector< String > > &antnames, Vector< Record > &imagebeams)
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
Bool getvps (Vector< Record > &unique_out_rec_list, Vector< Vector< uInt > > &beam_index, const String &telescope, const Vector< MEpoch > &inpTimeRange, const Vector< MFrequency > &inpFreqRange, const Vector< String > &AntennaNames, const MDirection &obsdirection=MDirection(Quantity(0.,"deg"), Quantity(90.,"deg"), MDirection::AZEL))
 get a set of all necessary beams and their properties for a given antenna list
Bool vpRecIsIdentical (const Record &rec0, const 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};

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 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 225 of file VPManager.h.

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

Definition at line 237 of file VPManager.h.

References String.

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 String &  antennatype = "" 
)

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

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::getvps ( Vector< Record > &  unique_out_rec_list,
Vector< Vector< uInt > > &  beam_index,
const String &  telescope,
const Vector< MEpoch > &  inpTimeRange,
const Vector< MFrequency > &  inpFreqRange,
const Vector< String > &  AntennaNames,
const MDirection &  obsdirection = MDirection(Quantity(0.,"deg"), Quantity(90.,"deg"), MDirection::AZEL) 
)

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

Bool casa::VPManager::imagepbinfo ( Vector< Vector< String > > &  antnames,
Vector< 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

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,
const Vector< String > &  antnames,
Record &  rec 
)

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

Bool casa::VPManager::setpbinvpoly ( const String &  telescope,
const String &  othertelescope,
const Bool  dopb,
const Matrix< Double > &  coeff,
const Vector< Double > &  freqs,
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::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 231 of file VPManager.h.

References String.

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

Member Data Documentation

Definition at line 223 of file VPManager.h.

Definition at line 217 of file VPManager.h.

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

Definition at line 219 of file VPManager.h.

Record casa::VPManager::vplist_p [private]

Definition at line 221 of file VPManager.h.

SimpleOrderedMap<String, Int > casa::VPManager::vplistdefaults_p [private]

Definition at line 222 of file VPManager.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1