convert_between_DN_and_photons

irispy.utils.convert_between_DN_and_photons(old_data_arrays, old_unit, new_unit)[source]

Converts arrays from IRIS DN to photons or vice versa.

In this function, an inverse time component due to exposure time correction is ignored during calculations but preserved in final unit.

Parameters:
  • old_data_arrays (iterable of numpy.ndarray) – Arrays of data to be converted.

  • old_unit (astropy.unit.Unit) – Unit of data arrays.

  • new_unit (astropy.unit.Unit) – Unit to convert data arrays to.

Returns:

  • list of numpy.ndarray – Data arrays converted to new_unit.

  • astropy.unit.Unit – Unit of new data arrays with any inverse time component preserved.