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
22 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
8 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
5 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 ...
2
votes
0answers
48 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
55 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('...
0
votes
0answers
10 views

GRIB data format investigating octets of sections with Python

I'm trying to learn GRIB data format and I found this helpful guide to dive into https://www.wmo.int/pages/prog/www/WDM/Guides/Guide-binary-2.html#Section3. I had an experience with Gdal and Pygrib. ...
0
votes
0answers
107 views

Converting NetCDF to Grib2 in Python on native Windows. Which package?

Problem statement: I need to implement an easy-to-share script compatible with Windows environment that allows me to open a NetCDF, manipulate it, and save it in Grib2 format. Attempt 1: iris / iris-...
0
votes
1answer
99 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
15 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
49 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 ...
0
votes
0answers
47 views

Convert grib to image using custom color scale?

I'm working on generating full color radar maps from a grib file. Example of the output I'm trying to create is here: https://boozedog.com/stuff/colorful.png Here's the input grib I'm using: https://...
1
vote
1answer
106 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, ...
2
votes
2answers
206 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 ...
2
votes
0answers
81 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
85 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 ...
1
vote
1answer
128 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 ...
0
votes
1answer
63 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/...
0
votes
1answer
72 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
576 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?
2
votes
2answers
942 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 ...
-1
votes
1answer
17 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
443 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
168 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....
1
vote
1answer
32 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
104 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
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?
2
votes
1answer
824 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" ...
2
votes
0answers
314 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'...
1
vote
0answers
556 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
199 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 ...
2
votes
1answer
980 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-...
10
votes
2answers
16k 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
vote
1answer
2k 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 ...
1
vote
1answer
312 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/...
0
votes
2answers
254 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
1answer
629 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 -...
1
vote
0answers
146 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 ...
2
votes
4answers
3k views

Converting a large set of GRIB2 files to a spreadsheet format

I have a large set of .pgrbf.grb2 files downloaded from the Climate Prediction Center, and I need to run statistical analyses comparing them to data that was produced locally in .csv format. I'm not ...
1
vote
2answers
950 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
2answers
3k 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
3answers
5k 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 ...
2
votes
3answers
3k 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 ...
2
votes
1answer
467 views

How do I know when a NOMAD GFS Grib2 file is ready for download

The NOMAD GFS system creates files on a 4 times a day cycle. The file naming specification is: cc is the model cycle runtime (i.e. 00, 06, 12, 18) xxx is the forecast hour of product from 00 - 384 ...
3
votes
1answer
2k views

NWS Grib Files scheduled download script

I am downloading grib2 files from the NWS NOMADS GFS service details here The files are provided on a 4x per day cycle and the date format is YYYYMMDDHH. I believe that the processing is actually ...
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 ...
4
votes
3answers
6k 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 ...
5
votes
4answers
2k 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.