obspy.core.stream.Stream.differentiate

Stream.differentiate(method='gradient')[source]

Differentiate all traces with respect to time.

Parameters:

method (str, optional) – Method to use for differentiation. Defaults to 'gradient'. See the Supported Methods section below for further details.

Note

This operation is performed in place on the actual data arrays. The raw data is not accessible anymore afterwards. To keep your original data, use copy() to create a copy of your stream object. This also makes an entry with information on the applied processing in stats.processing of every trace.

Supported Methods

'gradient'

The gradient is computed using central differences in the interior and first differences at the boundaries. The returned gradient hence has the same shape as the input array. (uses numpy.gradient())