28#include "lsst/utils/hashCombine.h"
44 _airTemperature == other.getAirTemperature();
46 _airPressure == other.getAirPressure();
49 return (tempMatch && presMatch && humiMatch);
54 return utils::hashCombine(17, _airTemperature, _airPressure, _humidity);
57void Weather::validate()
const {
58 if (_humidity < 0.0) {
60 os <<
"Relative humidity = " << _humidity <<
" must not be negative";
#define LSST_EXCEPT(type,...)
table::Key< double > airPressure
table::Key< double > airTemperature
table::Key< double > humidity
Basic weather information sufficient for a simple model for air mass or refraction.
bool operator==(Weather const &other) const noexcept
double getHumidity() const noexcept
get outside relative humidity (%)
double getAirPressure() const noexcept
get outside air pressure (Pascal)
double getAirTemperature() const noexcept
get outside air temperature (C)
Weather(double airTemperature, double airPressure, double humidity)
Construct a Weather.
std::size_t hash_value() const noexcept
Return a hash of this object.
std::ostream & operator<<(std::ostream &os, Observatory const &obs)
Print an Observatory to the stream.