Class Observatory

Class Documentation

class Observatory

Hold the location of an observatory

Public Functions

Observatory(lsst::geom::Angle const longitude, lsst::geom::Angle const latitude, double const elevation)

Construct an Observatory with longitude and latitude specified as lsst::geom::Angle

Parameters
  • [in] longitude: telescope longitude (positive values are E of Greenwich)

  • [in] latitude: telescope latitude

  • [in] elevation: telescope elevation (meters above reference spheroid)

Observatory(std::string const &longitude, std::string const &latitude, double const elevation)

Construct an Observatory with longitude and latitude specified as sexagesimal strings

Parameters
  • [in] longitude: telescope longitude (dd:mm:ss.s, positive values are E of Greenwich)

  • [in] latitude: telescope latitude (dd:mm:ss.s)

  • [in] elevation: telescope elevation (meters above reference spheroid)

~Observatory()
Observatory(Observatory const&)
Observatory(Observatory&&)
Observatory &operator=(Observatory const&)
Observatory &operator=(Observatory&&)
void setLongitude(lsst::geom::Angle const longitude)

set telescope longitude

void setLatitude(lsst::geom::Angle const latitude)

set telescope latitude (positive values are E of Greenwich)

void setElevation(double const elevation)

set telescope elevation (meters above reference spheroid)

lsst::geom::Angle getLongitude() const

get telescope longitude (positive values are E of Greenwich)

lsst::geom::Angle getLatitude() const

get telescope latitude

double getElevation() const

get telescope elevation (meters above reference spheroid)

std::string toString() const

get string representation

bool operator==(Observatory const &rhs) const
bool operator!=(Observatory const &rhs) const
std::size_t hash_value() const

Return a hash of this object.