equinor / segyio

Fast Python library for SEGY files.
Other
490 stars 217 forks source link

Read files with "illegal" header #515

Open GGDRriedel opened 3 years ago

GGDRriedel commented 3 years ago

I have files that contain traces that are longer than the maximum possible trace length of 2 byte long int that is supposed to be defined in the binary header.

I know the data is there, the files are huge, 12 channels of 5 minutes traces each.

However, I can't seem to find a way to read them "agnostically"

Is there a way? Ignore_geometry=True and strict=False when reading don't seem to do anything.

My only last option is probably to write some own reading routines converting directly from the binary data, however, i would like to not do that.

Any tip would be appreciated

yonathanamir commented 2 years ago

Hi, I've encountered the same issue and resorted to parsing the binary data while ignoring the SEGY headers. It's an unfortunate last reasort, but it was the only thing I've found working.