GRIB2 & NetCDF Reader API: Weather Data to CSV, JSON & Maps
Pricing
Pay per event
GRIB2 & NetCDF Reader API: Weather Data to CSV, JSON & Maps
Read GRIB and NetCDF weather and climate files from links or uploads: GFS, ECMWF, HRRR, ERA5, CMIP. Values at points as JSON and CSV, area statistics, maps and NetCDF subsets. With a variables list, only those fields are downloaded, through the file's index. For developers and AI agents.
Pricing
Pay per event
Rating
0.0
(0)
Developer
Jumble Mog
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 hours ago
Last modified
Categories
Features
Share
Read GRIB and NetCDF weather and climate files from one API call. Give links to the files (or upload one), say which places and variables you want, and you get back:
- Values at your points as JSON rows and CSV: temperature, pressure, wind, rain, cloud or any other variable in the file, for every level and time, with the grid cell each value came from and how far away it is.
- Only the fields you ask for are downloaded. NOAA and ECMWF publish an index next to each GRIB file; with a list of variables the tool reads the index and fetches just those messages. Four fields of a 500 MB GFS file are a 3.7 MB download.
- Maps as PNG pictures, with coastlines, borders, a colour scale in the right units and isobars on pressure maps, for the whole grid or an area you name.
- Statistics over an area: minimum and maximum with where they are, and the area-weighted mean, for each variable and time.
- Conversions: a NetCDF copy of what you picked (GRIB to NetCDF in one step), or every grid cell as a CSV row.
- A list of what each file holds: variables, levels, times, units, the grid and its resolution, and every GRIB message.

2 m temperature from NOAA's GFS 0.25° forecast, read from the public bucket with "variables": ["TMP:2 m above ground"] and "area": "europe".
The files are decoded by ECMWF's ecCodes and cfgrib, and by xarray with the Unidata netCDF and HDF5 libraries. Nothing is estimated by a language model, and you install nothing: no wgrib2, no Python environment, no conda.
It's made for:
- AI agents asked "what does the forecast say for Chicago tomorrow?" or "how much rain fell in this file?". A language model can't read a binary GRIB file; this hands it the numbers as JSON, and a map it can show.
- Developers who need weather model output in an app or a pipeline without running a GRIB toolchain: wind and solar forecasts for energy, frost and rain for farms, wind and temperature for drones and aviation.
- Analysts and researchers with climate NetCDF files (reanalyses, CMIP model runs, satellite products) who want values at sites, area averages or a quick look.
- Anyone who was sent a .grib2 or .nc file and wants to know what is in it.
How to use it
- Put links to the files into Links to GRIB or NetCDF files, or upload one. To read a whole forecast run, write
{fh:03d}where the forecast hour goes and set Forecast hours, such as0-48/6. - Optionally name the Variables (all when empty), Levels and a time window.
- Add Points, one per line:
London: 51.507, -0.128. Add an Area to cut maps and statistics to a region. - Click Start. With points, the dataset has one row per point, variable and time, and
values-wide.csvhas one row per point and time with a column per variable. Without points, the dataset has one item per file.
Write example as the link to read three built-in GFS forecast files (analysis, 6 and 12 hours, 1° grid) at London, New York, Tokyo and Sydney.
How-to examples
The result lines are from runs of these inputs.
How to get a forecast at a few places from GFS
{"files": ["https://noaa-gfs-bdp-pds.s3.amazonaws.com/gfs.20261118/00/atmos/gfs.t00z.pgrb2.0p25.f{fh:03d}"],"forecastHours": "6, 12","variables": ["TMP:2 m above ground", "PRMSL", "UGRD:10 m above ground", "VGRD:10 m above ground"],"points": ["Chicago: 41.88, -87.63", "Madrid: 40.42, -3.70"]}
Result: each file's index lists 743 fields; the four asked for are fetched by byte range, 3.7 MB of each 500 MB file. Chicago at 06 UTC: 8.86 °C, 1029.36 hPa, wind 3.56 m/s from 198°; at 12 UTC 7.45 °C. Madrid at 12 UTC: 15.53 °C, 1011.38 hPa, wind 4.15 m/s from 228°. Wind speed and direction (where the wind blows from) are worked out from the u and v components; nobody has to remember the formula.
How to compare two weather models at the same places
{"files": ["https://noaa-gfs-bdp-pds.s3.amazonaws.com/gfs.20261118/00/atmos/gfs.t00z.pgrb2.0p25.f{fh:03d}","https://data.ecmwf.int/forecasts/20261118/00z/ifs/0p25/oper/20261118000000-{fh}h-oper-fc.grib2"],"forecastHours": "6, 12","variables": ["TMP:2 m above ground", "PRMSL", "2t", "msl"],"points": ["Chicago: 41.88, -87.63", "Madrid: 40.42, -3.70"]}
Result: values-wide.csv puts the two models in rows next to each other. Chicago at 12 UTC: GFS 7.45 °C and 1028.62 hPa, ECMWF IFS 4.70 °C and 1029.76 hPa. The NOAA names (TMP, PRMSL) match the GFS files and the ECMWF names (2t, msl) the ECMWF files; a name that no file holds is reported once for the run.
How to read the 3 km HRRR forecast for the United States
{"files": ["https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20261119/conus/hrrr.t00z.wrfsfcf06.grib2"],"variables": ["TMP:2 m above ground", "UGRD:10 m above ground", "VGRD:10 m above ground", "MSLMA:mean sea level"],"points": ["Chicago: 41.878, -87.630", "Denver: 39.739, -104.990", "Miami: 25.762, -80.192"]}
Result: 4 of the file's 173 fields fetched by the index, on HRRR's 3 km Lambert grid (1,059 × 1,799 cells). At 06 UTC Chicago has 8.20 °C, 1024.46 hPa and wind 4.56 m/s from 202°; Denver 3.20 °C and 1014.49 hPa; Miami 22.39 °C and wind 4.99 m/s from 108°. HRRR's winds are relative to its grid, so the direction is turned to true north with the grid's own orientation, and the map is drawn on a Lambert projection like the model's.
How to read DWD ICON-EU forecasts (.grib2.bz2 files)
{"files": ["https://opendata.dwd.de/weather/nwp/icon-eu/grib/00/t_2m/icon-eu_europe_regular-lat-lon_single-level_2026111900_{fh:03d}_T_2M.grib2.bz2","https://opendata.dwd.de/weather/nwp/icon-eu/grib/00/pmsl/icon-eu_europe_regular-lat-lon_single-level_2026111900_{fh:03d}_PMSL.grib2.bz2"],"forecastHours": "0, 6","points": ["Berlin: 52.520, 13.405", "Paris: 48.857, 2.352", "Madrid: 40.417, -3.704"]}
Result: the four bzip2 files (about 1 MB each) are unpacked and read on ICON-EU's 0.0625° grid (657 × 1,377 cells). Berlin at 00 UTC: 8.05 °C and 988.59 hPa; at 06 UTC 5.95 °C and 990.01 hPa. Madrid at 06 UTC: 11.14 °C and 1012.34 hPa. DWD publishes one file per variable and keeps about a day of runs, so put the current run's date in the link.
How to see what is in a GRIB or NetCDF file
{ "files": ["https://downloads.psl.noaa.gov/Datasets/ncep.reanalysis/surface/slp.2025.nc"] }
Without points, the dataset has one item per file. Result: "NetCDF 4 / HDF5 · 1 variable · 2.5° global regular grid · valid 2025-01-01T00:00:00Z to 2025-12-31T18:00:00Z", with variables (name, long name, units, levels, 1,460 times), grid (shape, resolution, bounds), the file's global attributes, a map of the first time and statistics for up to 200 times. For GRIB files, messageList lists every message (up to 3,000) with its variable, level, step and valid time.
How to read values from a climate NetCDF file
{"files": ["https://downloads.psl.noaa.gov/Datasets/ncep.reanalysis/surface/slp.2025.nc","https://downloads.psl.noaa.gov/Datasets/ncep.reanalysis/surface/pres.sfc.2025.nc"],"points": ["Denver: 39.74, -104.99"],"timeFrom": "2025-06-01","timeTo": "2025-06-01T12:00"}
Result: three times from each file. At 00 UTC on 1 June 2025 the sea-level pressure at Denver was 1015.1 hPa and the surface pressure 789.5 hPa, the difference being the city's 1,600 m of height. One file per variable, as here, shares rows in values-wide.csv. The files store pressure in "Pascals"; the tool shows hPa (or inHg with "units": "imperial", or the file's own units with "original"). Climate model calendars (360-day, no-leap) are read too.
How to turn GRIB into NetCDF or CSV
{"files": ["https://noaa-gfs-bdp-pds.s3.amazonaws.com/gfs.20261118/00/atmos/gfs.t00z.pgrb2.0p25.f006"],"variables": ["TMP:2 m above ground", "PRMSL"],"area": "europe","netcdf": true,"gridCsv": true,"maps": "none"}
Result: subset-001-gfs-t00z-pgrb2-0p25-f006.nc, a compressed CF NetCDF file with t2m in °C and prmsl in hPa on the 153 × 281 cells between 34° and 72° N and 25° W and 45° E, and grid-values.csv with one row per cell and variable (lat, lon, value, units). Use "units": "original" to keep kelvin and pascals.
How to let an AI agent read weather files
Add the tool to an agent through Apify's MCP server at https://mcp.apify.com/?tools=jumblemog/grib-netcdf-reader. The agent can first call it with only files to learn what a file holds, then with variables and points. Each row carries value, units, validTime and the place's name, and mapUrl is a picture it can show.
FAQ
Which files can it read?
GRIB edition 1 and 2 (NOAA GFS, GEFS, HRRR, NAM, RAP; ECMWF IFS and AIFS open data; ERA5 and other Copernicus downloads; DWD ICON on its regular grids; Météo-France; JMA; WRF post-processed output) and NetCDF 3, NetCDF 4 and HDF5-based NetCDF (reanalyses, CMIP and CORDEX climate runs, satellite and ocean products, WRF output). Files may be compressed with gzip or bzip2 (DWD's open data comes as .grib2.bz2) or packed in a ZIP archive.
What is the index, and why does it make things cheaper?
NOAA writes a small .idx text file next to each GRIB file, and ECMWF a .index file, listing where each field starts. With variables set, the tool reads the index and downloads only the matching byte ranges. A full 0.25° GFS file is about 500 MB; one field is about 1 MB. Without an index the whole file is downloaded and the fields are picked after.
How do I write the variables?
By name as the file has it (TMP, APCP for NOAA; 2t, tp, msl for ECMWF; t2m, tas, pr in NetCDF), by part of a NOAA index line (TMP:2 m above ground, APCP:surface:0-6 hour acc), as key=value pairs (param=t levelist=850), or as a regular expression (re:^(UGRD|VGRD):10 m). Run without variables once to see what a file holds.
A file has the same variable twice. Which one do I get?
Both, with their difference in the name: GFS files hold rain over the last 6 hours and since the start of the run, which become tp (surface, accum, 6-12 h) and tp (surface, accum, 0-12 h); cloud cover as an instant value and an average become tcc (entire atmosphere) and tcc (entire atmosphere, avg). cfgrib on its own keeps only one of such messages.
What does "outside" mean on a row?
The point lies outside the file's grid (a regional model such as HRRR covers only the United States), so the value is empty. distanceKm says how far the nearest grid cell is; on a 0.25° grid it is at most about 20 km.
Are winds on projected grids handled? Yes. HRRR, NAM and WRF store u and v along their grid's axes, not east and north. The tool turns them with the grid's orientation at each cell before giving wind direction; in the eastern US the difference is about 15 degrees.
Which time zone are times in?
UTC, as in the files. validTime is when a value is for, referenceTime when the forecast started and stepHours the hours between.
Can it read ERA5 straight from the Copernicus Climate Data Store? The Data Store needs your own account, so download the file there and upload it here, or give a link to a copy in your own bucket. Public files on AWS, Google Cloud and Azure open-data buckets, NOAA and ECMWF servers, THREDDS file servers, Google Drive and Dropbox links work directly.
Is my data kept? Files are read in a temporary folder that is deleted when the run ends. The values, maps and copies stay in your own Apify storage.
Input
| Field | What it does |
|---|---|
files | Links to GRIB or NetCDF files; example for three built-in GFS files. {fh} or {fh:03d} in a link is filled from forecastHours. Up to 400 per run. |
upload | A file from your computer, read with any links. |
forecastHours | Hours for {fh}: 0-48/6, 0-120/3, 126-240/6 or 0, 12, 24. |
variables | Fields to read (all when empty). Names, index line parts, key=value pairs or re: expressions. |
levels | Levels to keep, such as 850 or 2 m above ground. |
timeFrom, timeTo | Keep valid times in this window (UTC). |
points | Places, one per line: London: 51.507, -0.128, 51.5N 0.13W or lat 51.5, lon -0.13. Up to 1,000. |
interpolation | nearest grid cell (default) or bilinear between the four around the point. |
area | A name (europe, conus, japan, uk, pacific ...), lat 35 to 72, lon -25 to 45, or west, south, east, north. |
units | metric (°C, hPa, mm, m/s), imperial (°F, inHg, in, mph, ft) or original. |
maps | first (each variable of the first file), all or none; maxMaps (20) and imageWidth (1600) limit them. |
stats | Minimum, maximum and mean per variable and time (on by default). |
netcdf | A NetCDF copy of what was picked, per file. |
gridCsv | Every grid cell as a CSV row, up to maxGridRows. |
windFromComponents | Add wind speed and direction from u and v (on by default). |
maxDatasetRows | Rows in the dataset (100,000); values.csv holds up to a million. |
timeLimitSeconds | The run stops downloading and reading after this long (300 by default, 3,300 at most). |
Output
- Dataset: with points, one row per point, variable and time:
file,point,lat,lon,variable,name,level,member,validTime,referenceTime,stepHours,value,units,gridLat,gridLon,distanceKm,outside,method. Without points, one item per file:status,summary,format,variables,grid,stats,mapUrl,mapUrls,netcdfUrl,unmatchedVariables,messageList,attributes,notes,error. - values.csv and values-wide.csv: the values at points, long (one value per row) and wide (one column per variable).
- stats.csv: the statistics of every variable and time.
- Maps: PNG files named
map-001-t2mand so on, linked frommapUrlsand the OUTPUT record. - NetCDF copies (
subset-001-...) and grid-values.csv when asked for. - OUTPUT: the whole run as one JSON object, including each GRIB file's message list.
How it works
- Links are checked (only public web addresses), templates are filled and the files are downloaded four at a time. With variables, GRIB files with an index are fetched by byte range.
- Each file is opened in a separate process as an unprivileged user in a throwaway folder: GRIB messages are listed with ecCodes and grouped by cfgrib, NetCDF files are opened by xarray, and times in any calendar are decoded.
- The grid is recognised: regular latitude-longitude, curvilinear (projected models, including NetCDF files that only give x, y and a grid mapping) or unstructured cells. Values at points come from the nearest cell or the four around it; global grids wrap around the date line.
- Units are converted, wind is derived, statistics are weighted by cell area, and maps are drawn with Cartopy and Natural Earth coastlines.
Pricing
You pay per file read, at the price shown on this page. One file event covers a file of up to 10 MB downloaded and 30 seconds of reading at the default 2 GB memory; a larger download costs one more event for each further 10 MB, and a longer read one more for each further 30 seconds (15 seconds at 4 GB, since the platform's cost follows memory). Fetching only your variables by index usually keeps a file at one event: four fields of a 0.25° GFS file are 3.6 MB, where the whole file is about 500 MB and 50 events. Each file's events says what it counted for. Files that can't be downloaded or read are never charged. If you set a maximum cost per run, the Actor stops before files that wouldn't fit, and downloads stop at what it still covers.
Speed
The built-in example (three GFS files, four cities, three maps) takes about 5 seconds of reading. Two forecast hours from both GFS and ECMWF, fetched by index, with values at two places and six maps of Europe, took 13 seconds including the downloads. Maps take about a second each.
Tips and limits
- Give
variablesfor big GRIB files: it is what makes downloads small. - Use
areawithgridCsv: a global 0.25° grid is a million rows per variable and time. - Values at points follow the model's grid: a 0.25° cell is about 25 km across, so a mountain town may sit in a cell whose height is the valley's or the peak's.
- Files up to 4 GB; the run's disk is twice its memory, so give big files more memory. Files that don't fit next to others are read in a batch of their own.
- Zarr stores and OPeNDAP endpoints aren't read; give links to the files themselves.
For AI agents and developers
- Input:
filesalone lists what a file holds. Addvariablesandpointsfor values,areafor a region. - Output: rows with
value,units,validTimeandpoint;outside: truewhen a point isn't on the grid;mapUrlfor a picture. - Errors: each failed file has
status: "failed"and anerrorthat says what to change (a 404, a web page instead of a file, no variable matching, a file too big for the run). Failed files cost nothing. - Cost: one event per file fetched by index; a whole file costs one per started 10 MB (
eventson each file).
Get the values from one HTTP call:
curl -X POST "https://api.apify.com/v2/acts/jumblemog~grib-netcdf-reader/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"files": ["example"], "points": ["London: 51.507, -0.128"], "variables": ["t2m", "prmsl"]}'
In Python, with the apify-client package:
from apify_client import ApifyClientclient = ApifyClient("YOUR_TOKEN")run = client.actor("jumblemog/grib-netcdf-reader").call(run_input={"files": ["https://noaa-gfs-bdp-pds.s3.amazonaws.com/gfs.20261118/00/atmos/gfs.t00z.pgrb2.0p25.f{fh:03d}"],"forecastHours": "0-48/6","variables": ["TMP:2 m above ground", "APCP:surface"],"points": ["Berlin: 52.52, 13.405"],})for row in client.dataset(run["defaultDatasetId"]).iterate_items():print(row["validTime"], row["variable"], row["value"], row["units"])
Credits
- GRIB decoding: ecCodes (Apache-2.0) and cfgrib (Apache-2.0), by ECMWF.
- NetCDF and HDF5: xarray (Apache-2.0), netCDF4-python (MIT) with Unidata's netCDF-C (BSD-3-Clause) and the HDF Group's HDF5 (BSD-style), cftime (MIT), SciPy (BSD-3-Clause).
- Maps: Cartopy (BSD-3-Clause), Matplotlib (PSF-based licence), PROJ via pyproj (MIT), Shapely (BSD-3-Clause) with GEOS (LGPL-2.1), and Natural Earth coastlines and borders (public domain).
- The built-in example is NOAA NCEP GFS data (public domain), from the run of 18 November 2026, 00 UTC.