Cannot find ECCODES_DEFINITON PATH using sample grib file in Windows
See original GitHub issueHi,
this might be related to #85 but I have following problem:
I installed eccodes and cfgrib via Miniconda on Windows (works without any problems). After that I wanted to try out to read the grib file with following:
import xarray as xr
ds = xr.open_dataset('era5-levels-members.grib', engine='cfgrib')
print(ds)
I get the following error message:
ECCODES ERROR : Unable to find boot.def. Context path=C:/bld/eccodes_1555087073004/_h_env/Library/share/eccodes/definitions
Possible causes:
- The software is not correctly installed
- The environment variable ECCODES_DEFINITION_PATH is defined but incorrect
ecCodes assertion failed: `0' in C:\bld\eccodes_1555087073004\work\src\grib_context.c:205
I tried to set explicit the ECCODES_DEFINITON_PATH to Miniconda3\Library\share\eccodes\definitions in the Windows System Environment Variables settings. Still does not work.
I don’t know if I am doing something wrong here by setting the path. Thanks for help & kind regards,
Marko
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
What are GRIB files and how can I read them
This example shows how to extract data from a GRIB file to generic text using ecCodes. Preparation: Get a computer running Linux; On...
Read more >Windows cannot find 'file path of whatever I'm trying to
Hi, Installed windows 10 recently along with installing Office 2016. Since doing so there are large swathes of files which won't run or...
Read more >ECCODES ERROR when opening .GRIB file in Spyder/Visual ...
I solved that problem just creating an environment variable called ECCODES_DEFINITION_PATH . You have to find the path to "definition" ...
Read more >Fast Downloading of GRIB Files - Climate Prediction Center
Can't help with the last problem but downloading data in GRIB files can be made faster. Often people only need a few fields...
Read more >cfgrib · PyPI
Python interface to map GRIB files to the NetCDF Common Data Model following the CF Convention using ecCodes.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok can be closed, found out that I need to restart PyCharm that it is loaded into the PyCharm System Variables Environment^^
In Pycharm you can set Enviroment Variables in Edit Run Settings where it says PYTHONUNBUFFERED=1 for the program where you define e.g ECCODES_DEFINITON_PATH on the left and Miniconda3\Library\share\eccodes\definitions on the right and restart Pycharm.
Cheers,
Marko