Skip to content

Instantly share code, notes, and snippets.

@kwinkunks
Last active January 27, 2020 17:21
Show Gist options
  • Save kwinkunks/9d8958b6daa04f6766831e770584e0d4 to your computer and use it in GitHub Desktop.
Save kwinkunks/9d8958b6daa04f6766831e770584e0d4 to your computer and use it in GitHub Desktop.
How various features map to SEG-Y Revision numbers and `segyio`'s capability
Rev 0 Rev 1 Rev 2 segyio r segyio w
Byte order
Big endian 1 1 1
Little endian 0 0 1
Pairwise byte-swapped 0 0 1
Number formats
8-bit int 0 1 1
8-bit uint 0 0 1
16-bit int 0 0 1
16-bit uint 0 0 1
16-bit float 0 0 1
16-bit fixed point 1 0 0
24-bit int 0 0 1
24-bit uint 0 0 1
32-bit int 0 0 1
32-bit uint 0 0 1
32-bit IBM float 1 1 1
32-bit IEEE float 0 1 1
32-bit fixed point 1 0 0
64-bit int 0 0 1
64-bit uint 0 0 1
64-bit IEEE float 0 0 1
Headers & trailers
128b tape label 0 1 1
EBCDIC file header 1 1 1
ASCII file header 0 1 1
Binary file header 1 1 1
≤ 216 extended file headers 0 1 1
≤ 232 extended file headers 0 0 1
1 mandatory trace header 1 1 1
< 216 optional trace headers 0 0 1
X optional file trailers 0 0 1
Traces
Variable trace length 0 1 1
≤ 216 samples per trace 1 1 1
≤ 232 samples per trace 0 0 1
≤ 215 traces 1 1 1
≤ 232 traces 0 0 1

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment