CARMA C++
|
Observatory specifies the parameters of a given observatory: name, reference location (longitude, latitude, altitude), optional pad names and locations, and optional array configurations. More...
#include <carma/services/Observatory.h>
Public Member Functions | |
std::string | getName () const |
const carma::services::Pad | getPad (const std::string &name) |
Request a specific Pad by name. More... | |
std::map< std::string, carma::services::Pad > | getPadMap () const |
const std::vector < carma::services::Pad > | getPadsInConfig (const std::string &arrayConfig) |
Get all the pads in a specific array configuration. More... | |
carma::services::Location | getReference () const |
carma::services::AntennaCoordinates | getReferenceCoordinates () const |
carma::services::Pad | getReferencePad () const |
carma::services::PadIterator | mapBegin () const |
carma::services::PadIterator | mapEnd () const |
int | numBaselinesInConfig (const std::string &arrayConfig) |
int | numConfigs () const |
int | numPads () const |
int | numPadsInConfig (const std::string &arrayConfig) |
Observatory (const std::string &observatory=CARMA_OBSERVATORY) | |
Constructor using a name from the Observatory.cat catalog that should live in CARMA/conf/catalogs/Observatory.cat Examples are "carma", "ovro", "wsrt" etc.etc. More... | |
std::string | toString () const |
virtual | ~Observatory () |
Destructor. More... | |
Observatory specifies the parameters of a given observatory: name, reference location (longitude, latitude, altitude), optional pad names and locations, and optional array configurations.
The class is instantiated from the file conf/catalogs/observatory/Observatory.cat. Once instantiated, the object can be queried for any of its properties, and pads can be accessed individually or in groups. All properties, including Pads, are read-only.
Definition at line 34 of file Observatory.h.
carma::services::Observatory::Observatory | ( | const std::string & | observatory = CARMA_OBSERVATORY | ) |
Constructor using a name from the Observatory.cat catalog that should live in CARMA/conf/catalogs/Observatory.cat Examples are "carma", "ovro", "wsrt" etc.etc.
The match is case-insensitive.
observatory | Name of the observatory; default is "carma". |
carma::util::NotFoundException | if the an observatory matching the requested name is not found. |
carma::util::NotFoundException | if the a position called "reference" for the named observatory is not found. |
|
virtual |
Destructor.
std::string carma::services::Observatory::getName | ( | ) | const |
Definition at line 58 of file Observatory.h.
const carma::services::Pad carma::services::Observatory::getPad | ( | const std::string & | name | ) |
Request a specific Pad by name.
The | name of the requested pad |
carma::util::NotFoundException | if the pad is not found. |
std::map<std::string, carma::services::Pad> carma::services::Observatory::getPadMap | ( | ) | const |
Definition at line 100 of file Observatory.h.
const std::vector<carma::services::Pad> carma::services::Observatory::getPadsInConfig | ( | const std::string & | arrayConfig | ) |
Get all the pads in a specific array configuration.
arrayConfig | The name of the array configuration to retrieve. |
carma::util::NotFoundException | if no matching Pads are found (the requested array configuration is not in this Observatory). |
carma::services::Location carma::services::Observatory::getReference | ( | ) | const |
Definition at line 67 of file Observatory.h.
carma::services::AntennaCoordinates carma::services::Observatory::getReferenceCoordinates | ( | ) | const |
carma::services::Pad carma::services::Observatory::getReferencePad | ( | ) | const |
carma::services::PadIterator carma::services::Observatory::mapBegin | ( | ) | const |
carma::services::PadIterator carma::services::Observatory::mapEnd | ( | ) | const |
int carma::services::Observatory::numBaselinesInConfig | ( | const std::string & | arrayConfig | ) |
arrayConfig | The name of the array configuration to retrieve. |
int carma::services::Observatory::numConfigs | ( | ) | const |
Definition at line 132 of file Observatory.h.
int carma::services::Observatory::numPads | ( | ) | const |
Definition at line 140 of file Observatory.h.
int carma::services::Observatory::numPadsInConfig | ( | const std::string & | arrayConfig | ) |
arrayConfig | The name of the array configuration to retrieve. |
std::string carma::services::Observatory::toString | ( | ) | const |