calculate_photons_per_sec_to_radiance_factor

irispy.utils.calculate_photons_per_sec_to_radiance_factor(time_obs, response_version, wavelength, detector_type, spectral_dispersion_per_pixel, solid_angle)[source]

Calculates multiplicative factor that converts counts/s to radiance for given wavelengths.

Parameters:
  • time_obs (an astropy.time.Time object, as a kwarg, valid for version > 2) – Observation times of the datapoints. Must be in the format of, e.g., time_obs=parse_time(‘2013-09-03’, format=’utime’), which yields 1094169600.0 seconds in value. The argument time_obs is ignored for versions 1 and 2.

  • response_version (int) – Version number of effective area file to be used. Cannot be set simultaneously with response_file or pre_launch kwarg. Default=4.

  • wavelength (astropy.units.Quantity) – Wavelengths for which counts/s-to-radiance factor is to be calculated

  • detector_type (str) – Detector type: ‘FUV’ or ‘NUV’.

  • 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:

# The term “multiplicative” refers to the fact that the conversion factor calculated by the # calculate_photons_per_sec_to_radiance_factor function is used to multiply the counts per # second (cps) data to obtain the radiance data. In other words, the conversion factor is a # scaling factor that is applied to the cps data to convert it to radiance units. Multiplicative conversion factor from counts/s to radiance units for input wavelengths.

Return type:

astropy.units.Quantity