Class Weather

Class Documentation

class Weather

Basic weather information sufficient for a simple model for air mass or refraction

Weather is immutable.

Public Functions

Weather(double airTemperature, double airPressure, double humidity)

Construct a Weather

Parameters
  • [in] airTemperature: outside air temperature (C)

  • [in] airPressure: outside air pressure (Pascal)

  • [in] humidity: outside relative humidity (%)

Exceptions
  • lsst::pex::exceptions::InvalidParameterError: if humidity < 0

~Weather()
Weather(Weather const&)
Weather(Weather&&)
Weather &operator=(Weather const&)
Weather &operator=(Weather&&)
bool operator==(Weather const &other) const
bool operator!=(Weather const &other) const
std::size_t hash_value() const

Return a hash of this object.

double getAirTemperature() const

get outside air temperature (C)

double getAirPressure() const

get outside air pressure (Pascal)

double getHumidity() const

get outside relative humidity (%)