LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
41 return (_airTemperature ==
other.getAirTemperature() && _airPressure ==
other.getAirPressure() &&
42 _humidity ==
other.getHumidity());
50 void Weather::validate()
const {
51 if (_humidity < 0.0) {
53 os <<
"Relative humidity = " << _humidity <<
" must not be negative";
table::Key< double > airPressure
table::Key< double > airTemperature
Basic weather information sufficient for a simple model for air mass or refraction.
table::Key< double > humidity
std::size_t hash_value() const noexcept
Return a hash of this object.
double getAirPressure() const noexcept
get outside air pressure (Pascal)
ItemVariant const * other
double getHumidity() const noexcept
get outside relative humidity (%)
Weather(double airTemperature, double airPressure, double humidity)
Construct a Weather.
A base class for image defects.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
double getAirTemperature() const noexcept
get outside air temperature (C)
bool operator==(Weather const &other) const noexcept
std::size_t hashCombine(std::size_t seed) noexcept
Combine hashes.
Reports invalid arguments.
std::ostream & operator<<(std::ostream &os, Observatory const &obs)
Print an Observatory to the stream.