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/exit() for its scope.
TemporaryWorkingDirectory A context manager that changes to a temporary working directory.
complexifyString Converts a string in the form “(real, imag)” into a complex type.
factorize_int Calculate prime factorization of integer.
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.
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.