Skip to content
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

Create tracecount arg not in header #236

Merged
merged 3 commits into from
Mar 17, 2018

Conversation

jokva
Copy link

@jokva jokva commented Mar 14, 2018

Fixes #235

@jokva jokva force-pushed the create-tracecount-arg-not-in-header branch 3 times, most recently from 7d38f49 to e1b6069 Compare March 15, 2018 00:13
@jokva
Copy link
Author

jokva commented Mar 15, 2018

This need a test before it can be merged.

The spec object should take a list of sample intervals, not just a size,
and the documentation should obviously reflect that.
@jokva jokva force-pushed the create-tracecount-arg-not-in-header branch 2 times, most recently from c314ceb to 873fffa Compare March 16, 2018 18:36
jokva added 2 commits March 16, 2018 19:47
Add a common issues section in the readme, for frequently encountered
problems, and possible solutions.
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
@jokva jokva force-pushed the create-tracecount-arg-not-in-header branch from 873fffa to 2019c1e Compare March 16, 2018 18:47
@jokva jokva merged commit 88c6b5b into equinor:master Mar 17, 2018
@jokva jokva deleted the create-tracecount-arg-not-in-header branch March 17, 2018 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant