LSST Applications g04a91732dc+146a938ab0,g07dc498a13+80b84b0d75,g0fba68d861+0decac7526,g1409bbee79+80b84b0d75,g1a7e361dbc+80b84b0d75,g1fd858c14a+f6e422e056,g20f46db602+483a84333a,g21d47ad084+4a6cd485de,g35bb328faa+fcb1d3bbc8,g42c1b31a95+a1301e4c20,g4d39ba7253+9b833be27e,g4e0f332c67+5d362be553,g53246c7159+fcb1d3bbc8,g60b5630c4e+9b833be27e,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g8852436030+790117df0f,g89139ef638+80b84b0d75,g8d6b6b353c+9b833be27e,g9125e01d80+fcb1d3bbc8,g989de1cb63+80b84b0d75,g9f33ca652e+9c6b68d7f3,ga9baa6287d+9b833be27e,gaaedd4e678+80b84b0d75,gabe3b4be73+1e0a283bba,gb1101e3267+9f3571abad,gb58c049af0+f03b321e39,gb90eeb9370+691e4ab549,gc741bbaa4f+5f483edd21,gcf25f946ba+790117df0f,gd24842266e+c54cdbdbd2,gd315a588df+5b65d88fe4,gd6cbbdb0b4+c8606af20c,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+c99546153d,ge278dab8ac+932305ba37,ge82c20c137+76d20ab76d,w.2025.10
LSST Data Management Base Package
Loading...
Searching...
No Matches
lsst::meas::astrom::sip Namespace Reference

Namespaces

namespace  genDistortedImage
 
namespace  sourceMatchStatistics
 

Classes

class  CreateWcsWithSip
 Measure the distortions in an image plane and express them a SIP polynomials. More...
 
class  LeastSqFitter1d
 Fit an lsst::afw::math::Function1 object to a set of data points in one dimension. More...
 
class  LeastSqFitter2d
 Fit an lsst::afw::math::Function1 object to a set of data points in two dimensions. More...
 
class  MatchSrcToCatalogue
 Match a SourceSet of objects with known ra/dec with a SourceSet of objects with known xy positions Take a catalogue of objects with known positions, a catalogue of objects with known xy, and a wcs to convert one xy <--> ra/dec. More...
 

Functions

template<class MatchT>
CreateWcsWithSip< MatchT > makeCreateWcsWithSip (std::vector< MatchT > const &matches, afw::geom::SkyWcs const &linearWcs, int const order, geom::Box2I const &bbox=geom::Box2I(), int const ngrid=0)
 Factory function for CreateWcsWithSip.
 
void wrapCreateWcsWithSip (WrapperCollection &wrappers)
 
void wrapLeastSqFitter1d (WrapperCollection &wrappers)
 
void wrapLeastSqFitter2d (WrapperCollection &wrappers)
 
void wrapMatchSrcToCatalogue (WrapperCollection &wrappers)
 

Function Documentation

◆ makeCreateWcsWithSip()

template<class MatchT>
CreateWcsWithSip< MatchT > lsst::meas::astrom::sip::makeCreateWcsWithSip ( std::vector< MatchT > const & matches,
afw::geom::SkyWcs const & linearWcs,
int const order,
geom::Box2I const & bbox = geom::Box2I(),
int const ngrid = 0 )

Factory function for CreateWcsWithSip.

Definition at line 168 of file CreateWcsWithSip.h.

170 {
171 return CreateWcsWithSip<MatchT>(matches, linearWcs, order, bbox, ngrid);
172}
Measure the distortions in an image plane and express them a SIP polynomials.

◆ wrapCreateWcsWithSip()

void lsst::meas::astrom::sip::wrapCreateWcsWithSip ( WrapperCollection & wrappers)

Definition at line 75 of file createWcsWithSip.cc.

75 {
76 declareCreateWcsWithSip<afw::table::ReferenceMatch>(wrappers, "CreateWcsWithSipReferenceMatch");
77 declareCreateWcsWithSip<afw::table::SourceMatch>(wrappers, "CreateWcsWithSipSourceMatch");
78}

◆ wrapLeastSqFitter1d()

void lsst::meas::astrom::sip::wrapLeastSqFitter1d ( WrapperCollection & wrappers)

Definition at line 63 of file leastSqFitter1d.cc.

63 {
64 declareLeastSqFitter1d<afw::math::PolynomialFunction1<double>>(wrappers, "LeastSqFitter1dPoly");
65}

◆ wrapLeastSqFitter2d()

void lsst::meas::astrom::sip::wrapLeastSqFitter2d ( WrapperCollection & wrappers)

Definition at line 62 of file leastSqFitter2d.cc.

62 {
63 declareLeastSqFitter2d<afw::math::PolynomialFunction1<double>>(wrappers, "LeastSqFitter2dPoly");
64}

◆ wrapMatchSrcToCatalogue()

void lsst::meas::astrom::sip::wrapMatchSrcToCatalogue ( WrapperCollection & wrappers)

Definition at line 41 of file matchSrcToCatalogue.cc.

41 {
42 using PyClass = py::class_<MatchSrcToCatalogue>;
43 wrappers.wrapType(PyClass(wrappers.module, "MatchSrcToCatalogue"), [](auto &mod, auto &cls) {
44 cls.def(py::init<afw::table::SimpleCatalog const &, afw::table::SourceCatalog const &,
45 std::shared_ptr<afw::geom::SkyWcs const>, geom::Angle>(),
46 "catSet"_a, "imgSet"_a, "wcs"_a, "dist"_a);
47
48 cls.def("setDist", &MatchSrcToCatalogue::setDist, "dist"_a);
49 cls.def("setWcs", &MatchSrcToCatalogue::setWcs, "wcs"_a);
50 cls.def("setCatSrcSet", &MatchSrcToCatalogue::setCatSrcSet, "catSet"_a);
51 cls.def("setImgSrcSet", &MatchSrcToCatalogue::setImgSrcSet, "srcSet"_a);
52 cls.def("findMatches", &MatchSrcToCatalogue::findMatches);
53 cls.def("getMatches", &MatchSrcToCatalogue::getMatches);
54 });
55}
PyType wrapType(PyType cls, ClassWrapperCallback function, bool setModuleName=true)
Add a type (class or enum) wrapper, deferring method and other attribute definitions until finish() i...
Definition python.h:391
pybind11::module module
The module object passed to the PYBIND11_MODULE block that contains this WrapperCollection.
Definition python.h:448