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

RuntimeError: unable to find sorting.Check iline, (189) and xline (193) in case #571

Open
huihuihenqiang opened this issue Mar 16, 2024 · 3 comments

Comments

@huihuihenqiang
Copy link

hello sir.when i run quick start with my sgy data.It occurs:
Traceback (most recent call last):
File "D:\桌面\地震数据\Petrel Demo(第一次数据)\Petrel Demo\pythonProject\mai
n.py", line 3, in
with segyio.open('data/seismic.sgy') as f:
File "D:\anaconda\envs\Seismic\lib\site-packages\segyio\open.py", line 192, in
open
return infer_geometry(f, metrics, iline, xline, strict)
File "D:\anaconda\envs\Seismic\lib\site-packages\segyio\open.py", line 7, in i
nfer_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
but i think my data is true sgy.
屏幕截图 2024-03-16 113616

@ajaust
Copy link
Contributor

ajaust commented Mar 18, 2024

Are you sure that your SEG-Y cube has a regular geometry and correct headers? There is an issue #517 with people reporting the same error message and some guidance on how to check the cube as well as how to proceed. The issue also hints how one could how to inspect the SEG-Y header using segyio.

@huihuihenqiang
Copy link
Author

Thank you very much for your answer, and at the same time, thank you for contributing such a great open source file. I think my problem may be due to my segy file being truncated and not being a complete file.

@sveinung-r
Copy link
Contributor

You can try opening with segyio.open("...", ignore_geometry=True). This will make segyio load the file without inferring geometry from the inline/crossline headers. Some operations such as extracting an inline/crossline will be disabled in this mode, but you can still access traces and trace headers.

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

3 participants