unit_from_fits_image_hdu#
- gammapy.utils.units.unit_from_fits_image_hdu(header)[source]#
Read unit from a FITS image HDU.
The
BUNIT
key is used.astropy.units.Unit
is called. If theBUNIT
value is invalid, a log warning is emitted and the empty unit is used.standardise_unit
is called