lsst.jointcal
14.0-26-gc4bc114
|
Photometric response model which has a single photometric factor per CcdImage. More...
#include <SimplePhotometryModel.h>
Public Member Functions | |
SimplePhotometryModel (CcdImageList const &ccdImageList) | |
SimplePhotometryModel (SimplePhotometryModel const &)=delete | |
No copy or move: there is only ever one instance of a given model (i.e. per ccd+visit) More... | |
SimplePhotometryModel (SimplePhotometryModel &&)=delete | |
SimplePhotometryModel & | operator= (SimplePhotometryModel const &)=delete |
SimplePhotometryModel & | operator= (SimplePhotometryModel &&)=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... | |
Photometric response model which has a single photometric factor per CcdImage.
Definition at line 20 of file SimplePhotometryModel.h.
lsst::jointcal::SimplePhotometryModel::SimplePhotometryModel | ( | CcdImageList const & | ccdImageList | ) |
Definition at line 17 of file SimplePhotometryModel.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 30 of file SimplePhotometryModel.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 72 of file SimplePhotometryModel.cc.
|
overridevirtual |
Dump the contents of the transfos, for debugging.
Implements lsst::jointcal::PhotometryModel.
Definition at line 86 of file SimplePhotometryModel.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 59 of file SimplePhotometryModel.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 65 of file SimplePhotometryModel.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 40 of file SimplePhotometryModel.cc.
|
delete |
|
delete |
|
overridevirtual |
Return the mapping of ccdImage represented as a PhotoCalib.
Implements lsst::jointcal::PhotometryModel.
Definition at line 79 of file SimplePhotometryModel.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 47 of file SimplePhotometryModel.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 53 of file SimplePhotometryModel.cc.