Various additional utilities for ObsPy.

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

Public Functions

CatchOutput A context manager that catches stdout/stderr/exit() for its scope.
TemporaryWorkingDirectory A context manager that changes to a temporary working directory.
complexify_string Converts a string in the form “(real, imag)” into a complex type.
factorize_int Calculate prime factorization of integer.
flat_not_masked_contiguous 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.
get_window_times Function calculating a list of times making up equal length windows from within a given time interval.
guess_delta Estimate time delta in seconds between each sample from given channel name.
limit_numpy_fft_cache NumPy’s FFT implementation utilizes caches to speedup subsequent FFTs of
score_at_percentile Calculates the score at the given per percentile of the sequence a.
to_int_or_zero Converts given value to an integer or returns 0 if it fails.


MatplotlibBackend A helper class for switching the matplotlib backend.