Documentation
¶
Overview ¶
Package photometry converts magnitudes to spectral flux densities using Pogson’s scale and each survey’s published zero points. Five magnitudes correspond to a factor of one hundred: F = F0 * 100^(-m/5).
Survey data supplies band names such as W1 and W4. Callers use Photometer so catalogue-reader tests can substitute generated mocks while this package tests the conversion itself. Fluxes are available in SI (W m^-2 Hz^-1) and janskys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flux ¶
type Flux struct {
// contains filtered or unexported fields
}
Flux stores spectral flux density and its uncertainty in W m^-2 Hz^-1.
type Photometer ¶
Photometer converts a magnitude and its uncertainty in a named band to spectral flux density.
type Survey ¶
type Survey struct {
// contains filtered or unexported fields
}
Survey stores named bands with their magnitude-zero flux densities.
func WISE ¶
func WISE() *Survey
WISE returns the Wide-field Infrared Survey Explorer’s four bands. Vega-magnitude zero points come from its All-Sky Explanatory Supplement through the research data.
func (*Survey) Flux ¶
Flux converts a magnitude and uncertainty in a survey band using F = F0 * 100^(-m/5), with the band’s published zero point F0.
Uncertainty is propagated to first order using dF/dm = -F*ln(100)/5. That approximation suits small detection errors; uncertainty near one magnitude produces an asymmetric flux interval this type cannot express.
Unknown bands, negative or NaN uncertainty, nonfinite magnitude, and fluxes outside float64’s normal range return an error. The propagated uncertainty must also be representable.