NOAA-MDL / grib2io

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

Template number from kwargs not set in section arrays when creating a new Grib2Message object. #101

Closed EricEngle-NOAA closed 1 year ago

EricEngle-NOAA commented 1 year ago

When creating a new Grib2Message object from scratch, the template numbers defined by keyword arguments gdtn=, pdtn=, or drtn= do not get placed into the section array. The template number correctly pulls the right template class, but does not correctly identify the template number, generally leading to all template numbers equal to 0 for GDTN, PDTN, and DRTN.