Coverage for /opt/obspy/update-docs/src/obspy/obspy/db/feature : 88%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*- Optional feature generators for ObsPy Trace objects.
:copyright: The ObsPy Development Team (devs@obspy.org) :license: GNU Lesser General Public License, Version 3 (http://www.gnu.org/copyleft/lesser.html) """
""" Bandpass filter (freqmin=0.1, freqmax=20.0) all trace previews. """
""" Bandpass filter (freqmin=0.1, freqmax=20.0) all trace previews. """ # applying bandpass on trace directly - this will not modify the # original waveform file but it will influence the preview trace trace.filter("bandpass", freqmin=0.1, freqmax=20.0) return {}
""" Generates statistics about the amplitude values. """
""" Generates statistics about the amplitude values.
This may take a while to calculate - use a moderate looping interval.
.. rubric:: Example
>>> from obspy import Trace >>> import numpy as np >>> tr = Trace(data=np.arange(-5,5)) >>> result = MinMaxAmplitudeFeature().process(tr) >>> result['max'] 4.0 >>> result['upper_quantile'] 1.75 """
if __name__ == '__main__': import doctest doctest.testmod(exclude_empty=True) |