calc_mag_error_m5

rubin_sim.phot_utils.calc_mag_error_m5(magnitude, bandpass, m5, phot_params, gamma=None)

Calculate magnitude error using the model from equation (5) of arXiv:0805.2366

@param [in] magnitude of the source whose error you want to calculate (can be a numpy array)

@param [in] bandpass (an instantiation of the Bandpass class) in question

@param [in] m5 is the 5-sigma limiting magnitude in that bandpass

@param [in] phot_params is an instantiation of the PhotometricParameters class that carries details about the photometric response of the telescope.

@param [in] gamma (optional) is the gamma parameter from equation(5) of arXiv:0805.2366. If not provided, this method will calculate it.

@param [out] the error associated with the magnitude

@param [out] gamma is the calculated gamma parameter for the bandpass used here (in case the user wants to call this method again).

Note: you can also pass in a numpy of array of magnitudes calculated in the same Bandpass with the same m5 and get a numpy array of errors out.