25 #include <pybind11/pybind11.h>
29 namespace py = pybind11;
30 using namespace pybind11::literals;
37 py::module mod(
"_weather",
"Python wrapper for afw _weather library");
39 py::class_<lsst::afw::coord::Weather>
cls(mod,
"Weather");
42 cls.def(py::init<double, double, double>(),
"airTemperature"_a,
"airPressure"_a,
"humidity"_a);
43 cls.def(py::init<Weather const &>(),
"weather"_a);
46 cls.def(
"__eq__", [](
Weather const &
self,
Weather const &other) {
return self == other; },
48 cls.def(
"__ne__", [](
Weather const &
self,
Weather const &other) {
return self != other; },
55 auto streamStr = [](
Weather const &
self) {
56 std::stringstream buffer;
60 cls.def(
"__str__", streamStr);
61 cls.def(
"__repr__", streamStr);
PYBIND11_PLUGIN(_cameraPoint)
Basic weather information sufficient for a simple model for air mass or refraction.
double getHumidity() const
get outside relative humidity (%)
double getAirTemperature() const
get outside air temperature (C)
double getAirPressure() const
get outside air pressure (Pascal)