Weather and climate files
Weather and ocean models publish their output as GRIB (.grib2, .grb2, .grb) or NetCDF (.nc). Sarkoa takes both as raster uploads: GFS, HRRR, NAM, ECMWF open data, ERA5, ocean reanalyses and your own model runs.
One of these files usually holds many things at once. A GFS file can carry temperature, humidity and wind at dozens of heights, for several forecast hours. A map layer shows one of them, so you choose what to map when you upload.
Uploading from the web app
Drop the file into Upload like any other. Once it has uploaded, Sarkoa reads what the file holds:
- One field, or just a wind pair. A file with a single field (or a NetCDF file with a single variable) needs no choice and goes straight to processing. So does a file that holds only the east and north wind at one height and one time, such as
UGRDandVGRDat 10 m: that becomes a wind layer, ready for animated flow. - Several fields. A dialog lists every field with its name, height or pressure level, description and the time it is valid for. Tick the one you want, or the east and north components of a wind or current. You can map up to four fields from one file, all at the same time.
- NetCDF. Choose the variable to map. For wind or currents, also choose the north component, and the two are stacked into one field.
One upload maps one time. A forecast with several hours becomes a time series: upload one file per hour into a series, and the time slider steps through them. Sarkoa dates each layer with the time the field is valid for.
Publish a historical GRIB2 forecast as a web map
Open the temperature map or download the single-field GRIB2. NOAA initialized this Global Forecast System run at 00:00 UTC on January 23, 2025. Its six-hour forecast is valid at 06:00 UTC that day. The field is air temperature two metres above ground on a one-degree grid.
Upload the extract in Files. It contains only TMP at 2 m above ground, so the field is selected automatically. With a multi-field source, choose TMP, check the height and select the valid hour. Add the processed layer in Custom maps, choose a temperature ramp and label the legend in °C. Put the valid time in the map title or layer name.
Run gdallocationinfo -wgs84 -valonly gfs-temperature.grib2 -70 42 with GDAL's default temperature-unit normalization. The source returns about −4.3 °C. At the same coordinate the hosted, reprojected grid returns about −3.7 °C. These sample different grid cells. Both values are historical model forecasts. A weather station reading would be a separate observation. NOAA GFS archive
Wind that follows the model's grid
Global models such as GFS and ECMWF give wind as true east and north. Regional models such as HRRR and NAM draw on a Lambert grid and give wind along that grid instead, which can be turned 20° or more from true north at the edges of the map. A GRIB file records which kind it has, and Sarkoa reads that flag: HRRR wind is turned to true north at every pixel before it is drawn, with nothing to set. (A NetCDF file does not carry the flag, so there you say relative_to: "grid" or "earth" yourself, as animated flow explains.)
From the API, CLI and AI agents
Upload completion takes the choice with the file:
gribBands: a list of fields, each{ "element": "UGRD", "level": "10-HTGL" }, plus"validTime": "2026-10-27T15:00:00Z"when the file holds that field at more than one time. The element is the GRIB short name (TMP,UGRD,PRMSL) and the level is written the way GRIB tools write it:10-HTGLis 10 m above ground,85000-ISBLthe 850 hPa pressure level,0-SFCthe surface.netcdfVariablefor one NetCDF variable, ornetcdfVariables: ["u10", "v10"]for a wind or current pair.
Leave them out and a file with one field, one variable or one wind pair is picked for you. Any other file is refused with status 422 and the list of what it holds (code: "grib_bands_required" with bands, or "netcdf_variable_required" with variables), so you can call completion again for the same upload with your choice. Nothing is uploaded twice.
With the CLI:
sarkoa upload gfs-wind.grib2 --grib-band UGRD:10-HTGL --grib-band VGRD:10-HTGL
sarkoa upload hrrr.grib2 --grib-band TMP:2-HTGL
sarkoa upload era5.nc --netcdf-variables u10,v10
The MCP server takes the same choice as grib_bands on upload_complete.
What GRIB files work
Editions 1 and 2, with every packing the major centres use, including JPEG 2000 and the CCSDS compression ECMWF publishes in. Temperatures arrive in degrees Celsius. Files cut down to the fields you need (with the NOAA grib filter, or byte ranges from a model's index file) upload faster and are just as valid.
If two fields in one file share a name, level and time (two accumulation windows of precipitation, or several ensemble members), Sarkoa cannot tell them apart and asks you to cut the file to the one you want.