obspy.core.util.miscΒΆ

Various additional utilities for ObsPy.

copyright:The ObsPy Development Team (devs@obspy.org)
license:GNU Lesser General Public License, Version 3 (http://www.gnu.org/copyleft/lesser.html)

Functions

CatchOutput A context manager that catches stdout/stderr for its scope.
complexifyString Converts a string in the form “(real, imag)” into a complex type.
flatnotmaskedContiguous Find contiguous unmasked data in a masked array along the given axis.
get_untracked_files_from_git Tries to return a list of files (absolute paths) that are untracked by git in the repository.
guessDelta Estimate time delta in seconds between each sample from given channel name.
loadtxt Replacement for older numpy.loadtxt versions not supporting ndlim
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.
wrap_long_string Reformat a long string, wrapping it to a specified length.

This Page