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 parameter delta must be a multiple of the sampling rate of the trace object.

Parameters:

delta (int, optional) – Difference between two preview points. Defaults to 60.

Return type:

Trace

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.