NOAA-MDL / grib2io

Python interface to the NCEP G2C Library for reading and writing GRIB2 messages.
https://noaa-mdl.github.io/grib2io
MIT License
30 stars 11 forks source link

Expose the bitmap to the public interface as a Grib2Message attribute #139

Closed EricEngle-NOAA closed 6 months ago

EricEngle-NOAA commented 6 months ago

When unpacking data, if a bitmap is present and to be applied to the data, the bitmap data are unpacked inside the function but not stored in a Grib2Message attribute. There are cases where a user would like to have access to the bitmap.

The returned bitmap data from g2c's g2_unpack6() from grib2io's cython wrapper is np.int64. We would want to store the bitmap in a smaller data type, most likely np.int8.