Documentation
¶
Overview ¶
Package photometry is magnitudes and the fluxes they stand for: Pogson's scale, and the bands of a survey, each with the flux density of magnitude zero the survey publishes.
Pogson's scale is what is defined: five magnitudes are a factor of a hundred in flux, so a flux is F0 times 100 to the minus m over 5. A band is known by the name its survey writes, W1 or W4; there is no list of bands in code, only the survey's data.
A catalogue reader takes a Photometer, so its tests stand a mock in for it (celestial/mocks) and expect its calls; the photometry is tested once, here. Fluxes come out in si units, W m^-2 Hz^-1, and in janskys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrBright ¶
func ErrBright() error
ErrBright is a magnitude whose flux is past what a float holds.
func ErrMagnitude ¶
func ErrMagnitude() error
ErrMagnitude is a magnitude that is not a finite number, or an error that is below nothing or not finite.
Types ¶
type Flux ¶
type Flux struct {
// contains filtered or unexported fields
}
Flux is a flux density and its error, held in W m^-2 Hz^-1.
type Photometer ¶
Photometer turns a magnitude measured in a named band, and its error, into the flux density it stands for.
type Survey ¶
type Survey struct {
// contains filtered or unexported fields
}
Survey is a survey's bands, each known by the name the survey writes and holding the flux density of a magnitude of zero in it.
func WISE ¶
func WISE() *Survey
WISE is the wide-field infrared survey explorer's four bands, with the zero points of its vega magnitudes from its all-sky explanatory supplement, as celestial's research data holds them.
func (*Survey) Flux ¶
Flux is the flux density a magnitude in one of the survey's bands stands for, and its error: F0 times 100 to the minus m over 5, where F0 is the band's zero point.
The error is carried to first order: dF/dm is minus F times the natural log of 100, over 5. That holds when the error is small, as it is for a detection; an error near a magnitude makes a lopsided flux error this does not describe.
Flux refuses a band the survey does not have, a magnitude that is not a finite number, an error below nothing or not finite, and a magnitude so bright its flux is past a float, and then gives no flux.