23 #include "pybind11/pybind11.h" 55 py::module::import(
"lsst.daf.base");
56 py::module::import(
"lsst.geom");
57 py::module::import(
"lsst.afw.coord.observatory");
58 py::module::import(
"lsst.afw.coord.weather");
61 py::class_<VisitInfo, std::shared_ptr<VisitInfo>>
cls(mod,
"VisitInfo");
64 py::enum_<RotType>(mod,
"RotType")
65 .value(
"UNKNOWN", RotType::UNKNOWN)
66 .value(
"SKY", RotType::SKY)
67 .value(
"HORIZON", RotType::HORIZON)
68 .value(
"MOUNT", RotType::MOUNT)
76 "exposureId"_a = 0,
"exposureTime"_a = nan,
"darkTime"_a = nan,
"date"_a =
daf::base::DateTime(),
79 "boresightRotAngle"_a = nanAngle,
"rotType"_a = RotType::UNKNOWN,
82 cls.def(py::init<daf::base::PropertySet const &>(),
"metadata"_a);
83 cls.def(py::init<VisitInfo const &>(),
"visitInfo"_a);
85 table::io::python::addPersistableMethods<VisitInfo>(
cls);
94 cls.def(
"getExposureId", &VisitInfo::getExposureId);
95 cls.def(
"getExposureTime", &VisitInfo::getExposureTime);
96 cls.def(
"getDarkTime", &VisitInfo::getDarkTime);
97 cls.def(
"getDate", &VisitInfo::getDate);
98 cls.def(
"getUt1", &VisitInfo::getUt1);
99 cls.def(
"getEra", &VisitInfo::getEra);
100 cls.def(
"getBoresightRaDec", &VisitInfo::getBoresightRaDec);
101 cls.def(
"getBoresightAzAlt", &VisitInfo::getBoresightAzAlt);
102 cls.def(
"getBoresightAirmass", &VisitInfo::getBoresightAirmass);
103 cls.def(
"getBoresightParAngle", &VisitInfo::getBoresightParAngle);
104 cls.def(
"getBoresightRotAngle", &VisitInfo::getBoresightRotAngle);
105 cls.def(
"getRotType", &VisitInfo::getRotType);
106 cls.def(
"getObservatory", &VisitInfo::getObservatory);
107 cls.def(
"getWeather", &VisitInfo::getWeather);
108 cls.def(
"isPersistable", &VisitInfo::isPersistable);
109 cls.def(
"getLocalEra", &VisitInfo::getLocalEra);
110 cls.def(
"getBoresightHourAngle", &VisitInfo::getBoresightHourAngle);
void addOutputOp(PyClass &cls, std::string const &method)
Add __str__ or __repr__ method implemented by operator<<.
Class for handling dates/times, including MJD, UTC, and TAI.
PYBIND11_MODULE(visitInfo, mod)
Hold the location of an observatory.
Information about a single exposure of an imaging camera.
A class representing an angle.
void setVisitInfoMetadata(daf::base::PropertyList &metadata, VisitInfo const &visitInfo)
Set FITS metadata from a VisitInfo.
A base class for image defects.
Basic weather information sufficient for a simple model for air mass or refraction.
Point in an unspecified spherical coordinate system.
int stripVisitInfoKeywords(daf::base::PropertySet &metadata)
Remove VisitInfo-related keywords from the metadata.
ItemVariant const * other
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...