calculate_uncertainty

irispy.utils.calculate_uncertainty(data: array, readout_noise: astropy.units.Quantity, unit: astropy.units.Quantity) float[source]

Calculates the uncertainty of a given data array.

Parameters:
  • data (np.array) – The data array.

  • readout_noise (u.Quantity) – The readout noise, needs to be a unit that is convertible to photon.

  • unit (u.Quantity) – The final unit that the value should be converted to.

Returns:

The readout noise with no unit.

Return type:

float