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 information.

format: str, optional

Format of the Time information. Default is ‘mjd’.

scale: str, optional

Scale of the Time information. Default is ‘tt’.

Returns
timeTime

Time object with format='MJD'.