obspy.io.gse2.libgse1.read

read(fh, verify_chksum=True)[source]

Read GSE1 file and return header and data.

Currently supports only CM6 compressed and plain integer GSE1 files, this should be sufficient for most cases. Data are in circular frequency counts, for correction of calper multiply by 2PI and calper: data * 2 * pi * header[‘calper’].

Parameters:
  • fh (file) – Open file pointer of GSE1 file to read, opened in binary mode, e.g. fh = open(‘myfile’,’rb’)

  • verify_chksum (bool) – If True verify Checksum and raise Exception if not correct

Return type:

Dictionary, numpy.ndarray, dtype=int32

Returns:

Header entries and data as numpy.ndarray of type int32.