25 #include "pybind11/pybind11.h"
26 #include "pybind11/stl.h"
31 using namespace pybind11::literals;
38 py::class_<CcdImage, std::shared_ptr<CcdImage>>
cls(mod,
"CcdImage");
44 "record"_a,
"wcs"_a,
"visitInfo"_a,
"bbox"_a,
"filter"_a,
"photoCalib"_a,
"detector"_a,
"visit"_a,
45 "ccd"_a,
"fluxField"_a);
47 cls.def(
"getPhotoCalib", &CcdImage::getPhotoCalib);
49 cls.def(
"countStars", &CcdImage::countStars);
51 cls.def(
"resetCatalogForFit", &CcdImage::resetCatalogForFit);
53 cls.def(
"getBoresightRaDec", &CcdImage::getBoresightRaDec);
54 cls.def_property_readonly(
"boresightRaDec", &CcdImage::getBoresightRaDec);
56 cls.def(
"getCcdId", &CcdImage::getCcdId);
57 cls.def_property_readonly(
"ccdId", &CcdImage::getCcdId);
59 cls.def(
"getImageFrame", &CcdImage::getImageFrame, py::return_value_policy::reference_internal);
60 cls.def_property_readonly(
"imageFrame", &CcdImage::getImageFrame,
61 py::return_value_policy::reference_internal);
63 cls.def(
"getName", &CcdImage::getName);
64 cls.def_property_readonly(
"name", &CcdImage::getName);
66 cls.def(
"getVisit", &CcdImage::getVisit);
67 cls.def_property_readonly(
"visit", &CcdImage::getVisit);
69 cls.def(
"getDetector", &CcdImage::getDetector, py::return_value_policy::reference_internal);
71 cls.def(
"getCommonTangentPoint", &CcdImage::getCommonTangentPoint,
72 py::return_value_policy::reference_internal);
73 cls.def(
"setCommonTangentPoint", &CcdImage::setCommonTangentPoint);
74 cls.def_property(
"commonTangentPoint", &CcdImage::getCommonTangentPoint, &CcdImage::setCommonTangentPoint,
75 py::return_value_policy::reference_internal);
77 cls.def(
"getSkyToTangentPlane", &CcdImage::getSkyToTangentPlane,
78 py::return_value_policy::reference_internal);
79 cls.def(
"getReadWcs", &CcdImage::getReadWcs, py::return_value_policy::reference_internal);