obspy.core.util - Various utilities for ObsPy¶
Note
Please import all utilities within your custom applications from this module rather than from any sub module, e.g.
>>> from obspy.core.util import AttribDict # good
instead of
>>> from obspy.core.util.attribdict import AttribDict # bad
copyright: | The ObsPy Development Team (devs@obspy.org) |
---|---|
license: | GNU Lesser General Public License, Version 3 (http://www.gnu.org/copyleft/lesser.html) |
Classes & Functions¶
AttribDict | A class which behaves like a dictionary. |
NamedTemporaryFile | Weak replacement for the Python’s tempfile.TemporaryFile. |
createEmptyDataChunk | Creates an NumPy array depending on the given data type and fill value. |
getExampleFile | Function to find the absolute path of a test data file |
calcVincentyInverse | Vincenty Inverse Solution of Geodesics on the Ellipsoid. |
gps2DistAzimuth | Computes the distance between two geographic points on the WGS84 |
kilometer2degrees | Convenience function to convert kilometers to degrees assuming a perfectly |
locations2degrees | Convenience function to calculate the great circle distance between two |
FlinnEngdahl | Load data from asc files and allow to resolve coordinates or region numbers |
BAND_CODE | dict() -> new empty dictionary |
complexifyString | Converts a string in the form “(real, imag)” into a complex type. |
guessDelta | Estimate time delta in seconds between each sample from given channel name. |
scoreatpercentile | Calculates the score at the given per percentile of the sequence a. |
toIntOrZero | Converts given value to an integer or returns 0 if it fails. |
Enum | Enumerated type (enum) implementation for Python. |
Modules¶
attribdict | AttribDict class for ObsPy. |
base | Base utilities and constants for ObsPy. |
decorator | Decorator used in ObsPy. |
geodetics | obspy.core.util.geodetics - Various geodetic utilities for ObsPy. |
misc | Various additional utilities for ObsPy. |
obspy_types | Various types used in ObsPy. |
testing | Testing utilities for ObsPy. |
version |