ecmwf / cfgrib

A Python interface to map GRIB files to the NetCDF Common Data Model following the CF Convention using ecCodes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

harcoded productDefinitionTemplateNumber when a perturbation Number value is found

cosunae opened this issue · comments

Hi
I stumbled upon this while trying to write some data that contained a "number" coordinate.

detected_grib_keys["productDefinitionTemplateNumber"] = 1

It will set the productDefinitionTemplateNumber to 1.
The issue is that there are many other productDefinitionTemplateNumber's that can contain a perturbation Number,
and this seems to erase the value already set by the user in the dataset.