calculate_uncertainty#
- irispy.utils.calculate_uncertainty(
- data: ndarray,
- readout_noise:
astropy.units.Quantity, - unit:
astropy.units.Quantity, Calculates the uncertainty of a given data array.
- Parameters:
data (numpy.ndarray) – The data array.
readout_noise (astropy.units.Quantity) – The readout noise, needs to be a unit that is convertible to photon.
unit (astropy.units.Quantity) – The final unit that the value should be converted to.
- Returns:
The readout noise with no unit.
- Return type: