25 #include "pybind11/pybind11.h" 26 #include "pybind11/eigen.h" 27 #include "pybind11/stl.h" 28 #include "ndarray/pybind11.h" 29 #include "ndarray/eigen.h" 46 py::class_<AstrometryModel, std::shared_ptr<AstrometryModel>>
cls(mod,
"AstrometryModel");
48 cls.def(
"getNpar", &AstrometryModel::getNpar);
49 cls.def(
"getMapping", &AstrometryModel::getMapping, py::return_value_policy::reference_internal);
50 cls.def(
"assignIndices", &AstrometryModel::assignIndices);
51 cls.def(
"offsetParams", &AstrometryModel::offsetParams);
52 cls.def(
"getSkyToTangentPlane", &AstrometryModel::getSkyToTangentPlane);
54 cls.def(
"getTotalParameters", &AstrometryModel::getTotalParameters);
58 void declareSimpleAstrometryModel(
py::module &mod) {
59 py::class_<SimpleAstrometryModel, std::shared_ptr<SimpleAstrometryModel>, AstrometryModel>
cls(
60 mod,
"SimpleAstrometryModel");
64 "ccdImageList"_a,
"projectionHandler"_a,
"initFromWcs"_a,
"nNotFit"_a = 0,
"order"_a = 3);
66 cls.def(
"getTransform", &SimpleAstrometryModel::getTransform,
67 py::return_value_policy::reference_internal);
70 void declareConstrainedAstrometryModel(
py::module &mod) {
71 py::class_<ConstrainedAstrometryModel, std::shared_ptr<ConstrainedAstrometryModel>, AstrometryModel>
cls(
72 mod,
"ConstrainedAstrometryModel");
75 "ccdImageList"_a,
"projectionHandler"_a,
"chipOrder"_a,
"visitOrder"_a);
77 cls.def(
"getChipTransform", &ConstrainedAstrometryModel::getChipTransform,
78 py::return_value_policy::reference_internal);
79 cls.def(
"getVisitTransform", &ConstrainedAstrometryModel::getVisitTransform,
80 py::return_value_policy::reference_internal);
84 py::module::import(
"lsst.jointcal.ccdImage");
85 py::module::import(
"lsst.jointcal.astrometryTransform");
86 py::module::import(
"lsst.jointcal.astrometryMappings");
87 declareAstrometryModel(mod);
88 declareSimpleAstrometryModel(mod);
89 declareConstrainedAstrometryModel(mod);
PYBIND11_MODULE(camera, mod)
A base class for image defects.
std::shared_ptr< SkyWcs > makeSkyWcs(daf::base::PropertySet &metadata, bool strip=false)
Construct a SkyWcs from FITS keywords.
std::list< std::shared_ptr< CcdImage > > CcdImageList