redback.utils.magnitude_error_from_flux_error

redback.utils.magnitude_error_from_flux_error(bandflux, bandflux_error)[source]

Function to propagate the flux error to the mag system.

Parameters:

bandflux: float

The total flux transmitted through the bandfilter and recorded by the detector.

bandflux_error: float

The error on the flux measurement from the measured background noise, in this case, the five sigma depth.

Outputs:

magnitude_error: float-scalar

The flux error propagated into the magnitude system.