obspy.io.sac.sactrace.SACTrace.to_obspy_trace

SACTrace.to_obspy_trace(debug_headers=False)[source]

Return an ObsPy Trace instance.

Required headers: nz-time fields, npts, delta, calib, kcmpnm, kstnm, ...?

Parameters:debug_headers (bool) Include _all_ SAC headers into the Trace.stats.sac dictionary.

Example

>>> sac = SACTrace() 
>>> tr = sac.to_obspy_trace()