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.

Filter by
Sorted by
Tagged with
1
vote
1answer
88 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 ...
0
votes
1answer
59 views

Grib Metadata with GDAL in Python

I'm trying to use GDAL in python to conditionally select raster bands from a grib file based on the time when the weather feature was measured (think temperature). If I run GetMetadata() on the ...
0
votes
0answers
28 views

Incorrect Color Palette for Displaying GRIB Data with gdaldem

I'm trying to display temperature values from a GRIB2 file using gdaldem and gdal2tiles.py. Code gdaldem color-relief -b 1 raw.grib2 -alpha t2m_palette_val.txt -of VRT raw.vrt python ./gdal2tiles.py ...
2
votes
0answers
191 views

Python GDAL showing incorrect metadata for GRIB file

I'm trying to read a GRIB file containing ERA-5 single level data that I downloaded from the Climate Data Store (CDS, https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-single-levels?...
1
vote
0answers
24 views

Produce a filtered version of a GRIB file

How can you produce a filtered GRIB file containing a subset of information from an original "bigger" GRIB file? Let's say I have a GRIB file covering pressure, temperature and wind direction for a ...
0
votes
0answers
157 views

Transforming GRIB file into GeoTIFF that is correctly georeferenced using Python GDAL?

I am trying to transform a GRIB file into a GeoTIFF to be used in a ArcGIS, but am having trouble getting the image to display in the correct location. I have been able to create a GeoTIFF, using GDAL ...
2
votes
2answers
220 views

Handling raster data in a “rotated pole projection” with R?

My question is about using R to transform raster data from a rotated pole projection to a regular latlon grid - and then plotting it. I am working with data from a numerical weather model, which is ...
1
vote
1answer
114 views

Coding or converting grib files

I want to convert my text file to grib file. But it seems not possible. How can I code grib files in Fortran or C#.
1
vote
2answers
183 views

Unknown projection of GRIB file

I have issues extracting geometrical shaped data from a GRIB raster of soil moisture. The file is for example https://gimms.gsfc.nasa.gov/SMOS/jbolten/FAS/L03/20100113_20100115.as1.grib Using either ...
2
votes
0answers
121 views

Reprojecting raster file with unknown datum using ArcGIS Desktop?

I am new to GIS. I had a grib format data file and it's coordinate system shown below. I want to project it to WGS84, however, the datum of original file is unknown. I know I need to provide the datum ...
2
votes
1answer
2k views

Using GDAL to read data from GRIB file in Python?

I am attempting to use GDAL to read corresponding latitude, longitude, and temperature values from a GRIB file. I would like to store these data points in a 2-D list. I was able to do this using the ...
0
votes
0answers
488 views

Creating GeoJSON from GRIB2 format using Python?

My ultimate goal is to create geoJSON from GRIB2 format using Python in order to display it at the Leaflet-open-street map. I have the following data extracted from GRIBs: Multi-dimensional array ...
2
votes
0answers
53 views

Soil type info from grib file

I want to read soil type info from grib file, but dont know a variable name. I expect that this variable contains a value between 1 and 9, corresponding to the possible different types of soil for ...
1
vote
0answers
215 views

How to displaying u and v components of wind data from a grib file as geoserver coverage?

I have generated a coverage view from a grib file (u,v components), but I can't style the result of both components. Is there any way to style both wind components (u and v)? My style is the next ...
1
vote
0answers
84 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 ...
5
votes
5answers
1k views

WKT for EPSG:4326 with LON 0 to +360 instead of -180 to +180

I have GRIB2 files that seem to be in a projection similar to EPSG: 4326, except that instead of longitude between -180 and +180 it is between 0 and 360. My intention is to get these files into ...
2
votes
1answer
604 views

GDAL program produces only zeroes, regardless

I have been working on this problem for a while now and have asked two seperate questions regarding it (Counting events from a GRIB raster, ValueError: array larger than output file, or offset off ...
1
vote
1answer
1k views

ValueError: array larger than output file, or offset off edge Python GDAL

I have been working on this iterator that would count instances where data conformed to a set of conditions over a number of rasters. I had people help me with other aspects of this script (Counting ...
0
votes
0answers
171 views

Counting events from a GRIB raster

I have been attempting to find a solution to the problem of limited access to GRIB_API(on Windows) through using GDAL in Python. The main thing I want to achieve is to be able to set some conditions, ...
0
votes
1answer
68 views

How to analyze temporal change in wind?

I have daily data for several years (GRIB but also available as netCDF), I would like to investigate how the wind speed and direction has changed along the migratory route of a bird (in spring) and ...
2
votes
1answer
94 views

Dangerous wind from Grib file

I need to filter out the low speed winds from the values inside a Grib file. This is my first time using this kind of data. I can read the file, and iterate inside all the GeoSpatialValues (getting ...
1
vote
1answer
583 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
2answers
332 views

PostGIS: Having trouble getting a value from a raster

I'm working on a subsetted grib file that I retrieved using this URL: http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_0p25.pl?file=gfs.t12z.pgrb2.0p25.f001&lev_925_mb=on&var_RH=on&subregion=...
1
vote
0answers
242 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 ...
1
vote
1answer
389 views

GRIB1 to CSV on linux

Is there any easy way to convert GRIB1 files to CSV in Linux? I've seen that supposedly GRIB2 can readily be converted to CSV, and I've tried to convert the Grib1 files to Grib2 using grib1to2 but its ...
0
votes
1answer
373 views

Data conversion from csv into GRIB or NetCDF format

I want to use Crayfish plugin for spatial temporal analysis of oil spill events. These data are available in csv format. Does anyone has an idea of how csv data can be converted into GRIB or NetCDF ...
1
vote
1answer
1k views

Grib to CSV use lat lon

I have some grib files that I converted to csv. I would like to view the data in a table using the lat, lon, and variable as column headers. How can I do this using the grid data/dimensions within ...
1
vote
1answer
466 views

How to calculate the percentage of the area that a polygon covers a cell in a raster in QGIS

I'm having trouble with using QGIS. I have a GRIB file containing meteorological data, this is loaded in QGIS as raster data if I'm not mistaken. I also have a shapefile containing a polygon, ...
2
votes
0answers
245 views

Grib file information to create QGIS projection

I'm trying to create a specific projection with QGIS (something like that: +proj=lcc +lat_1=69.75 +lat_2=52.87 +lat_0=61.31 +lon_0=7.665 +x_0=0 +y_0=720 +ellps=GRS80 +units=m +no_defs). I have some ...
1
vote
0answers
426 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 ...
2
votes
2answers
1k views

What is the difference between 10 metre U component of wind and U component of wind

I am trying to read GRIB files which have a number of messages including 10 metre u component of wind 10 metre v component of wind u component of wind v component of wind I cannot seem to find any ...
1
vote
1answer
1k views

GRIB to NetCDF with GDAL, specifying dimensions

I have a GRIB dataset representing temperature over North America, in Lambert Conformal Conic (with specified central meridian, latitude of origin, etc.). It has what should be understood as a ...
2
votes
0answers
133 views

Counting Subdatasets in GRIB using ArcPy?

I'm trying to utilize the extractSubdataset_management tool on a large set of GRB files. Each GRB file has a different number of subdatasets. Is there any way to execute this tool on all subdatasets ...
4
votes
0answers
1k views

Reading GRIB band metadata with GDAL

I'm trying to use GDAL in python to get only the temperature band from this GRIB file that has 2 bands. I can't just do temp_band = ds.GetRasterBand(1) because sometimes, but not always, the grib ...
1
vote
1answer
283 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
209 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
520 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
1answer
653 views

GRIB data interpolation

I've been wrangling around in GFS grid based data (GRIB - mostly 0.5 degree resolution). I'm interested in plotting these by converting to geojson with ogr2ogr (which is quite easy). However, is there ...
1
vote
2answers
284 views

translate GRIB product on bounding box

I'm in troubles with the projection of a GRIB product. I have a Cloud mask image and I want georeferencing it with GDAL. I need to pass through gdal_translate before, since i need to fix the bounding ...
1
vote
0answers
138 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
2k 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 ...
4
votes
1answer
598 views

extracting geographic location from NOAA NARR grib

I've downloaded a NOAA NARR grib file that I want to extract the wind component as well as the geographic location. I'm able to extract the wind component from the grib but I can't seem to find any ...
1
vote
2answers
784 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
530 views

How can I access the bands of a grib file with gdalwarp?

How can I access the subdatasets of a grib file? I am working with NLDAS data and I want to process only the first band of the grib file. I know how to do it with HDF data but I couldn't handle it ...
1
vote
0answers
2k views

Converting GRIB to Geotiff with gdal_translate in Python

I want to extract each band from a GRIB (gridded binary from http://data-portal.ecmwf.int/data/d/interim_daily/) in a single Geotiff image. I´m using Python with gdal_translate in a QGIS backround, ...
2
votes
1answer
2k views

Python package for processing GRIB data in windows

I would like to know what python packages can be used to process GRIB (Gridded Binary) data on a Windows system. I know there is something called pygrib, but to use that I have to use cygwin windows ...
1
vote
1answer
2k views

Convert grib (grb2) precipitation band to visible PNG

I'have been trying to convert band 7 (precipitation) of a grib file (you can download it if you like) to a visible PNG image which I can load via KML into a google maps viewer I have. The ...
1
vote
0answers
243 views

How to rotate u and v components of wind in rotated gribs?

I have a grib message of a rotated hirlam product. The grib message states, that the u and v component contained are relative to the rotated grid. How can I unrotate them?
3
votes
2answers
4k views

Conversion of GRIB and NetCDF to my database

. I have downloaded "High Resolution Initial Conditions" climate forecast data for one day, it was in extension .tar.gz so I extracted it in my local directory and I get the files like in the ...
5
votes
1answer
3k views

grib2 to raster? (grib2 -> raster2pgsql -> PostGIS 2.0 -> GeoServer)

I'm looking to implement import of US National Weather Service data for doing various sorts of models (www.soils.wisc.edu/uwex_agwx if you're curious about what we're doing with the data). The ...