lsst.afw  13.0-73-gb2a4e38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
lsst::afw::coord::Observatory Class Reference

Hold the location of an observatory. More...

#include <Observatory.h>

Public Member Functions

 Observatory (lsst::afw::geom::Angle const longitude, lsst::afw::geom::Angle const latitude, double const elevation)
 Construct an Observatory with longitude and latitude specified as lsst::afw::geom::Angle. More...
 
 Observatory (std::string const &longitude, std::string const &latitude, double const elevation)
 Construct an Observatory with longitude and latitude specified as sexagesimal strings. More...
 
void setLongitude (lsst::afw::geom::Angle const longitude)
 set telescope longitude More...
 
void setLatitude (lsst::afw::geom::Angle const latitude)
 set telescope latitude (positive values are E of Greenwich) More...
 
void setElevation (double const elevation)
 set telescope elevation (meters above reference spheroid) More...
 
lsst::afw::geom::Angle getLongitude () const
 get telescope longitude (positive values are E of Greenwich) More...
 
lsst::afw::geom::Angle getLatitude () const
 get telescope latitude More...
 
double getElevation () const
 get telescope elevation (meters above reference spheroid) More...
 
std::string getLongitudeStr () const
 get telescope longitude as a dd:mm:ss.s string (positive values are E of Greenwich) More...
 
std::string getLatitudeStr () const
 get telescope latitude as a dd:mm:ss.s string More...
 
std::string toString () const
 get string representation More...
 
bool operator== (Observatory const &rhs) const
 
bool operator!= (Observatory const &rhs) const
 

Detailed Description

Hold the location of an observatory.

Definition at line 41 of file Observatory.h.

Constructor & Destructor Documentation

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

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

Parameters
[in]longitudetelescope longitude (positive values are E of Greenwich)
[in]latitudetelescope latitude
[in]elevationtelescope elevation (meters above reference spheroid)

Definition at line 38 of file Observatory.cc.

lsst::afw::coord::Observatory::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]longitudetelescope longitude (dd:mm:ss.s, positive values are E of Greenwich)
[in]latitudetelescope latitude (dd:mm:ss.s)
[in]elevationtelescope elevation (meters above reference spheroid)

Definition at line 42 of file Observatory.cc.

Member Function Documentation

double lsst::afw::coord::Observatory::getElevation ( ) const
inline

get telescope elevation (meters above reference spheroid)

Definition at line 75 of file Observatory.h.

afw::geom::Angle lsst::afw::coord::Observatory::getLatitude ( ) const

get telescope latitude

Definition at line 49 of file Observatory.cc.

std::string lsst::afw::coord::Observatory::getLatitudeStr ( ) const

get telescope latitude as a dd:mm:ss.s string

Definition at line 59 of file Observatory.cc.

afw::geom::Angle lsst::afw::coord::Observatory::getLongitude ( ) const

get telescope longitude (positive values are E of Greenwich)

Definition at line 47 of file Observatory.cc.

std::string lsst::afw::coord::Observatory::getLongitudeStr ( ) const

get telescope longitude as a dd:mm:ss.s string (positive values are E of Greenwich)

Definition at line 57 of file Observatory.cc.

bool lsst::afw::coord::Observatory::operator!= ( Observatory const &  rhs) const
inline

Definition at line 90 of file Observatory.h.

bool lsst::afw::coord::Observatory::operator== ( Observatory const &  rhs) const
inline

Definition at line 84 of file Observatory.h.

void lsst::afw::coord::Observatory::setElevation ( double const  elevation)

set telescope elevation (meters above reference spheroid)

Definition at line 55 of file Observatory.cc.

void lsst::afw::coord::Observatory::setLatitude ( lsst::afw::geom::Angle const  latitude)

set telescope latitude (positive values are E of Greenwich)

Definition at line 51 of file Observatory.cc.

void lsst::afw::coord::Observatory::setLongitude ( lsst::afw::geom::Angle const  longitude)

set telescope longitude

Definition at line 53 of file Observatory.cc.

std::string lsst::afw::coord::Observatory::toString ( ) const

get string representation

Definition at line 61 of file Observatory.cc.


The documentation for this class was generated from the following files: