convert_photons_per_sec_to_radiance#
- irispy.utils.spectrograph.convert_photons_per_sec_to_radiance(
- *,
- data_quantities,
- iris_response,
- wavelength,
- detector_type,
- spectral_dispersion_per_pixel,
- solid_angle,
Converts data quantities from counts/s to radiance.
- Parameters:
data_quantities (iterable of
astropy.units.Quantity) – Quantities to be converted. Must have units of counts/s or radiance equivalent counts, e.g. erg / cm**2 / s / sr / Angstrom.iris_response (dict) – The IRIS response data loaded from
irispy.utils.response.get_latest_response.wavelength (
astropy.units.Quantity) – Wavelength at each element along spectral axis of data quantities.detector_type (
str) – Detector type: ‘FUV’, ‘NUV’, or ‘SJI’.spectral_dispersion_per_pixel (scalar
astropy.units.Quantity) – Spectral dispersion (wavelength width) of a pixel.solid_angle (scalar
astropy.units.Quantity) – Solid angle corresponding to a pixel.
- Returns:
Data quantities converted to radiance.
- Return type:
Notes
This is designed to do the same as nrl/iris_calib.pro IDL code. The difference is that this function takes into account the spectral dispersion which the IDL code does not. To get the same results as the IDL code, can multiply the output by the spectral dispersion or set the keyword to have the value of 1 Angstrom.