obspy.io.sac.util.get_sac_reftime

get_sac_reftime(header)[source]

Get SAC header reference time as a UTCDateTime instance from a SAC header dictionary.

Builds the reference time from SAC “nz” time fields. Raises SacHeaderTimeError if any time fields are null.

Parameters

header (dict) – SAC header

Return type

UTCDateTime

Returns

SAC reference time.