Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with structured mode #587

Open
dsourajit opened this issue Dec 19, 2024 · 0 comments
Open

Issue with structured mode #587

dsourajit opened this issue Dec 19, 2024 · 0 comments

Comments

@dsourajit
Copy link

dsourajit commented Dec 19, 2024

I'm trying to open a sorted SEG-Y volume. The headers appear to be all right, but segyio can't seem to open the file in structured mode.
What other issues with the file could be causing this?

>>> import numpy as np
>>> import segyio
>>> m=segyio.open("file.sgy",strict=False)
>>> len(np.unique(m.attributes(segyio.TraceField.INLINE_3D)[:]))*len(np.unique(m.attributes(segyio.TraceField.CROSSLINE_3D)[:]))
4506633
>>> m.tracecount
4506633
>>> m=segyio.open("file.sgy")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/anaconda3/envs/base/lib/python3.12/site-packages/segyio/open.py", line 192, in open
    return infer_geometry(f, metrics, iline, xline, strict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/anaconda3/envs/base/lib/python3.12/site-packages/segyio/open.py", line 7, in infer_geometry
    cube_metrics = f.xfd.cube_metrics(iline, xline)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: unable to find sorting.Check iline, (189) and xline (193) in case you are sure the file is a 3D sorted volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant