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
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
We did get some files that are named SEG-Y. But we also have RA files for these, so In this case, the SEGY is redundant. I can't confirm if it is SEG-2 or SEG-Y format.
from struct import unpack
with open(fname, 'rb') as f:
file_descriptor_block = f.read(32)
first_byte, = unpack(b'B', file_descriptor_block[0:1])
if (first_byte == 0x55) or (first_byte == 0x3a):
print('This is consistent with being a SEG2 file.')
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Test some SEGY files from USRadar and make sure the i/o works
The text was updated successfully, but these errors were encountered: