Closed aleran84 closed 4 years ago
While your program is a lot slower than it needs to be (do a single pass where you extract the fields from the headers just once, instead of four passes one-word-at-the-time), what exactly do you mean you can't read them? What goes wrong?
When processing a list of files, the script displays the following error:
Traceback (most recent call last):
File "A:\SGY-файлы_ВЧНСАП-ГЛБО_все площадки\RGV\sgy (4).py", line 37, in
They're probably not (strict) cubes, or use non-standard in/crossline words.
https://github.com/equinor/segyio/#runtimeerror-unable-to-find-sorting https://segyio.readthedocs.io/en/latest/segyio.html#segyio.open
Use open(file, ignore_geometry = True)
Considering this solved.
RGV19D0001039_postm.zip
can not read the headers of the tracks : HourOfDay / Minute Of Hour / CDPX / CDPY in the attached segy file Script: import segyio import numpy as np import sys import os np.set_printoptions(threshold=sys.maxsize)
def get_sgy(files): res = [] for i in files: if i.endswith('.sgy'): res.append(i) return res
def main():
if name == 'main': main()