Questions tagged [grib-2]

GRIB (from GRIdded Binary, or General Regularly-distributed Information in Binary form) has two editions - GRIB2 is the second version. It is common in weather history and forecast.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

GDAL Warp Error Reprojecting Rotated Lat-Lon Grids

I have stumbled on an unusual error that I have not encountered in GDAL previously, any help is appreciated. I downloaded a GRIB2 file that contains several data grids. This file is described as a ...
0
votes
1answer
98 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 ...
0
votes
1answer
114 views

Create KML "animation" / time domain from separate KML files

I'm currently working on creating a weather map system with leaflet. I'm using grads to create KML files from NOAA/NCEP GFS data in grib2 format. Grads seems to be only able to write out one layer pro ...
0
votes
0answers
781 views

Showing global temperature data in Leaflet layers by GRIB2 files?

Wind data already shown in map by danwild/leaflet-velocity Now I want add temperature to map by tiles. How can I convert GRIB2 files to tiles?
0
votes
0answers
28 views

How to read multiple GRIB files in R and take mean of those rasters?

I have downloaded multiple monthly mean GRIB files from https://cds.climate.copernicus.eu/cdsapp#!/dataset/ecv-for-climate-change?tab=form for Surface Air temperature , from 1979 to 1990. 144 GRIB ...
0
votes
0answers
43 views

Wrong scale units when reading raster grib2 in QGIS 3

I downloaded grid2 files to read meteorogical variables. I wanted to read them through QGIS 3.10.2 (windows and I have to stick with this version) but I encountered problems with the scale of the ...
0
votes
0answers
20 views

MapServer: How to find all high and low spots in a raster?

I'm currently tinkering with MapServer to see if it could work as a backend for the remodel of my hobby stormchaser website. Is it possible (in MapServer) to find all high and low spots in a raster ...
0
votes
0answers
69 views

How to gdal_translate a NOAA GFS grib2 file and cut a piece out with -projwin (coordinate system chaos)?

So I'm trying to convert NOAA GFS gribs files to PNGs with gdal_translate. My grib2s have a pretty big area undefined with wgrib, which appears in white on the resulting image. I have been trying for ...
0
votes
1answer
91 views

Eccodes grib_copy - How to identify the levels and parameters?

I would like to generate a grib from a full GFS grib2 having, for example, only the U and V component for 850 hPa. To do so, I've seen I could use the eccodes library or the command line grib_copy but ...
2
votes
2answers
2k views

Getting data closest to specified point in a grib file (Python)?

I have a grib file. I would like to be able to do something like this: grib_data = grib_data_nearest_point(grib_file='grib_file.grib2', lat=15.5, lon=23.3) Is there a library that can accomplish ...
2
votes
2answers
463 views

Spatial reference transformation for GRIB files using Python

I want to use the Python programming language to create a transformation of the spatial reference system used by NOAA in the GRIB files created by their WaveWatchIII model (link to grib files). Using ...
0
votes
0answers
47 views

Reading some NOMADS grib files fails

I am trying to read in a file from https://nomads.ncep.noaa.gov I can read all multigrid files like here but my script fails to read files from other links that are supposed to be Grib files such as ...
2
votes
3answers
4k views

How to convert NetCDF file to Grib2 or Grib files

I'm in trouble to read NetCDF file data. Basically NetCDF file contains Ocean current data. How do you convert a NetCDF file to a Grib2 or Grib file? I already have procedure to read data from Grib2 ...
0
votes
0answers
17 views

Add extra metadata to each message of a GRIB file?

I wonder, is there a tool to allow one add an extra metadata to each message of a GRIB file? For example: from grib_dump of a GRIB file, I have: #============== MESSAGE 6 ( length=976330 ) ...
0
votes
0answers
16 views

Missing grib metadata when using CDO tool to invert Lat axis from South-North to North-South?

I have a grib file (it is quite big) and I tried to use cdo to copy it to another grib file. cdo -R copy ws10m_mean24h.grib test.grib However, in this diff: https://www.diffchecker.com/w25sayVz it ...
3
votes
0answers
81 views

Convert .grib2 in triangular grid to regular grid

I have ICON datasets (.grib2.bz2 file format) from Deutscher Wetterdienst (DWD) in triangular grid that I would like to transform to a regular grid. Currently, I run the following statement in my ...
1
vote
1answer
295 views

Unable to read GRIB datas with XArray

I used this code to read grib data import os import numpy as np import pandas as pd import xarray as xr path = "gfsanl_4_2019101000.g2" os.chdir(path) ds = xr.open_dataset('...
1
vote
1answer
139 views

Creating (x,y) coordinates in .nc from .grib2

I have to use a .nc file as input in a model and such model requires projection_x_coordinate and projection_y_coordinate as variables but I don't have them. Is it possible to create them using pyproj, ...
0
votes
1answer
369 views

Is there anyway to read grib file without download it?(directly from the link)

grbs = pygrib.open( 'https://www.ncei.noaa.gov/data/north-american-mesoscale-model/access/historical/forecast/202001/20200101/nam_218_20200101_0600_024.grb2') grb = grbs.read(1)[0] This is what I ...
1
vote
0answers
21 views

Proper way to calculate a selection of GRIB2 data points?

I have a GRIB2 file that I have successfully parsed and got an array of temperatures for a specific latitude and longitude. What would be the proper way to convert this array to a single value? I wasn'...
0
votes
1answer
87 views

How to catch problematic grib2 files?

I am trying to process a large number of HRRR files, about six months' worth of them, which is close to 4059 files. I am working in R, and this is the function I have, that I am trying to vectorize ...
1
vote
1answer
262 views

grib2 idx files - dealing with bands with identical byte ranges

I am using GDAL to process grib2 data. This data is downloaded from NCEP using HTTP random access based on the byte ranges specified in the index file for each grib file. This .idx file looks like ...
2
votes
0answers
140 views

Why QGIS cannot georeference a Grib2 file with CRS (PROJ.4 and OGC WKT2)?

Situation: I have some .grib2 files that I downloaded from a (supposed to be) reliable source. When I do $ gdalsrsinfo file.grib2 I get: PROJ.4 : +proj=lcc +lat_0=38.5 +lon_0=262.5 +lat_1=38.5 +...
1
vote
0answers
138 views

GeoServer WMS using NetCDF plugin and GRIB2 time dimension

I am attempting to use GeoServer with the NetCDF plugin to create a WMS-T (WMS with time dimension) service. My input is a GRIB2 file containing a single parameter (temperature) and multiple forecast ...
0
votes
1answer
83 views

NOMADS grib file naming

I am looking to run https://polar.ncep.noaa.gov/waves/examples/usingpython.shtml#example_2 example on wave model data. It refers to downloading grib files from https://nomads.ncep.noaa.gov/pub/...
10
votes
2answers
19k views

How to extract specific information from GRIB files?

How to extract fetched GRIB data with Python and gribapi package (link goes to official ECMWF Wiki)? I tried to follow few examples from their "documentation" and do it myself, but I just cannot ...
-1
votes
1answer
24 views

Projecting rectangular stereography centred on 42°N, 10°E

I have a precipitation GRIB2 file obtained at EUMETSAT H-SAF I am able to decode it to ascii but the software I am using (gdal, ArcMap,...) does not recognize the projection (in the title) so I am not ...
2
votes
0answers
542 views

reprojection and write grib files

I'm working on GRIB file, In input, I have the file with data from 0 to 360°. As gdalwarp does not write GRIB file (only gdal_translate), I use gdal warp to projct data from [0,360] & [-90;90] to ...
2
votes
1answer
205 views

GDAL processing of GRIB2 raster prints hundreds of unsuppressable warnings

I am processing some GRIB2 raster files from NCEP (weather model stuff). An example file would be: http://nomads.ncep.noaa.gov/pub/data/nccf/com/hiresw/prod/href.20180906/ensprod/href.t00z.conus.mean....
2
votes
1answer
946 views

Interpolate grib2 data from GFS

I downloaded a grib2 file containing GFS data. I need to get wind and temperature from altitudes ranging from 1000 ft to 42000 ft I know the grib2 (GFS) only have data for specific "isobaricInhPa" ...
1
vote
1answer
4k views

Retrieving info from GRIB2 file with JAVA?

I've just started parsing some info inside GRIB2 file with NOAA weather forecast, and I am realizing this task is not as easy as I could think 'a priori'. I need to process some info inside JAVA ...
1
vote
3answers
6k views

Successfully extracting values from a GRIB2 file...is it possible?

Let me say first that I'm starting to work with GRIB2 files, I've read the docs, and more or less know how they are structured. My goal is to be able to parse some GRIB2 files from NOAA, more ...
1
vote
2answers
1k views

How wrap GRIB data in Mapserver 6.4

I'm trying to draw a combination of layers with Mapserver. One of the layer takes a shapefile as input and the other one is based on GRIB data. The issue is that the GRIB layer (in green) is drawn ...
1
vote
1answer
37 views

arcpy cannot extract a subdataset from a .3D file

I am working with data which represents the atmosphere as rasters at 29 different altitudes. This data is stored in a ".3D" file. When I drag and drop into ArcMap it asks me to select the layer I want....
1
vote
0answers
108 views

Seeking source for grib data download?

I am trying to integrate wind maps into an existing map and I would like to download the latest wind data for a local area like zyGrib does and then attach it into the map. I am aware that there are ...
1
vote
0answers
590 views

How to create a script using wgrib2 command [closed]

I have several model data with the following format postwrf_d01_YYYYMMDD_INIT_f00000.gr2 where INIT = 0000, 0600, 1200, 1800, each consisting of up to several hours of forecast (f00000 to let's say ...
1
vote
1answer
1k views

Regrid a GRIB2 file and convert to netCDF

I have a GRIB2 file on a Gaussian grid. I'd like to convert it to a netCDF file with to an equally-spaced 0.5-degree grid. How can I do this?
1
vote
1answer
335 views

Trouble Installing GriB extension to Geoserver 2.7.1.1

I am trying to add GriB reading capability to my Geoserver distribution (version 2.7.1.1, build date Jun 26, 2015). I am trying to use the plugin archive found at http://ares.boundlessgeo.com/...
2
votes
0answers
336 views

PostGIS: Querying raster data along a path

I've got a raster loaded into PostGIS that contains grib forecast data which I loaded using raster2pgsql using SRID 4326. To keep things simple I am not tiling the raster so I only have one row in my ...
2
votes
1answer
2k views

How to get value of uvIndex for a particular latitude and longitude from a grib2 file?

I'm trying to find out the uvIndex of a particular set of lat,lng. I'm getting the data file from this link. I'm using pygrib to read the file. import pygrib grbs = pygrib.open('uv.t12z.grbf01.grib2'...
4
votes
3answers
7k views

How to convert GRIB-1 to GRIB-2?

I need to get data for my database from some GRIB files (binary), I downloaded wgrib2, which can export GRIB-2 files to .csv and csv is very suitable for me, but some GRIB files are GRIB-1, so I used ...
1
vote
1answer
227 views

How do I correct the GeoTransform of a GRIB dataset if I scale/crop the data?

I have modified the GRIB2 data to be cropped and a different size. I'd like to create a new GRIB2 file which contains this modified dataset. How do I calculate the new GeoTransform and create it using ...
1
vote
1answer
711 views

Converting GRIB to NetCDF with time dimension using netcdfAll?

I'm trying to convert grib files to NetCDF. The grib files contains subdata sets which are time related. Using the netcdfAll Java library with the NetCDF-4 C library works fine. java -Xmx1g -...
2
votes
1answer
1k views

Historical NWS GFS forecast data

The National Weather Service (NWS) makes the results from its Global Forecast System model (GFS) available for download as GRIB2 files. While accessing current (or recent) forecasts is straight-...
1
vote
2answers
4k views

Getting time dimension from GRIB file?

I have a GRIB file from NOAA that contains several variables for a specific subregion in Norht-East Atlantic. I'm using ECMWF grip-api Python library to parse the file. While I'm able to get the ...
1
vote
1answer
3k views

Downloading GRIB GFS files with specific filters?

Is it possible to download a smaller GRIB GFS file with specific parameters only (e.g. surface wind and temperature values) rather than hundreds of MB of data? If so, what is the usual approach to ...
1
vote
1answer
1k views

Extract geographic subregion from grib2 file

I'd like to extract a sub-region from a grib2 data file (GFS data from NOAA), writing the results into a separage grib2 file. I'd prefer it if I could use a lat/lon bounding box (the GFS data is on a ...
5
votes
4answers
3k views

Grib2 Libraries For .Net

Are there any good libraries for accessing GRIB2 data in .Net? Specifically, I want to be able to quickly pull subsets of weather data from a grib2 file based on time and location.
0
votes
2answers
291 views

GRIB2 analysis time?

I am trying to understand the timestamps in a grib2 file containing hourly data. From http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/csv.html: Time0 is the reference time, that is usually the ...
1
vote
0answers
152 views

Geotransformation, from sat coordinates to Earth coordiantes

I'm using this code: https://github.com/mcidasv/mcidasv/blob/master/ucar/unidata/geoloc/projection/sat/GEOSTransform.java to retrieve longitude and latitude in Earth system from column, line ...