obspy.realtime.rttrace.RtTrace.differentiate

RtTrace.differentiate(method='gradient', **options)

Differentiate the trace 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 trace object. This also makes an entry with information on the applied processing in stats.processing of this 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())