Note

You are not reading the stable 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
metadict

FITS time standard header info

Returns
timeTime

Time object with format='MJD'