Specialized Template Function phot::PhotConvert< PhotSystem::Flambda, PhotSystem::ST >
Defined in File PhotCommons.hpp
Function Documentation
-
template<>
inline auto phot::PhotConvert<PhotSystem::Flambda, PhotSystem::ST>(const double photIn, double) -> double Convert Flambda (erg/s/Angstrom, a specific luminosity) to an ST magnitude.
ST magnitudes are defined in terms of a flux, not a luminosity, so photIn is first divided by fourPiTenPcSq to convert it to the flux that would be observed at the standard distance of 10 pc (see fourPiTenPcSq’s own comment) before applying the standard ST-magnitude formula against flux0ST (the ST system’s own zero point, likewise a fixed flux in erg/s/cm^2/Angstrom). flux0ST is independent of wavelength, so wl goes unused here – see PhotConvert<Fnu, AB>’s own comment for why, why this isn’t marked constexpr, and why it is marked inline.