obspy.core.trace.Trace.integrate

Trace.integrate(*args, **kwargs)[source]

Method to integrate the trace with respect to time.

Parameters:type ('cumtrapz', optional) Method to use for integration. Defaults to 'cumtrapz'. 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

'cumtrapz'
Trapezoidal rule to cumulatively compute integral (uses scipy.integrate.cumtrapz()). Result has one sample less then the input!
'trapz'
Trapezoidal rule to compute integral from samples (uses scipy.integrate.trapz()).
'simps'
Simpson’s rule to compute integral from samples (uses scipy.integrate.simps()).
'romb'
Romberg Integration to compute integral from (2**k + 1) evenly-spaced samples. (uses scipy.integrate.romb()).

This Page