Questions tagged [grib]

GRIB is a binary format for storing spatial information, used most often in meteorology. Use this tag for questions about programmatically encoding and/or decoding data to/from GRIB files.

GRIB is binary file format defined by the World Meteorological Organization (WMO). It is a compact format for storing gridded meteorological data such as air temperature or pressure. There are two major versions of the format: GRIB1 and GRIB2.

Selected tools and interfaces

References

202 questions
4
votes
1 answer

NetCDF: NoSuchFieldError: pdsHash when opening a file

I am trying to open grib2 file with NetcdfDataset.openDataset() val path= getClass.getResource("/grib2/weather.grib2").getPath val gribFile = NetcdfDataset.openDataset(path) and I met with NoSuchFieldError: pdsHash. Does it mean that this file is…
Kuba Wenta
  • 580
  • 1
  • 5
  • 25
4
votes
0 answers

how to upload grib file on postgis

I'd like to upload grib files on postgis. I've found this, this and this about this topic. These solutions seem to work only with a grib2 format as the code I tried runs but I had an empty table on my postgis database. There is a way to upload a…
Glori P.
  • 466
  • 1
  • 4
  • 14
4
votes
0 answers

Apache Spark: Read GRIB2 file to RDD

Is there a possibility to read a GRIB2 file from HDFS into RDD via Spark API? I found JavaContext.binaryFiles, but the returned RDD contains cryptic data (not human readable). I'm using Spark 1.6.1 and the Java API. Thank you! String inputFile =…
D. Müller
  • 3,336
  • 4
  • 36
  • 84
4
votes
0 answers

Convert GRIB to JSON object

Previously I have worked on a project that reads and displays wind direction forecast using GRIB data retrieved from the following NOAA website: http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl The GRIB data downloaded is then converted to…
tanlccc
  • 363
  • 1
  • 5
  • 13
4
votes
2 answers

Grib2 to PostGIS raster -- anyone get this to work?

I have an application for which I need to import U.S. National Weather Service surface analyses, which are distributed as grib2 files. I want to pull those into PostGIS 2.0 rasters, do some calculations and modeling, and display the data and model…
Rick Wayne
  • 1,503
  • 2
  • 12
  • 11
3
votes
1 answer

Load GRIB variables with "unknown" typeOfLevel using cfgrib

I'm trying to load GRIB2 files from DWD's ICON model using xarray and cfgrib. Most variables work fine, but for some (like for example CLCL), xarray.open_dataset raises the following error: Traceback (most recent call last): File…
Florian Brucker
  • 9,621
  • 3
  • 48
  • 81
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
2 answers

How can a GRIB file be opened with pygrib without first downloading the file?

The documentation for pygrib shows a function called fromstring which creates a gribmessage instance from a python bytes object representing a binary grib message. I might be misunderstanding the purpose of this function, but it leads me to believe…
FlippingBinary
  • 1,357
  • 10
  • 21
3
votes
2 answers

How to retrieve from lat, lon value using pygrib

I'm starting in python programming and I would like to make a small script which displays the data of "Local temperature diagnosed at 2m height above the relief", "Zonal component of the west-east horizontal wind diagnosed at 10 m height" and the…
sebastian
  • 31
  • 1
  • 3
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
3
votes
1 answer

Load a grib2 file in Python

I am trying to load grib2 files and I am not sure if the files are the issues or if the way I am trying to load them. The files are extracted from here (I didn't download them from here, but copied them from a folder of a colleague that gets them…
claude
  • 549
  • 8
  • 25
3
votes
2 answers

Error: Command '['dot', '-V']' returned non-zero exit status -5 When using Iris

After I installed the package Iris with conda install -c scitools iris, Whether using Ipython console or Jupyter notebook, the iris was always failed to import. The error subroutine shows like: …
Han Zhengzu
  • 3,694
  • 7
  • 44
  • 94
3
votes
1 answer

Extrcat Value From Grib2 weather file C#?

I'm working on weather data visualization and to get data I'm using Grib2 files which has all weather information regarding weather, and their parameters based values. I'm able to get Grib2 files but I'm stuck to get data from the files using C#.…
user5418394
3
votes
2 answers

White area on matplotlib plot with pygrib data between 359.5 and 360 degrees

What I try is to plot output of the gfs weather model with matplotlib using pygrib to save the data, which is saved in grib files. Nearly everything works fine, the output looks like this: It appears that the program isn't closing the gap between…
Dremet
  • 1,008
  • 1
  • 9
  • 23
1
2
3
13 14