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

NDFD GRIB data support part 4: correctly handle cases where nbit is 0 in the complex packing decoder #63

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

noritada
Copy link
Owner

@noritada noritada commented Nov 7, 2023

This PR adds support for Code Table 5.5 (missing value management for complex packing).

The logic for decoding complex packing when nbit is 0 was incorrect and wrong values were output.
The reason was that I wrote the process based on an incorrect understanding.
This time I read the source code of wgrib2, understood it again, and rewrote the process.

This is the 4th step of NDFD GRIB data support discussed in #59.

The logic for decoding complex packing when nbit is 0 was incorrect and
wrong values were output.  This is due to the fact that I added support
for "nbit=0" cases in 26dd5dd based on
a wrong understanding and tests happened to pass with the data used for
confirmation.

This time I read the source code of wgrib2 and revised my understanding
of the specification. Thanks wgrib2!
Copy link
Owner Author

@noritada noritada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-reviewed. CI passing.

@noritada noritada merged commit 40a086f into master Nov 7, 2023
5 checks passed
@noritada noritada deleted the feat/template-5.2-support-followups branch November 7, 2023 17:37
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