Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

unit_from_fits_image_hdu

gammapy.utils.units.unit_from_fits_image_hdu(header)[source]

Read unit from a FITS image HDU.