Questions tagged [grib-api]

The ECMWF GRIB API is an API accessible from C, Fortran and Python programs developed for encoding and decoding GRIB data. GRIB is a standardised data format commonly used in meteorology to store historical and forecast weather data.

The ECMWF GRIB API is an application program interface accessible from C, Fortran and Python programs developed for encoding and decoding World Meteorological Organization (WMO) FM-92 GRIB edition 1 and edition 2 messages. A useful set of command line tools is also provided to give quick access to GRIB messages.

GRIB is a concise data format commonly used in meteorology to store historical and forecast weather data. The latest version of GRIB edition 2 documents from the WMO can be accessed here.

According to ECMWF message "GRIB-API support is being discontinued at the end of 2018. Please consider upgrading to ecCodes which is the primary GRIB encoding/decoding package used at ECMWF."

13 questions
4
votes
2 answers

ImportError when using Python Anaconda package grib_api

I am trying to use the ECMWF GRIB_API to access GRIB files from Python. I get this error Traceback (most recent call last): File "/home/martin/markj/JustImportGRIB.py", line 1, in from gribapi import * ImportError: No module named…
MarkJ
  • 30,070
  • 5
  • 68
  • 111
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
1
vote
0 answers

Grib_api options in f90

As we know if I want to get the levelType of each message in a grib file. I could use this below in f90: grib_get(igrib(i), 'levelType', ltype) But when fail it will cause a eccodes error and can't gei the value. As the document of grib_api on the…
Li Ziming
  • 385
  • 2
  • 5
  • 17
1
vote
0 answers

Error: "GRIB_API ERROR : Unknown stepType=[7] timeRangeIndicator=[7] " using eccodes

I'm working with grib files from Nasa - files from NLDAS Noah model. I'm using pygrib and grib tools (both based on eccodes engine). When I try to get data from the file (using grib_get_data/grib_ls) or using readline (with pygrib) I get the same…
1
vote
1 answer

Reading a grib2 message into an Iris cube

I am currently exploring the notion of using iris in a project to read forecast grib2 files using python. My aim is to load/convert a grib message into an iris cube based on a grib message key having a specific value. I have experimented with…
Xav
  • 53
  • 7
1
vote
0 answers

Python gribapi function not yet implemented

I'm using GRIB_API to parse my grib2 files. I tried Iterator.py but when I run my python script I got this error : GRIB_API ERROR : jpeg support not enabled. Please rerun configure with the --with-jasper or --with-openjpeg option. GRIB_API ERROR …
John
  • 4,711
  • 9
  • 51
  • 101
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

Issue Downloading gribr package

I have been trying to download the R package gribr to work with grib data files in R but I have been getting some trouble with the download. Any assistance or direction on how to achieve this will be highly…
codeload
  • 1
  • 2
0
votes
1 answer

Is there a way to pull only metadata and specific range in grib?

There is an increasing huge abundance of weather data available on cloud buckets. Awesome! However they are not stored in cloud optimized formats. I was wondering if there was a way to only pull metadata from grib2 files stored on AWS, and…
Jon E
  • 99
  • 7
0
votes
1 answer

RNomad to process grib2 files in R is taking too long

We are trying to read a grib2 containing weather forecast with 13 variables at one pressure level for 6 lat/long for one day. The grib2 file is 62mb. To read one variable of hourly data for one day it takes about an hour, particularly ReadGrib. …
0
votes
1 answer

I am having weather data in grib2 format and i want to convert it into json format Is it possible to conversion using node.js?

I am having weather data in grib2 format and i want to convert it into json format or csv. I know the languages PHP , node.js. Is it possible to conversion using these technologies?
0
votes
1 answer

Iterating grib tools over a folder of grib files

I am attempting to mass-convert a large number of GRIB files to netCDF using grib tools (I am on Windows 7) in a batch file. I am using this code: for /f %%f in (`dir /b O:\Praksa\incadata\2014\01\01`) do echo %%f grib_to_netcdf -D…
peroman200
  • 13
  • 5
0
votes
2 answers

Accessing all parameters of a GRIB2 file using pygrib

I am trying to read a GRIB2 file using pygrib. I manage to open files and read data without problem, but I need to automate the process, and unfortunately each file contains multiple very similar fields: 1:Total Cloud Cover:%…
Holt
  • 36,600
  • 7
  • 92
  • 139