-
Notifications
You must be signed in to change notification settings - Fork 218
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
Runtime Error trace count inconsistent with file size, trace lengths possibly of non-uniform #514
Comments
Hi Marcos, you'd need to be more specific about which SEG-Y files you're attempting to open here. The Volve dataset includes a 2D survey (ST0299), two 3D surveys (ST0202 & ST10010) and a 4D difference between the 3D surveys, all of which have multiple SEG-Y files of varying shapes and sizes. |
I have the same problem and it's because the traces are longer than what the binary header space allows as a number for samples in a trace. |
Hi, I've tried with a few files from "volve/Seismic/ST0202/Stacks/" folder. I suspect I may be using the wrong function to load the file. If that is the case, could you please point me to some documentation or user guide for segyio that tells me which functions to use for each seg-y file type (i.e., 2D or 3D, etc). Here is a snapshot of the code and error message I get with one of the files from this folder. ... similarity = 1-segyio.tools.cube(filename) RuntimeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/segyio/tools.py in cube(f) /opt/conda/lib/python3.7/site-packages/segyio/open.py in open(filename, mode, iline, xline, strict, ignore_geometry, endian) RuntimeError: trace count inconsistent with file size, trace lengths possibly of non-uniform I also tried with a few files from "volve/Seismic/ST10010/Stacks" folder. I get similar error. ... similarity = 1-segyio.tools.cube(filename) RuntimeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/segyio/tools.py in cube(f) /opt/conda/lib/python3.7/site-packages/segyio/open.py in open(filename, mode, iline, xline, strict, ignore_geometry, endian) RuntimeError: trace count inconsistent with file size, trace lengths possibly of non-uniform -Thank you. |
Please check whether you actually have the same file here.
|
I would still love to find a solution even for non-valid files. I know that the _segyio.segyiofd routines check for validity of the file, however it would be incredibly useful to still somehow get the trace data regardless of that validity. I kind of want to add it myself but the error checking and basic reading routines are in C++ and I'm mainly on Python so this is out of my scope |
@GGDRriedel are you sure you have traces which are too long for valid SEG-Y? Rev2 allows trace lengths of 2^32 ... segyio handles this here but only if the regular binary header is zeroed or the revision flag is correctly set. |
Unfortunately I am not on Rev2. As it is with most segy files, the machine creating the files uses Rev1 as a base and then just writes whatever it wants to wherever the dev felt like putting stuff. I have the traces, I know parsed them from Binary and confirmed theird lengths through comparing file seizes and it works, however, I would love to have an agnostic reader instead of me doing bytewise surgery on a file. |
Hi @da-wad, import os
import hashlib
import segyio RuntimeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/segyio/tools.py in cube(f) /opt/conda/lib/python3.7/site-packages/segyio/open.py in open(filename, mode, iline, xline, strict, ignore_geometry, endian) RuntimeError: trace count inconsistent with file size, trace lengths possibly of non-uniform |
Hi Marcos, It hadn't escaped my attention that the files you are trying to use are from the Volve dataset. I'm afraid the one you are referring to now is not 274726912 bytes long though. Microsoft Azure Storage Explorer (if you are using this to obtain this data) gives a filesize of 754.5MB and to be exact, see below:
However, when you have a non-truncated version of this file you should get the correct error when trying to read the data from it using ST0202R08-PS_PSDM_FULL_OFFSET_DEPTH.MIG_FIN.POST_STACK.3D.JS-017534.segy has a regular geometry, so this function should work just fine with the full 895367300 bytes :-) |
Hi @da-wad , |
Hi,
I'm getting error "Runtime Error trace count inconsistent with file size, trace lengths possibly of non-uniform" when trying to open any segy files from the Volve dataset. I've tried with a few segy files in the dataset, but I keep getting the same error.
Is there anything I need to do before I use segyio to open a file from the Volve dataset?
Thanks,
Marcos
The text was updated successfully, but these errors were encountered: