You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frompathlibimportPathpath=r"/path/to/AN-A401.sgy"a=Path(path).stat().st_size-3600trace_lenth=2560b=trace_lenth*4+240assert (a%b==0)
# asserting that the file length is exactly as it should beimportsegyiosegyio.open(path, ignore_geometry=True, mode="r", endian='big')
# yields error: RuntimeError: trace count inconsistent with file size, trace lengths possibly of non-uniform
# Other programs do work, including seisee and obspy.fromobspy.io.segy.coreimport_read_segyst=_read_segy(path, format="SEGY")
The text was updated successfully, but these errors were encountered:
I can't read specific, but seemingly valid SEG-Y file. What in segyio is triggering this (and is it an issue with the file or code)?
The file can be reached here: https://drive.google.com/file/d/1MXw_5dqoSYJlMoXWB7BJvqSY75GQnCsQ/view?usp=sharing
The text was updated successfully, but these errors were encountered: