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.

time_ref_from_dict

gammapy.utils.time.time_ref_from_dict(meta, format='mjd', scale='tt')[source]

Calculate the time reference from metadata.

Parameters:

meta : dict

FITS time standard header info

Returns:

time : Time

Time object with format='MJD'