Questions tagged [grib]
GRIB (GRIdded Binary or General Regularly-distributed Information in Binary form) is a concise data format commonly used in meteorology to store historical and forecast weather data. It is standardized by the World Meteorological Organization's Commission for Basic Systems, known under number GRIB FM 92-IX, described in WMO Manual on Codes No.306.
81
questions
1
vote
0
answers
26
views
Buffer Error when using xarray
When I tried to using python package "xarray" to read grib files, I got an error. It's quite weird, because I had did it successfully yesterday.
This is my code:
import xarray as xr
import ...
0
votes
0
answers
33
views
GetFeatureInfo problem with .ftl and .sld
I'm configuring a WMS that exposes measurements read from GRIB files. I initially configured the layer that uses the default style (Raster.sld), then I configured two .ftl files to change the display ...
1
vote
0
answers
70
views
How to create a vector dataset from mesh data for QGIS
QGIS can read time-varying GRIB files as a "mesh" data source, which is neat. The dataset is documented to be either a scalar or vector dataset. I'm able to open my GRIB files as scalar ...
0
votes
0
answers
80
views
How to properly store raster data in GRIB format
I have some raster data stored as individual uncompressed geotiff files (one file per time step) that I would like to store in a more compact way. I have decided to try different formats and see which ...
2
votes
1
answer
71
views
Crossing English channel in a boat
GRIB file = (U-V) component. from
enter link description here
GRIB represents currents. Vectors(U-V) blue arrows and a color scale --> Magnitude and direction. Blue'ish to the left. Yellowish to ...
4
votes
0
answers
79
views
Looking up whole time-series for specific point from 45 GB file
I want to look-up 8760 times for a single lat/lon combo in less than a second from 43.82 GB file of wind data containing:
8760 times (every hour in a year)
721 latitudes (every 0.25° from -90.0° to ...
0
votes
1
answer
1k
views
Why do rioxarray reprojection and pyproj transform give different values when selecting a pixel by point coordinates?
I'm opening this grib file using rioxarray and reprojecting to WGS84 in the following manner with the goal of grabbing pixel values by coordinates.
import rioxarray
url = 'https://noaa-hrrr-bdp-pds....
1
vote
1
answer
2k
views
How does one get the metadata of each band of a grib file using rasterio?
Is there a way to see the metadata of each band of a grib file using rasterio? Using gdal this can be accomplished by:
import gdal
path = r"D:\path\to\somewhere.grib"
ds = gdal.Open(path) ...
0
votes
0
answers
1k
views
Reading grib file without extension using Xarray
Is it possible to read a file without an extension from Xarray and let Xarray infer the correct datatype?
Context: I downloaded files with .Z compression from https://data.eol.ucar.edu/. An example ...
0
votes
1
answer
237
views
Error when creating geodataframe from lists [geographic coordinates and GRIB CRS]
I'm working with meteorological data and I want to insert the grid points and also their polygon in a GeoDataFrame.
They are generated by ERA5 and in a GRIB format.
When I try to create the ...
1
vote
1
answer
1k
views
Unable to convert grib2 files to geoJSON file (as polygons)
I have been working with the following GRIB2 files at https://mrms.ncep.noaa.gov/data/3DZdr/MergedZdr_02.00/. I need to setup a process to convert these to geoJSON polygons. I have tried official ...
1
vote
0
answers
265
views
Continued issue with ECCODES_DEFINITION_PATH for use with cfgrib
I have found a few posts that address this general topic:
ECCODES ERROR when opening .GRIB file in Spyder/Visual Studio Code
https://github.com/ecmwf/cfgrib/issues/85
The first link is the exact ...
0
votes
0
answers
1k
views
How to convert a GRIB file to CSV/ASCII
I have downloaded the ERA5-Land hourly-ECMWF climate reanalysis data from Copernicus. The data come in .grib format. It would be easy for me to manipulate the data in .csv or ASCII format. The idea is ...
1
vote
0
answers
134
views
GDAL: wrong corner coordinates from KNMI grib file
I'm trying to parse KNMI grib files to extract weather forecasts for The Netherlands. I use gdal.netcore which is a .NET wrapper for gdal 3.2.0. On the website of KNMI they say the following:
...
2
votes
0
answers
319
views
GDAL's ReadAsArray() incredibly slow when reading an in-memory raster?
So I have a script set up in a conda environment on macOS Catalina running python 3.7, I'll post a paraphrased version of it:
from osgeo import gdal
import numpy as np
grib_url = '/vsicurl/...