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
1
vote
0answers
12 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
28 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
23 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://...
0
votes
1answer
63 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
95 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
45 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 +...
0
votes
0answers
24 views

Is it possible to have one layer with multiple bands instead of multiple layers with single bands in GeoServer?

I need to be able to query dozens of different weather parameters simultaneously by coordinate. Any latitude/longitude is a valid query parameter - the data is not confined to a list of locations. My ...
1
vote
0answers
53 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
67 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
50 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
0answers
130 views

wgrib2 CSV output

The -csv parameter of wgrib2 outputs longitudes between -180 and 180 degrees, and it includes the date in each row (twice for some reason): wgrib2 2016010100.grib2 -csv output.csv "2016-01-01 00:00:...
0
votes
1answer
49 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
392 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
1answer
618 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
16 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
359 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
137 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
30 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
101 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
750 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
300 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
506 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
185 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
916 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-...
8
votes
2answers
15k 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
983 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
298 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
240 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
590 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
144 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
917 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
2answers
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
450 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.