23 #include "pybind11/pybind11.h"
25 #include "numpy/arrayobject.h"
26 #include "ndarray/pybind11.h"
34 namespace py = pybind11;
35 using namespace py::literals;
44 py::module mod(
"tanWcs");
46 py::module::import(
"lsst.afw.image.wcs");
48 if (_import_array() < 0) {
49 PyErr_SetString(PyExc_ImportError,
"numpy.core.multiarray failed to import");
53 table::io::python::declarePersistableFacade<TanWcs>(mod,
"TanWcs");
58 std::string
const &, std::string
const &, std::string
const &>(),
59 "crval"_a,
"crpix"_a,
"cd"_a,
"equinox"_a = 2000,
"raDecSys"_a =
"FK5",
"crunits1"_a =
"deg",
60 "crunits2"_a =
"deg");
62 Eigen::MatrixXd
const &, Eigen::MatrixXd
const &, Eigen::MatrixXd
const &,
63 Eigen::MatrixXd
const &,
double, std::string
const &, std::string
const &,
64 std::string
const &>(),
65 "crval"_a,
"crpix"_a,
"cd"_a,
"sipA"_a,
"sipB"_a,
"sipAp"_a,
"sipBp"_a,
"equinox"_a = 2000,
66 "raDecSys"_a =
"FK5",
"cunits1"_a =
"deg",
"cunits2"_a =
"deg");
69 cls.def(
"__eq__", &TanWcs::operator==, py::is_operator());
70 cls.def(
"__ne__", &TanWcs::operator!=, py::is_operator());
73 cls.def_static(
"decodeSipHeader", TanWcs::decodeSipHeader);
75 cls.def(
"pixelScale", &TanWcs::pixelScale);
76 cls.def(
"distortPixel", &TanWcs::distortPixel);
77 cls.def(
"undistortPixel", &TanWcs::undistortPixel);
78 cls.def(
"hasDistortion", &TanWcs::hasDistortion);
79 cls.def(
"getFitsMetadata", &TanWcs::getFitsMetadata);
80 cls.def(
"setDistortionMatrices", &TanWcs::setDistortionMatrices);
81 cls.def(
"getSipA", &TanWcs::getSipA, py::return_value_policy::copy);
82 cls.def(
"getSipB", &TanWcs::getSipB, py::return_value_policy::copy);
83 cls.def(
"getSipAp", &TanWcs::getSipAp, py::return_value_policy::copy);
84 cls.def(
"getSipBp", &TanWcs::getSipBp, py::return_value_policy::copy);
85 cls.def(
"isPersistable", &TanWcs::isPersistable);
Implementation of the WCS standard for a any projection.
PYBIND11_PLUGIN(_cameraPoint)
py::class_< TanWcs, std::shared_ptr< TanWcs >, table::io::PersistableFacade< TanWcs >, Wcs > PyTanWcs