time_ref_from_dict

gammapy.utils.time.time_ref_from_dict(meta)[source]

Calculate the time reference from metadata.

The time reference is built as MJDREFI + MJDREFF in units of MJD. All other times should be interpreted as seconds after the reference.

Parameters:

meta : dict

dictionary with the keywords MJDREFI and MJDREFF

Returns:

time : Time

reference time with format='MJD'