Loading GFS data - cfgrib engine? #88
Answered
by
zebengberg
GunnarQuante
asked this question in
Q&A
-
When running the example for downloading GFS data "Run Cocip with GFS data" ([https://py.contrails.org/examples/GFS.html]), I receive an error message (s. below) I have pycontrails[gfs] installed and already tried pip install eccodes, pip install cfgrib and to import each of them. Am I missing some other packages/dependencies here or is there something missing in the gfs_met.open_metdataset() file?
|
Beta Was this translation helpful? Give feedback.
Answered by
zebengberg
Sep 6, 2023
Replies: 1 comment 1 reply
-
Seems like I found it! Apparently, the ECMWFLibs package ([https://pypi.org/project/ecmwflibs/]) is also required |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for figuring this out @GunnarQuante !
Getting these ECMWF libraries installed is not easy. I do have
cfgrib
installed withoutecmwflibs
, but it required that I first installed the binaryeccodes
library.Note that ECMWF suggests installing with conda to avoid building the binaries:
conda install -c conda-forge cfgrib
.The quick
python -m cfgrib selfcheck
is a nice way to check if your environment is configured correctly.We can publish a Dockerfile or a Colab notebook showing best practice for getting these system dependencies installed for
cfgrib
ormetview
.