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
1
vote
0 answers

GRIB1 to GRIB2 eccodes conversion failing due to paramId = 0

So what I am trying is converting a GRIB1 file to GRIB2 containing mostly wind data. Usually you can just change the edition to 2 and the eccodes lib does everything else. Now the issue is that my GRIB1 file has only paramId=0 and shortName=unknown…
b3z
  • 149
  • 1
  • 1
  • 10
1
vote
1 answer

alternative (faster) way to get grib values given boundary?

I've used pygrib to extract all grib values for a specific band within given boundaries. The function will return a Json object that contains all the values for each analyzed data. Now that I've to read approximately 73 grib for each run, the…
0
votes
1 answer

How do I properly install cfgrib and eccodes?

I'm trying to run this code on my Mac: https://github.com/EWolffWX/MRMS_Derecho_Composites When I run it, I get this error ValueError: unrecognized engine cfgrib must be one of: ['netcdf4', 'h5netcdf', 'scipy', 'gini', 'pydap', 'store', 'zarr'] from…
0
votes
1 answer

ECCODES C API : updating keys offset, count and countTotal

I am using the codes_grib_multi_handle_write() function to create a multi message grib by iterating over a h = codes_grib_handle_new_from_samples(NULL,"GRIB2"). Each handle is added to the multi handle mh with the function…
user2030243
  • 49
  • 1
  • 6
0
votes
0 answers

Mixed versions of Eccodes

I'd like to install FLEXPART v10.4 in a docker container. First, I use a dockerfile in this website(http://www.martin-rdz.de/index.php/2021/02/27/flexpart-10-into-a-docker-container/). Then to install flex_extract, I have installed jasper-1.900.1…
0
votes
0 answers

Convert grib to netcdf file with wildflags in terminal for an complete folder

The syntax for using eccode to convert GRIB to NetCDF is clear. However, I'm wondering if there's a way to convert an entire folder of GRIB files into NetCDF using the old file names. I attempted to do this using the command below, but it didn't…
S.Kociok
  • 168
  • 1
  • 14
0
votes
1 answer

Convert grib to netcdf file

I tried to convert grib to nc file using xarray wit this code: import xarray data = xarray.open_dataset('E:/Thesis Dataset/Forecast/2017/dis_fore_012017.grib', engine='cfgrib') data.to_netcdf('E:/Thesis…
Wahdan
  • 1
  • 1
0
votes
0 answers

Script cant find ecCodes library

It seems i have succesfully installed ecCodes. At least if i run the selfcheck in the terminal i get the expected response. If i run the sell script which is supposed to work with ecCodes it seems to cant find the commands though. This is the…
maybe_JPEG
  • 17
  • 4
0
votes
0 answers

Why is this shell script to collect data from a website not working

I want to collect wind data, from this URL http://nomads.ncep.noaa.gov using a shell script, for an OpenGL Application. Online it was adviced to install ecCodes, which i did (at least the package, i am honestly not sure if it is working corretly).…
maybe_JPEG
  • 17
  • 4
0
votes
1 answer

How to install ecCodes in Anaconda

I tried to install ecCodes with Anaconda. After several failed attempts, it seemed to have worked, as i didnt get an error report in the terminal. As you can see in the Screenshot. The process froze several times with this command: conda install -c…
maybe_JPEG
  • 17
  • 4
0
votes
0 answers

Setting environment variable in python has no effect on cfgrib

I am using xarray with cfgrib to load grib files in Python. I have custom grib definitions, which I am providing to eccodes (backend for cfgrib) via the environment variable GRIB_DEFINITION_PATH. This setup works well, as long as I run the Python…
tierriminator
  • 587
  • 5
  • 19
0
votes
1 answer

Python: failed to load package on path

I am trying to install the cfgrib using pip using the following: pip3 install --user eccodes This installs the eccodes package along the following path: /Library/name/Python/3.8/lib/python/site-packages When I try to run my python script (see…
thereiswaldo
  • 87
  • 1
  • 8
0
votes
1 answer

Eccodes generates different results when using different tools

I'm using the Eccodes API to convert GRIB2 files. When I use the C++ API to extract all paramId and shortName, V component of wind (paramId is 132 and shortName is v) is not present in the query results, as follows: ids=73 0 31 43 54 59 130 131 133…
Weiming Hu
  • 193
  • 1
  • 1
  • 11
1
2