Closed claustres closed 3 years ago
It seems it's possible to read each variable separately like this without errors:
meteodata = xr.open_dataset('E:\Download\T47648_AROME0025.2017010100.grb', engine='cfgrib',
backend_kwargs={'filter_by_keys': {'cfVarName': 'tp'}})
meteodata = xr.open_dataset('E:\Download\T47648_AROME0025.2017010100.grb', engine='cfgrib',
backend_kwargs={'filter_by_keys': {'cfVarName': 'u10'}})
...
To get the list of variable names you can use the grib_dump
tool.
Hello, Thank you for the information. This grib file comes from MeteoNet ? Or it comes from the public data website of Meteo France ? Their data can have a different structure from ours in MeteoNet. So the reading can be different.
These files are coming from Meteo France when you buy weather forecast data (AROME 0.025° in my case).
Ok. Could you send one sample file in attachment ? Maybe the coordinates names are not the same according to parameters ? For example, if the vertical levels are in meters, the vertical level name is 'heightAboveGround'. If it about isobar vertical levels (in hPa) it is called 'isobaricInhPa'...etc It is like this in MeteoNet, but the files are separated.
The file is big (~300MB), I will provide you with a link to download it in a private message on your slack.
Almost exactly the same error crops up when using GRIB files from ECMWF's open dataset available here https://data.ecmwf.int/forecasts/20241014/00z/ifs/0p25/oper/ This is a 15 day short-term weather forecast.
I understand as @claustres said that reading variables one-at-a-time is an option to suppress the warning, but don't quite understand why it's happening in the first place.
We started working with meteonet data for weather forecast, then wanted to buy more archived data from Météo France to cover our use cases. We now encounter some errors when reading the files as detailed in your documentation:
Here are the errors:
We tried this workaround without success. Any help on this is welcome, thanks.