gse_v1

Dear Forum.

Thank you for the you spent reading it.

I have a waveform in GSE V1 format, the format is like:

WID2 1989/07/27 22:51:39.000 BBOE CPZ INT 4992 50.000000
2.61e-001 0.000 0.0 0.0
DAT2
2 3 4 3 3 3 4 3 2 2 3 1 0 0 1 0 0 1 0 2 3 2 3 3 2 3 5 2 1 3 1 0 2 1 0
1 0 0 0 0 -2 -3 -3 -3 -5 -7 -7 -9 -12 -8 -6 -8 -7 -4 -5 -6 -6
-4 -3 -3 -2 0 -2 -2 -3 -3 -4 -5 -7 -6 -8 -9 -8 -7 -8 -9 -8 -8 -7 -8 -9
-10 -10 -11 -12 -13 -14 -13 -14 -15 -15 -15 -14 -12 -11 -12
-12 -14 -15 -14 -15 -16 -16 -16 -16 -16 -15 -15 -14 -14 -15 -14 -13
-13 -12 -12 -14 -15 -15 -16 -16 -16 -17 -16 -15........

when I type:

import os, sys
from obspy import read

wf=read(data_gse_v1.gse)

the python exits and stops working the obspy.

Is correct what I did? or obspy can not read this kind of format?.

Thank you in advance.

Best regards.

Tonino

Hi Tonino,

your data seems to be GSE2, actually. But nevertheless you should be
able to read it..
You can check your obspy installation by doing, e.g.:

$ obspy-runtests io.gse2 # if on obspy 1.0
$ obspy-runtests gse2 # if on obspy 0.10

(the above tests both GSE1 and GSE2 support; if you send the report at
the end we can also see your test report on tests.obspy.org)

Here's one of the GSE1 and GSE2 files we use in the tests, you can also
manually try if you can read it:

$ python -c 'from obspy import read; read("/path/to/acc.gse")'
$ python -c 'from obspy import read; read("/path/to/sta2.gse2")'

If the above tests work for you it could be a broken file or a bug, in
that case please upload your file somewhere and send us a link to the file.

cheers,
Tobias

On 03/09/2016 02:16 AM, gonzalo antonio fernandez mara´┐Żon wrote: