Re: Output to grib2?
Shane Mill - NOAA Affiliate
toggle quoted messageShow quoted text
I know that you were saying that you don't use grib2 often, but I wanted to follow up with the previous question.
I am able to output the numpy array to GRIB. Say that you have one band, you can read the tags of that one band with src.tags(1). These tags will be the defaults that come from:
https://gdal.org/frmt_grib.html (if you scroll down to the section "GRIB2 Write Support"). The problem with this is that for the grib2 to be readable, you need to be able to update these tags.
I'm wondering how to change the tags either when originally creating the GRIB or after the fact when using "update_tags" explained here: https://github.com/mapbox/rasterio/blob/master/docs/topics/tags.rst
It appears that update_tags works fine for GTiff but not for GRIB.
Let me know if you have any thoughts on this. Thanks as always!
On Fri, Mar 15, 2019 at 2:16 PM Shane Mill - NOAA Affiliate via Groups.Io <email@example.com> wrote:
On Fri, Mar 15, 2019 at 11:02 AM, Sean Gillies wrote:
Meteorological Application Developer, AceInfo Solutions
Meteorological Development Laboratory (NWS)