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
getStartAndEndTime | Return start and endtime/date of GSE2 file |
isGse2 | Checks whether a file is GSE2 or not. Returns True or False. |
read | Read GSE2 file and return header and data. |
readHead | Return (and read) only the header of gse2 file 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 |
Classes
HEADER | Ctypes based GSE2 header structure for internal usage. |
Exceptions
ChksumError | Exception type for mismatching checksums |
GSEUtiError | Exception type for other errors in GSE_UTI |