28 #ifndef SYNTHESIS_VPMANAGER_H
29 #define SYNTHESIS_VPMANAGER_H
232 if(antennatype.
empty())
return telescope;
233 return telescope +
" " + antennatype;
A Measure: astronomical direction.
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 imagepbinfo(casacore::Vector< casacore::Vector< casacore::String > > &antnames, casacore::Vector< casacore::Record > &imagebeams)
AntennaResponses provides access to antenna response data.
SubString after(size_type pos)
Start at startpos and extract the SubString "after" the argument's position, exclusive, to the String's end.
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 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
VPManager(casacore::Bool verbose=false)
casacore::Bool setuserdefault(const casacore::Int vplistfield, const casacore::String &telescope, const casacore::String &antennatype="")
no record filled, need to access via getvp()
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 saveastable(const casacore::String &tablename)
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
A Measure: instant in time.
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
casacore::String antennaDescription(const casacore::String &telescope, const casacore::String &antennatype)
A Measure: wave characteristics.
casacore::Bool getuserdefault(casacore::Int &vplistfield, const casacore::String &telescope, const casacore::String &antennatype="")
casacore::Bool vpRecIsIdentical(const casacore::Record &rec0, const casacore::Record &rec1)
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)
std::map< casacore::String, casacore::Int > vplistdefaults_p
casacore::Bool loadfromtable(const casacore::String &tablename)
casacore::String telFromAntDesc(const casacore::String &antDesc)
static casacore::Mutex mutex_p
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
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::Record vplist_p
SubString before(size_type pos) const
Start at startpos and extract the string "before" the argument's position, exclusive.
Wrapper around a pthreads mutex.
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 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
String: the storage and methods of handling collections of characters.
void reset(casacore::Bool verbose=false)
static VPManager * instance_p
Bool contains(Char c) const
Containment.
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::String antTypeFromAntDesc(const casacore::String &antDesc)
casacore::Bool summarizevps(const casacore::Bool verbose)
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};
casacore::Bool setpbantresptable(const casacore::String &telescope, const casacore::String &othertelescope, const casacore::Bool dopb, const casacore::String &tablepath)
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)
Bool empty() const
Test for empty.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.