Skip to content

XA_Compute_Magnitude

Brian W. Mulligan edited this page Oct 22, 2016 · 2 revisions

double XA_Compute_Magnitude(const double & i_dFlux, const double & i_dReference_Flux, const double & i_dReference_Magnitude)

Computes the astronomical magnitude of a target based on a standard by: m = ms - 2.5 log10 ( f / fs ) where m = target magnitude, f = target flux, ms = standard magnitude, and fs = standard flux

Parameters

  • i_dFlux (double): flux of target in appropriate units
  • i_dReference Flux (double): flux of standard in the same units as i_dFlux
  • i_dReference_Magnitude (double): magnitude of standard

Output

  • (double): magnitude of target

Fault response

None