obspy.gse2.libgse2ΒΆ

Lowlevel module internally used for handling GSE2 files

Python wrappers for gse_functions - The GSE2 library of Stefan Stange. Currently CM6 compressed GSE2 files are supported, this should be sufficient for most cases. Gse_functions is written in C and interfaced via python-ctypes.

See: http://www.orfeus-eu.org/Software/softwarelib.html#gse

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

Functions

compile_STA2 Returns a STA2 line as a string (including newline at end) from a
compress_CM6 CM6 compress data
isGse2 Checks whether a file is GSE2 or not. Returns True or False.
parse_STA2 Parses a string with a GSE2 STA2 header line.
read Read GSE2 file and return header and data.
readHeader Reads GSE2 header from file pointer and returns it as dictionary.
uncompress_CM6 Uncompress n_samps of CM6 compressed data from file pointer fp.
verifyChecksum Calculate checksum from data, as in gse_driver.c line 60
write Write GSE2 file, given the header and data.
writeHeader Rewriting the write_header Function of gse_functions.c

Exceptions

ChksumError Exception type for mismatching checksums
GSEUtiError Exception type for other errors in GSE_UTI

This Page