forked from equinor/segyio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't read tracecount from binheader, pass as arg
The cheeky trick of passing the number of traceheaders in the binary header when creating new files, in a field that is not dedicated to number-of-traces-per-file, doesn't work because it's only 16 bits and overflows very fast, and SEG-Y allows for 32-bits of traces (governed by traceno). Instead, pass the override-number-of-traces argument to the internal filehandle constructor explicitly, and only consider that number if the binary header is also passed. This fixes the issue reported in equinor#235
- Loading branch information
Showing
4 changed files
with
17 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters