energy_keywords

energy_keywords(fits_header, chanmin, chanmax, e_min, e_max)[source]

add to fits header the keywords related to energy

Parameters:
  • fits_header (astropy.io.fits.*HDU) – header data unit to add the keyword (ex: fits.PrimaryHDU)
  • chanmin (float) – lowest channel of the energy range
  • chanmax (float) – highest channel of the energy range
  • e_min (float) – lower energy limit in keV
  • e_max (float) – upper energy limit in keV