magErrToFlux

beast.observationmodel.phot.magErrToFlux(mag, err)[source]

Return the flux and associated errors from magnitude and mag error values

Parameters:

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

array of magnitudes

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

array of magnitude errors

Returns:

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

array of fluxes

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

array of flux errors