obspy.realtime.rttrace.RtTrace.integrate

RtTrace.integrate(method='cumtrapz', **options)

Integrate the trace with respect to time.

Supported Methods

'cumtrapz'
First order integration of data using the trapezoidal rule. Uses obspy.signal.differentiate_and_integrate.integrate_cumtrapz()
'spline'
Integrates by generating an interpolating spline and integrating that. Uses obspy.signal.differentiate_and_integrate.integrate_spline()

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.