obspy.io.gse2.libgse2.read

read(f, verify_chksum=True)[source]

Read GSE2 file and return header and data.

Currently supports only CM6 compressed GSE2 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
  • f (file) – Open file pointer of GSE2 file to read, opened in binary mode, e.g. f = open(‘myfile’,’rb’)

  • verify_chksum – If True verify Checksum and raise Exception if it is not correct

Return type

Dictionary, numpy.ndarray, dtype=int32

Returns

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