Problem reading GCF file... "Extended textual headers are supported yet. Please contact the developers."

Dear Obspy Users

I’m trying to read gcf file by using obspy.read but for some of my files (see the attached example) the obspy shows the following error:

“NotImplementedError: Extended textual headers are supported yet. Please contact the developers.”

If anyone had such a problem before and have a solution for it, I would be really appreciated to share it with me.
Regards,
Meysam

20150825_1700z.gcf (716 KB)

Hi Meysam,

ObsPy for some reason thinks this is a SEG-Y file and parsing it of course fails - I’ll investigate why this happens.

For now you can force the format and ObsPy is able to read it:

obspy.read("./20150825_1700z.gcf", format=“gcf”)
5 Trace(s) in Stream:
.DARN…HHZ | 2015-08-25T17:00:02.000000Z - 2015-08-25T17:09:21.995000Z | 200.0 Hz, 112000 samples
.DARN…HHZ | 2015-08-25T17:09:27.000000Z - 2015-08-25T17:25:41.995000Z | 200.0 Hz, 195000 samples
.DARN…HHZ | 2015-08-25T17:25:47.000000Z - 2015-08-25T17:30:41.995000Z | 200.0 Hz, 59000 samples
.DARN…HHZ | 2015-08-25T17:30:47.000000Z - 2015-08-25T17:52:01.995000Z | 200.0 Hz, 255000 samples
.DARN…HHZ | 2015-08-25T17:52:07.000000Z - 2015-08-25T18:00:01.995000Z | 200.0 Hz, 95000 samples

Note that support for GCF files is not yet part of the last released version 1.0.3. You’ll have to update to the latest developer version of ObsPy to get it. If you need assistance in that regard please join our chat room here: Cheers! Lion