obspy.core.preview.create_preview
- create_preview(trace, delta=60)[source]
Creates a preview trace.
A preview trace consists of maximum minus minimum of all samples within
delta
seconds. The parameterdelta
must be a multiple of the sampling rate of thetrace
object.- Parameters
delta (int, optional) – Difference between two preview points. Defaults to
60
.- Return type
- Returns
New Trace object.
This method will modify the original Trace object. Create a copy of the Trace object if you want to continue using the original data.