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

Fixed to_grib2 writing an xarray without dimensional coordinates #152

Closed TimothyCera-NOAA closed 4 months ago

TimothyCera-NOAA commented 4 months ago

to_grib2 wasn't handling the situation if the DataArray did not have dimensional coordinates. This kind of DataArray represents a single GRIB2 message, but to_grib2 wasn't setting any of the non-dimensional coordinates to the correct value.