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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

# -*- coding: utf-8 -*- 

""" 

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 OrderedDict  # good 

 

    instead of 

 

    >>> from obspy.core.util.types import OrderedDict  # bad 

 

:copyright: 

    The ObsPy Development Team (devs@obspy.org) 

:license: 

    GNU Lesser General Public License, Version 3 

    (http://www.gnu.org/copyleft/lesser.html) 

""" 

 

# import order matters - NamedTemporaryFile must be one of the first! 

from obspy.core.util.attribdict import AttribDict 

from obspy.core.util.base import NamedTemporaryFile, add_doctests, \ 

    add_unittests, ALL_MODULES, DEFAULT_MODULES, NATIVE_BYTEORDER, \ 

    c_file_p, createEmptyDataChunk, getExampleFile, getMatplotlibVersion, \ 

    _getVersionString, NETWORK_MODULES, _readFromPlugin 

from obspy.core.util.decorator import deprecated, deprecated_keywords, \ 

    skip, skipIf, uncompressFile 

from obspy.core.util.geodetics import FlinnEngdahl 

from obspy.core.util.geodetics import calcVincentyInverse, gps2DistAzimuth, \ 

    kilometer2degrees, locations2degrees 

from obspy.core.util.misc import BAND_CODE, complexifyString, guessDelta, \ 

    scoreatpercentile, toIntOrZero, loadtxt 

from obspy.core.util.types import OrderedDict, Enum 

from obspy.core.util.xmlwrapper import XMLParser, tostring, register_namespace