Hi,
I have borehole seismic data, with seg-y format.
I do not know anything about the data structure and header, I just retrieved it from IRIS.
I want to convert it to SAC, but before, I tried to read it using:
But I got the error:
obspy.io.segy.segy.SEGYError: Unable to determine the endianness of the file. Please specify it.
I attached an event, I would be grateful if you could help with plotting it and convert it to sac format. R072.01.rar (88.6 KB)
And I got the error:
File “/home/mpsn/.local/lib/python3.8/site-packages/obspy/io/segy/segy.py”, line 213, in _read_textual_header
textual_header.decode(‘EBCDIC-CP-BE’).encode(‘ascii’)
UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\x97’ in position 3: ordinal not in range(128)
When I tried ASCII I got:
NotImplementedError: Extended textual headers are not yet supported. Please contact the developers.
Even when I used none, it did not work.
Well, I’m sorry but seems like reading files with “extended textual headers” was not implemented. I did not write any of the SEGY routines, so other people would have to step up.