#include <PhotometryMapping.h>
Definition at line 303 of file PhotometryMapping.h.
◆ ChipVisitMagnitudeMapping()
◆ computeParameterDerivatives()
void lsst::jointcal::ChipVisitMagnitudeMapping::computeParameterDerivatives |
( |
MeasuredStar const & |
measuredStar, |
|
|
double |
value, |
|
|
Eigen::Ref< Eigen::VectorXd > |
derivatives |
|
) |
| const |
|
overridevirtual |
Compute the derivatives with respect to the parameters (i.e.
the coefficients).
- Parameters
-
[in] | measuredStar | The measured star position to transform. |
[in] | value | The instrument flux or magnitude to compute the derivative at. |
[out] | derivatives | The computed derivatives, in the same order as the deltas in offsetParams. |
Implements lsst::jointcal::PhotometryMappingBase.
Definition at line 119 of file PhotometryMapping.cc.
128 Eigen::Ref<Eigen::VectorXd> chipBlock = derivatives.segment(0,
getNParChip());
129 _chipMapping->getTransform()->computeParameterDerivatives(measuredStar.x, measuredStar.y, instFlux,
136 measuredStar.getXFocal(), measuredStar.getYFocal(), instFlux, visitBlock);
◆ freezeErrorTransform()
void lsst::jointcal::ChipVisitPhotometryMapping::freezeErrorTransform |
( |
| ) |
|
|
inlineoverridevirtualinherited |
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::PhotometryMappingBase.
Definition at line 239 of file PhotometryMapping.h.
◆ getChipMapping()
◆ getIndex()
Eigen::Index lsst::jointcal::PhotometryMappingBase::getIndex |
( |
| ) |
|
|
inlineinherited |
◆ getMappingIndices()
void lsst::jointcal::ChipVisitPhotometryMapping::getMappingIndices |
( |
IndexVector & |
indices | ) |
const |
|
overridevirtualinherited |
◆ getNpar()
std::size_t lsst::jointcal::ChipVisitPhotometryMapping::getNpar |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ getNParChip()
std::size_t lsst::jointcal::ChipVisitPhotometryMapping::getNParChip |
( |
| ) |
const |
|
inlineinherited |
◆ getNParVisit()
std::size_t lsst::jointcal::ChipVisitPhotometryMapping::getNParVisit |
( |
| ) |
const |
|
inlineinherited |
◆ getParameters()
Eigen::VectorXd lsst::jointcal::ChipVisitPhotometryMapping::getParameters |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ getVisitMapping()
◆ isFixed()
bool lsst::jointcal::PhotometryMappingBase::isFixed |
( |
| ) |
|
|
inlineinherited |
◆ print()
void lsst::jointcal::ChipVisitPhotometryMapping::print |
( |
std::ostream & |
out | ) |
const |
|
inlineoverridevirtualinherited |
Print a string representation of the contents of this mapping, for debugging.
This string representation can be very verbose, as it contains all of the parameters of all of the transforms in this mapping.
Implements lsst::jointcal::PhotometryMappingBase.
Definition at line 266 of file PhotometryMapping.h.
268 out <<
"chip mapping: ";
◆ setFixed()
void lsst::jointcal::PhotometryMappingBase::setFixed |
( |
bool |
_fixed | ) |
|
|
inlineinherited |
Make this mapping's parameters fixed (i.e. not varied during fitting).
Definition at line 100 of file PhotometryMapping.h.
◆ setIndex()
void lsst::jointcal::PhotometryMappingBase::setIndex |
( |
Eigen::Index |
i | ) |
|
|
inlineinherited |
◆ setWhatToFit()
void lsst::jointcal::ChipVisitPhotometryMapping::setWhatToFit |
( |
bool const |
fittingChips, |
|
|
bool const |
fittingVisits |
|
) |
| |
|
inherited |
Set whether to fit chips or visits.
This must be called before anything that depends on knowing the number of parameters in the fit, such as offsetParams(), getParameters(), or computeParameterDerivatives().
- Parameters
-
fittingChips | Fit the chip transform. |
fittingVisits | Fit the visit transform. |
Definition at line 58 of file PhotometryMapping.cc.
◆ transform()
double lsst::jointcal::ChipVisitPhotometryMapping::transform |
( |
MeasuredStar const & |
measuredStar, |
|
|
double |
value |
|
) |
| const |
|
inlineoverridevirtualinherited |
Return the on-sky transformed flux for measuredStar on ccdImage.
- Parameters
-
[in] | measuredStar | The measured star position to transform. |
[in] | value | The instrument flux or magnitude to transform. |
- Returns
- The on-sky value () transformed from value at measuredStar's position.
Implements lsst::jointcal::PhotometryMappingBase.
Definition at line 232 of file PhotometryMapping.h.
233 double temp =
_chipMapping->getTransform()->transform(measuredStar.x, measuredStar.y, value);
234 return _visitMapping->getTransform()->transform(measuredStar.getXFocal(), measuredStar.getYFocal(),
◆ transformError()
double lsst::jointcal::ChipVisitMagnitudeMapping::transformError |
( |
MeasuredStar const & |
measuredStar, |
|
|
double |
value, |
|
|
double |
valueErr |
|
) |
| const |
|
overridevirtual |
Return the on-sky transformed flux uncertainty for measuredStar on ccdImage.
Matches the underlying PhotometryTransform's transformError()
until freezeErrorTransform() is called.
- Parameters
-
[in] | measuredStar | The measured star position to transform. |
[in] | value | The flux or magnitude to transform. |
[in] | valueErr | The flux or magnitude uncertainty to transform. |
- Returns
- The on-sky value transformed from value at measuredStar's position.
- Note
- This method takes instFlux and instFluxErr: the error calculation has to use fluxes to get the math right.
Implements lsst::jointcal::PhotometryMappingBase.
Definition at line 112 of file PhotometryMapping.cc.
116 return 2.5 /
std::log(10.0) * instFluxErr / instFlux;
◆ _chipMapping
◆ _nParChip
std::size_t lsst::jointcal::ChipVisitPhotometryMapping::_nParChip |
|
protectedinherited |
◆ _nParVisit
std::size_t lsst::jointcal::ChipVisitPhotometryMapping::_nParVisit |
|
protectedinherited |
◆ _visitMapping
◆ fixed
bool lsst::jointcal::PhotometryMappingBase::fixed |
|
protectedinherited |
◆ index
Eigen::Index lsst::jointcal::PhotometryMappingBase::index |
|
protectedinherited |
The documentation for this class was generated from the following files:
- /j/snowflake/release/lsstsw/stack/1a1d771/Linux64/jointcal/20.0.0/include/lsst/jointcal/PhotometryMapping.h
- /j/snowflake/release/lsstsw/stack/1a1d771/Linux64/jointcal/20.0.0/src/PhotometryMapping.cc