noritada / grib-rs

GRIB format parser for Rust
Apache License 2.0
57 stars 9 forks source link

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

Closed noritada closed 10 months ago

noritada commented 10 months ago

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.