29#ifndef LSST_AFW_IMAGE_CALIB_H
30#define LSST_AFW_IMAGE_CALIB_H
35#include "ndarray_fwd.h"
46static double const JanskysPerABFlux = 3631.0;
53 return std::abs(fluxErr / (-0.4 * flux *
std::log(10)));
66ndarray::Array<T, 1>
abMagFromFlux(ndarray::Array<T const, 1>
const& flux);
71 ndarray::Array<T const, 1>
const& flux);
75ndarray::Array<T, 1>
fluxFromABMag(ndarray::Array<T const, 1>
const& mag);
80 ndarray::Array<T const, 1>
const& mag);
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
double abMagErrFromFluxErr(double fluxErr, double flux)
Compute AB magnitude error from flux and flux error in Janskys.
double fluxErrFromABMagErr(double magErr, double mag) noexcept
Compute flux error in Janskys from AB magnitude error and AB magnitude.
double abMagFromFlux(double flux)
Compute AB magnitude from flux in Janskys.
double fluxFromABMag(double mag) noexcept
Compute flux in Janskys from AB magnitude.
A base class for image defects.