lsst.jointcal  15.0-7-gab4c137+6
ConstrainedAstrometryModel.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 #ifndef LSST_JOINTCAL_CONSTRAINED_ASTROMETRY_MODEL_H
3 #define LSST_JOINTCAL_CONSTRAINED_ASTROMETRY_MODEL_H
4 
5 #include "memory" // for std::*_ptr
6 
8 
9 class CcdImage;
10 
12 #include "lsst/jointcal/Gtransfo.h"
13 #include "lsst/jointcal/Frame.h"
17 #include "lsst/jointcal/CcdImage.h"
18 
19 #include <map>
20 
21 namespace lsst {
22 namespace jointcal {
23 
32 public:
33  ConstrainedAstrometryModel(CcdImageList const &ccdImageList,
35  int visitOrder);
36 
42 
43  // The following routines are the interface to AstrometryFit
45  AstrometryMapping const *getMapping(CcdImage const &) const;
46 
51  unsigned assignIndices(std::string const &whatToFit, unsigned firstIndex);
52 
57  void offsetParams(Eigen::VectorXd const &Delta);
58 
63  void freezeErrorTransform();
64 
66  Gtransfo const &getChipTransfo(CcdIdType const chip) const;
67 
69  Gtransfo const &getVisitTransfo(VisitIdType const &visit) const;
70 
73 
80  return _sky2TP->getSky2TP(ccdImage);
81  }
82 
85 
86 private:
91  bool _fittingChips, _fittingVisits;
92 
94  AstrometryMapping *findMapping(CcdImage const &ccdImage) const;
95 };
96 } // namespace jointcal
97 } // namespace lsst
98 
99 #endif // LSST_JOINTCAL_CONSTRAINED_ASTROMETRY_MODEL_H
const std::shared_ptr< Gtransfo const > getSky2TP(CcdImage const &ccdImage) const
The mapping of sky coordinates (i.e.
unsigned assignIndices(std::string const &whatToFit, unsigned firstIndex)
Positions the various parameter sets into the parameter vector, starting at firstIndex.
void freezeErrorTransform()
From there on, measurement errors are propagated using the current transfos (and no longer evolve)...
Interface class between AstrometryFit and an actual model for the Mapping (s) from pixels to some tan...
std::vector< VisitIdType > getVisits() const
Access to array of visits involved in the solution.
std::shared_ptr< afw::geom::SkyWcs > makeSkyWcs(CcdImage const &ccdImage) const
Make a SkyWcs that contains this model.
ConstrainedAstrometryModel & operator=(ConstrainedAstrometryModel const &)=delete
Gtransfo const & getVisitTransfo(VisitIdType const &visit) const
Access to mappings.
STL class.
STL class.
Class for a simple mapping implementing a generic Gtransfo.
void offsetParams(Eigen::VectorXd const &Delta)
Dispaches the offsets after a fit step into the actual locations of parameters.
Gtransfo const & getChipTransfo(CcdIdType const chip) const
Access to mappings.
STL class.
a virtual (interface) class for geometric transformations.
Definition: Gtransfo.h:42
int VisitIdType
Definition: CcdImage.h:25
virtual class needed in the abstraction of the distortion model
AstrometryMapping const * getMapping(CcdImage const &) const
Mapping associated to a given CcdImage.
Handler of an actual image from a single CCD.
Definition: CcdImage.h:35
This is the model used to fit mappings as the combination of a transformation depending on the chip n...
ConstrainedAstrometryModel(CcdImageList const &ccdImageList, std::shared_ptr< ProjectionHandler const > projectionHandler, int chipOrder, int visitOrder)