30 #ifndef IMAGES_ANTENNARESPONSES_H
31 #define IMAGES_ANTENNARESPONSES_H
A Measure: astronomical direction.
casacore::uInt numRows_p
here a complete copy of the AntennaResponses table is stored
casacore::Vector< casacore::String > paths_p
after initialization, this contains the name of the path where the AntennaResponses table was read fr...
casacore::Bool init(const casacore::String &path="")
Takes the path (as taken from the new ANTENNA_RESPONSES column of the Observatories table) and uses i...
casacore::Vector< casacore::String > AntennaType_p
casacore::Vector< casacore::MDirection > ValidCenter_p
Internal value for MFrequency.
casacore::Bool getRowAndIndex(casacore::uInt &row, casacore::uInt &subBand, const casacore::String &obsName, const casacore::MEpoch &obsTime, const casacore::MFrequency &freq, const FuncTypes &requFType=ANY, const casacore::String &antennaType="", const casacore::MDirection ¢er=casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL), const casacore::String &receiverType="", const casacore::Int &beamNumber=0)
find the row containing the information pertinent to the given parameters (this is also the index in ...
casacore::Vector< casacore::Vector< FuncTypes > > FuncType_p
casacore::Bool append(const casacore::String &path)
As init but does not overwrite the table (member vectors) in memory.
casacore::Vector< casacore::MDirection > ValidCenterMin_p
AntennaResponses provides access to antenna response data.
casacore::Vector< casacore::String > ReceiverType_p
casacore::Bool getImageName(casacore::String &functionImageName, casacore::uInt &funcChannel, casacore::MFrequency &nomFreq, FuncTypes &fType, casacore::MVAngle &rotAngOffset, const casacore::String &obsName, const casacore::MEpoch &obsTime, const casacore::MFrequency &freq, const FuncTypes &requFType=ANY, const casacore::String &antennaType="", const casacore::MDirection ¢er=casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL), const casacore::String &receiverType="", const casacore::Int &beamNumber=0)
getRowAndIndex is then used by the following methods
casacore::Vector< casacore::Vector< casacore::String > > FuncName_p
A Measure: instant in time.
casacore::Vector< casacore::MDirection > ValidCenterMax_p
casacore::Vector< casacore::Vector< casacore::MVFrequency > > NomFreq_p
A Measure: wave characteristics.
casacore::Bool isInit()
returns true if paths_p has at least one member
casacore::Vector< casacore::Vector< casacore::MVAngle > > RotAngOffset_p
casacore::Vector< casacore::Vector< casacore::uInt > > FuncChannel_p
AntennaResponses()
this can of course be extended for additional types if necessary
void create(const casacore::String &path)
Create an new AntennaReponses table on disk at the given path and fill it with the table contents pre...
casacore::Vector< casacore::String > ObsName_p
casacore::Vector< casacore::Vector< casacore::MVFrequency > > SubbandMinFreq_p
std::string path(const std::string &name)
casacore::Vector< casacore::uInt > NumSubbands_p
casacore::Vector< casacore::Int > BeamNumber_p
casacore::Bool putRow(casacore::uInt &row, const casacore::String &obsName, const casacore::Int &beamId, const casacore::Vector< casacore::String > &bandName, const casacore::Vector< casacore::MVFrequency > &subbandMinFreq, const casacore::Vector< casacore::MVFrequency > &subbandMaxFreq, const casacore::Vector< FuncTypes > &funcType, const casacore::Vector< casacore::String > &funcName, const casacore::Vector< casacore::uInt > &funcChannel, const casacore::Vector< casacore::MVFrequency > &nomFreq, const casacore::Vector< casacore::MVAngle > &rotAngOffset, const casacore::String &antennaType="", const casacore::MEpoch &startTime=casacore::MEpoch(casacore::MVEpoch(casacore::Quantity(40588.,"d")), casacore::MEpoch::UTC), const casacore::MDirection ¢er=casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL), const casacore::MDirection &validCenterMin=casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(0.,"deg"), casacore::MDirection::AZEL), const casacore::MDirection &validCenterMax=casacore::MDirection(casacore::Quantity(360.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL), const casacore::String &receiverType="", const casacore::Int &beamNumber=0)
Put the given row into the present antenna reponses table (in memory).
bool Bool
Define the standard types used by Casacore.
FuncTypes FuncType(casacore::Int i)
Convert from casacore::Int to FuncType.
casacore::Vector< casacore::Vector< casacore::String > > BandName_p
casacore::Vector< casacore::Vector< casacore::MVFrequency > > SubbandMaxFreq_p
casacore::Vector< casacore::MEpoch > StartTime_p
A class for high precision time.
String: the storage and methods of handling collections of characters.
casacore::Bool getBandName(casacore::String &bandName, const casacore::String &obsName, const casacore::MVFrequency &freq)
get the name of the band corresponding to the frequency (in the rest frame of the observatory) ...
Class to handle angle type conversions and I/O.
casacore::Vector< casacore::Int > BeamId_p
casacore::Vector< casacore::uInt > pathIndex_p
not part of the table but same number of elements: memory of the path from which the row was read (in...
casacore::Bool getAntennaTypes(casacore::Vector< casacore::String > &antTypes, const casacore::String &obsName, const casacore::MEpoch &obsTime, const casacore::MFrequency &freq, const FuncTypes &requFType=ANY, const casacore::MDirection ¢er=casacore::MDirection(casacore::Quantity(0.,"deg"), casacore::Quantity(90.,"deg"), casacore::MDirection::AZEL), const casacore::String &receiverType="", const casacore::Int &beamNumber=0)
Get a vector containing all unique antenna type strings for the given constraints.