obspy.core.stream.Stream.detrend

Stream.detrend(type='simple', **options)[source]

Remove a trend from all traces.

For details on supported methods and parameters see the corresponding detrend() method of Trace.

Note

This operation is performed in place on the actual data arrays. The raw data will no longer be accessible afterwards. To keep your original data, use copy() to create a copy of your stream object.