2 #ifndef LSST_JOINTCAL_CONSTRAINED_POLY_MODEL_H
3 #define LSST_JOINTCAL_CONSTRAINED_POLY_MODEL_H
33 typedef std::map<const CcdImage *, std::unique_ptr<TwoTransfoMapping>> mappingMapType;
34 mappingMapType _mappings;
35 typedef std::map<CcdIdType, std::unique_ptr<SimpleGtransfoMapping>> chipMapType;
37 typedef std::map<VisitIdType, std::unique_ptr<SimpleGtransfoMapping>> visitMapType;
38 visitMapType _visitMap;
40 bool _fittingChips, _fittingVisits;
46 bool initFromWCS,
unsigned nNotFit = 0);
62 unsigned assignIndices(
unsigned firstIndex, std::string
const &whatToFit);
83 std::vector<VisitIdType>
getVisits()
const;
97 #endif // LSST_JOINTCAL_CONSTRAINED_POLY_MODEL_H
ConstrainedPolyModel(CcdImageList const &ccdImageList, ProjectionHandler const *projectionHandler, bool initFromWCS, unsigned nNotFit=0)
void offsetParams(Eigen::VectorXd const &Delta)
Dispaches the offsets after a fit step into the actual locations of parameters.
virtual class needed in the abstraction of the distortion model
Gtransfo const & getChipTransfo(CcdIdType const chip) const
Access to mappings.
Interface class between AstrometryFit and an actual model for the Mapping (s) from pixels to some tan...
virtual const Gtransfo * getSky2TP(const CcdImage &ccdImage) const =0
ConstrainedPolyModel & operator=(ConstrainedPolyModel const &)=delete
const Gtransfo * getSky2TP(CcdImage const &ccdImage) const
The mapping of sky coordinates (i.e.
This is the model used to fit mappings as the combination of a transformation depending on the chip n...
rectangle with sides parallel to axes.
std::vector< VisitIdType > getVisits() const
Access to array of visits involved in the solution.
std::shared_ptr< TanSipPix2RaDec > produceSipWcs(CcdImage const &ccdImage) const
Cook up a SIP WCS.
This is a virtual class that allows a lot of freedom in the choice of the projection from "Sky" (wher...
a virtual (interface) class for geometric transformations.
Gtransfo const & getVisitTransfo(VisitIdType const &visit) const
Access to mappings.
std::list< std::shared_ptr< CcdImage > > CcdImageList
Mapping const * getMapping(CcdImage const &) const
Mapping associated to a given CcdImage.
unsigned assignIndices(unsigned firstIndex, std::string const &whatToFit)
Positions the various parameter sets into the parameter vector, starting at firstIndex.
Handler of an actual image from a single CCD.
void freezeErrorScales()
From there on, measurement errors are propagated using the current transfos (and no longer evolve)...