fluxErrTomag

beast.observationmodel.phot.fluxErrTomag(flux, fluxerr)[source]

Return the magnitudes and associated errors from fluxes and flux error values

Parameters
flux: np.ndarray[float, ndim=1]

array of fluxes

fluxerr: np.ndarray[float, ndim=1]

array of flux errors

Returns
mag: np.ndarray[float, ndim=1]

array of magnitudes

err: np.ndarray[float, ndim=1]

array of magnitude errors