Questions tagged [eccodes]

ecCodes is a package developed by ECMWF which provides an application programming interface and a set of tools for decoding and encoding messages in the following formats: WMO FM-92 GRIB edition 1 and edition 2, WMO FM-94 BUFR edition 3 and edition 4, WMO GTS abbreviated header (only decoding). A useful set of command line tools provide quick access to the messages from the command line.

For more information, see: https://confluence.ecmwf.int/display/UDOC/ecCodes+Frequently+Asked+Questions+-+FAQs

28 questions
6
votes
3 answers

Can't load ecCodes library using python

I have installed ecCodes library with pip install eccodes When I check it with 'pip list' it seems like it is installed as 0.9.7 ver but command: python -m eccodes selfcheck Returns error RuntimeError: Could not load the ecCodes library! The…
Słowik
  • 153
  • 1
  • 2
  • 9
3
votes
2 answers

How do I resolve this AttributeError when using eccodes/grib?

I'm working with cfgrib on macOS and I'm getting the following error when I try to use covert a grib file into xarray: AttributeError: module 'pyeccodes.compat' has no attribute 'codes_grib_multi_support_off' Here's the code I have so far: import…
100mypete
  • 27
  • 6
3
votes
1 answer

ECCODES ERROR when opening .GRIB file in Spyder

I have accessed Anaconda Prompt for the environment that I will be working. Once there, I have changed the directory to the place where I have the grib files that I will be working with, in order to install cfgrib, I have used the following…
Gonçalo Peres
  • 11,752
  • 3
  • 54
  • 83
3
votes
1 answer

How can I install a particular version of a conda package?

I am trying to install the v2.7.0 of the eccodes package. But this is not working: conda install -c conda-forge eccodes=2.7.0 I can see the versions here: https://anaconda.org/conda-forge/eccodes/files?version=2.7.0&page=2 What I am doing wrong with…
maximusdooku
  • 5,242
  • 10
  • 54
  • 94
2
votes
2 answers

`eccodes` library not found

I have installed the eccodes library using Conda, but when I try to import it in Python I get "Cannot find the ecCodes library". Why do I get this error and how can I resolve it? I think that Python does not know where to find the library. I used…
dodohjk
  • 151
  • 5
2
votes
1 answer

ecCodes (grib reading library) does not free the memory

I am using ecCodes library in my project, and I have encountered an issue that memory is not freed between reading the files. The minimal example representing the problem is this (and is basically a combination of those two library API usage…
J.Lewandowski
  • 71
  • 1
  • 11
2
votes
0 answers

How can I install a library (cfgrib) in databricks through conda?

I'm trying to install cfgrib (https://pypi.org/project/cfgrib/) on databricks. Cfgrib depends only on the c-library eccodes. I installed both eccodes and cfgrib through the libraries page of databricks. However, when I do "import cfgrib", it keeps…
Gabriele
  • 333
  • 1
  • 7
2
votes
2 answers

converting Grib to netcdf4

I downloaded data from ECMWF for Era interim in grib format. Is there a way to convert a grib file with multiple bands to netCDF4, keeping the bands in the NETCDF format? I tried using the cdo operations, but the output will be only the first band…
2
votes
0 answers

Library ecCodes not founded by Python, but the selfcheck of the library works

I am developing a code to analyze some weather data and using the ecCodes library to read the files. On linux Ubuntu it works perfectly, but on AWS Linux, for some reason, the OS aren't able to find the ecCodes library. I am sure that the library is…
1
vote
0 answers

Error when converting grib file to netcdf

I'm trying to convert a grib file obtained from someone else to netcdf using cdo. The file is global data with a gaussian grid format: File format : GRIB szip -1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter ID 1…
Henrique
  • 135
  • 6
1
vote
0 answers

RuntimeError: Cannot find the ecCodes library

import xarray as xr your_grib_path = "F:\Develop\Codes\Python\OpenStreetMapDataExtraction-master\data.grib2" data = xr.open_dataset(your_grib_path, engine="cfgrib") print(data) I opened the.grib2 file with the xarray library on windows and…
1
vote
0 answers

ECCODES build on Windows 11 fails on Generate step

I'm trying to build ECCODES C package (https://confluence.ecmwf.int/display/ECC/ecCodes+installation) on Windows 11 for further usage with python pygrib library also on Windows 11. What I did: create dir structure: C:\tmp\eccodes\build…
acep
  • 11
  • 2
1
vote
0 answers

Segmentation fault after updating eccodes for python

I updated my eccodes-library from 2.17.0 to 2.23.0 with the help of the following gist: https://gist.github.com/MHBalsmeier/a01ad4e07ecf467c90fad2ac7719844a After updating the following example crashes, when using eccodes in version higher than…
MAESTRO_DE
  • 433
  • 2
  • 17
1
vote
1 answer

Unable to import cfgrib

Whenever I try importing cfgrib it gives me runtime error that it could not load ecCodes library import cfgrib Here's the full error message RuntimeError Traceback (most recent call…
Waqas_14
  • 31
  • 6
1
vote
0 answers

Open grib file using xarray and cfgrib

Using the xarray and cfgrib can open the grib file with the command ds=xr.open_dataset('a.grib',engine='cfgrib'). However, the dimensions of ds sometimes are different from those obtained from the offical. For example, the dimension of ds should be…
Yongwu Xiu
  • 125
  • 1
  • 9
1
2