obspy.gse2.paz.readPaz

readPaz(paz_file)[source]

Read GSE PAZ / Calibration file format and returns poles, zeros and the seismometer_gain.

Do not use this function in connection with the obspy instrument simulation, the A0_normalization_factor might be set wrongly. Use attach_paz() instead.

>>> import StringIO
>>> f = StringIO.StringIO("""CAL1 RJOB   LE-3D    Z  M24    PAZ 010824 0001
... 2
... -4.39823 4.48709
... -4.39823 -4.48709
... 3
... 0.0 0.0
... 0.0 0.0
... 0.0 0.0
... 0.4""")
>>> p, z, k = readPaz(f)
>>> ['%.4f' % i for i in (p[0].real, z[0].real, k)]
['-4.3982', '0.0000', '0.4000']

This Page