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.
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.
- 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())