You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to open a .grib file that we are using for writing tests for our repository with the ECMWF Summer of Weather Code. I wondered if we were missing anything that would allow us to open the written file?
@tommylees112 the same considerations I expressed in comment #91 (comment) for netCDF apply here for an arbitrary xarray.Dataset:
The problem it that in order to save arbitrary netCDF files to GRIB with cfgrib you must specify all the grib_keys that are not automatically computed. At the moment very few keys are computed and you need to set almost all the values as you would do with ecCodes.
Saving a to grib a GRIB file opened with cfgrib works more often because the dataset keeps the GRIB keys of the original file, but if you start from a netCDF you need to do the work manually and you need to know the GRIB data format.
so the best bet is to open another grib file, copy all the xr.Dataset.attrs and then write with those attrs saved to the new object? it's only for our test suite! the pipeline itself writes everything to netcdf but i want to check it works with grib without having to download a grib file from the CDS API
I am trying to open a
.grib
file that we are using for writing tests for our repository with the ECMWF Summer of Weather Code. I wondered if we were missing anything that would allow us to open the written file?The error message
The text was updated successfully, but these errors were encountered: