lsst.jointcal
14.0-18-gbdafc55+4
|
Photometry model with constraints, \(M(x,y) = M_CCD(x,y)*M_visit(u,v)\). More...
#include <ConstrainedPhotometryModel.h>
Public Member Functions | |
ConstrainedPhotometryModel (CcdImageList const &ccdImageList, afw::geom::Box2D const &focalPlaneBBox, int visitDegree=7) | |
Construct a constrained photometry model. More... | |
ConstrainedPhotometryModel (ConstrainedPhotometryModel const &)=delete | |
No copy or move: there is only ever one instance of a given model (i.e. per ccd+visit) More... | |
ConstrainedPhotometryModel (ConstrainedPhotometryModel &&)=delete | |
ConstrainedPhotometryModel & | operator= (ConstrainedPhotometryModel const &)=delete |
ConstrainedPhotometryModel & | operator= (ConstrainedPhotometryModel &&)=delete |
unsigned | assignIndices (std::string const &whatToFit, unsigned firstIndex) override |
Assign indices to parameters involved in mappings, starting at firstIndex. More... | |
void | offsetParams (Eigen::VectorXd const &delta) override |
Offset the parameters by the provided amounts. More... | |
double | transform (CcdImage const &ccdImage, MeasuredStar const &measuredStar, double instFlux) const override |
Return the on-sky transformed flux for measuredStar on ccdImage. More... | |
double | transformError (CcdImage const &ccdImage, MeasuredStar const &measuredStar, double instFluxErr) const override |
Return the on-sky transformed flux uncertainty for measuredStar on ccdImage. More... | |
void | freezeErrorTransform () override |
Once this routine has been called, the error transform is not modified by offsetParams(). More... | |
void | getMappingIndices (CcdImage const &ccdImage, std::vector< unsigned > &indices) const override |
Get how this set of parameters (of length Npar()) map into the "grand" fit. More... | |
void | computeParameterDerivatives (MeasuredStar const &measuredStar, CcdImage const &ccdImage, Eigen::VectorXd &derivatives) const override |
Compute the parametric derivatives of this model. More... | |
std::shared_ptr< afw::image::PhotoCalib > | toPhotoCalib (CcdImage const &ccdImage) const override |
Return the mapping of ccdImage represented as a PhotoCalib. More... | |
void | dump (std::ostream &stream=std::cout) const override |
Dump the contents of the transfos, for debugging. More... | |
unsigned | getNpar (CcdImage const &ccdImage) const |
Return the number of parameters in the mapping of CcdImage. More... | |
PhotometryMappingBase const & | getMapping (CcdImage const &ccdImage) const |
Get the mapping associated with ccdImage. More... | |
Photometry model with constraints, \(M(x,y) = M_CCD(x,y)*M_visit(u,v)\).
This model consists of the following components:
Because this model's parameters are degenerate under multiplication by a constant, \(M=(a*M_CCD)*(1/a*M_visit)\), we hold one CCD's zero point fixed to remove that degeneracy.
Definition at line 25 of file ConstrainedPhotometryModel.h.
|
explicit |
Construct a constrained photometry model.
ccdImageList | The list of CCDImages to construct the model for. | |
focalPlaneBBox | The bounding box of the camera's focal plane, defining the domain of the visit polynomial. | |
[in] | visitDegree | The degree of the visit polynomial. |
Definition at line 22 of file ConstrainedPhotometryModel.cc.
|
delete |
No copy or move: there is only ever one instance of a given model (i.e. per ccd+visit)
|
delete |
|
overridevirtual |
Assign indices to parameters involved in mappings, starting at firstIndex.
[in] | whatToFit | String containing parameters to fit. |
[in] | firstIndex | Index to start assigning at. |
Implements lsst::jointcal::PhotometryModel.
Definition at line 77 of file ConstrainedPhotometryModel.cc.
|
overridevirtual |
Compute the parametric derivatives of this model.
[in] | measuredStar | The measured star with the position and flux to compute at. |
[in] | ccdImage | The ccdImage containing the measured star, to find the correct mapping. |
[out] | derivatives | The computed derivatives. Must be pre-allocated to the correct size. |
Implements lsst::jointcal::PhotometryModel.
Definition at line 135 of file ConstrainedPhotometryModel.cc.
|
overridevirtual |
Dump the contents of the transfos, for debugging.
Implements lsst::jointcal::PhotometryModel.
Definition at line 200 of file ConstrainedPhotometryModel.cc.
|
overridevirtual |
Once this routine has been called, the error transform is not modified by offsetParams().
The routine can be called when the mappings are roughly in place. After the call, the transformations used to propagate errors are no longer affected when updating the mappings. This allows an exactly linear fit, which can be necessary for some model+data combinations.
Implements lsst::jointcal::PhotometryModel.
Definition at line 120 of file ConstrainedPhotometryModel.cc.
|
inlineinherited |
Get the mapping associated with ccdImage.
Definition at line 103 of file PhotometryModel.h.
|
overridevirtual |
Get how this set of parameters (of length Npar()) map into the "grand" fit.
[in] | ccdImage | The ccdImage to look up. |
[out] | indices | The indices of the mapping associated with ccdImage. |
Implements lsst::jointcal::PhotometryModel.
Definition at line 129 of file ConstrainedPhotometryModel.cc.
|
inlineinherited |
Return the number of parameters in the mapping of CcdImage.
Definition at line 100 of file PhotometryModel.h.
|
overridevirtual |
Offset the parameters by the provided amounts.
The shifts are applied according to the indices given in assignIndices.
[in] | delta | vector of offsets to apply |
Implements lsst::jointcal::PhotometryModel.
Definition at line 95 of file ConstrainedPhotometryModel.cc.
|
delete |
|
delete |
|
overridevirtual |
Return the mapping of ccdImage represented as a PhotoCalib.
Implements lsst::jointcal::PhotometryModel.
Definition at line 163 of file ConstrainedPhotometryModel.cc.
|
overridevirtual |
Return the on-sky transformed flux for measuredStar on ccdImage.
[in] | ccdImage | The ccdImage where measuredStar resides. |
measuredStar | The measured star position to compute the transform at. | |
[in] | instFlux | The instrument flux to transform. |
Implements lsst::jointcal::PhotometryModel.
Definition at line 108 of file ConstrainedPhotometryModel.cc.
|
overridevirtual |
Return the on-sky transformed flux uncertainty for measuredStar on ccdImage.
Identical to transform() until freezeErrorTransform() is called.
[in] | ccdImage | The ccdImage where measuredStar resides. |
measuredStar | The measured star position to compute the transform at. | |
[in] | instFluxErr | The instrument flux error to transform. |
Implements lsst::jointcal::PhotometryModel.
Definition at line 114 of file ConstrainedPhotometryModel.cc.