obspy.io.sac.util.sac_to_obspy_header

sac_to_obspy_header(sacheader, round_sampling_interval=True)[source]

Make an ObsPy Stats header dictionary from a SAC header dictionary.

Parameters:
  • sacheader (dict) – SAC header dictionary.

  • round_sampling_interval (bool) – Whether to round sampling interval to microseconds before calculating sampling rate to avoid floating point accuracy issues with some SAC files (see #3408)

Return type:

Stats

Returns:

Filled ObsPy Stats header.