Class ChipVisitPhotometryMapping

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class ChipVisitPhotometryMapping : public lsst::jointcal::PhotometryMappingBase

A two-level photometric transform: one for the ccd and one for the visit.

Subclassed by lsst::jointcal::ChipVisitFluxMapping, lsst::jointcal::ChipVisitMagnitudeMapping

Public Functions

ChipVisitPhotometryMapping(std::shared_ptr<PhotometryMapping> chipMapping, std::shared_ptr<PhotometryMapping> visitMapping)
std::size_t getNpar() const

Number of total parameters in this mapping.

double transform(MeasuredStar const &measuredStar, double value) const

Return the on-sky transformed flux for measuredStar on ccdImage.

Return

The on-sky value () transformed from value at measuredStar’s position.

Parameters
  • [in] measuredStar: The measured star position to transform.

  • [in] value: The instrument flux or magnitude to transform.

void freezeErrorTransform()

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.

Eigen::VectorXd getParameters()
void getMappingIndices(IndexVector &indices) const

Gets how this set of parameters (of length getNpar()) map into the “grand” fit. Expects that indices has enough space reserved.

void setWhatToFit(bool const fittingChips, bool const fittingVisits)

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.

void dump(std::ostream &stream = std::cout) const

Dump the contents of the transforms, for debugging.

std::shared_ptr<PhotometryMapping> getChipMapping() const
std::shared_ptr<PhotometryMapping> getVisitMapping() const
std::size_t getNParChip() const
std::size_t getNParVisit() const

Protected Attributes

std::size_t _nParChip
std::size_t _nParVisit
std::shared_ptr<PhotometryMapping> _chipMapping
std::shared_ptr<PhotometryMapping> _visitMapping