obspy.core.trace.Trace.max

Trace.max()[source]

Returns the value of the absolute maximum amplitude in the trace.

Returns

Value of absolute maximum of trace.data.

Example

>>> tr = Trace(data=np.array([0, -3, 9, 6, 4]))
>>> tr.max()
9
>>> tr = Trace(data=np.array([0, -3, -9, 6, 4]))
>>> tr.max()
-9
>>> tr = Trace(data=np.array([0.3, -3.5, 9.0, 6.4, 4.3]))
>>> tr.max()
9.0