spatial_link
Aggregate raster climate data to NUTS3 or country regions. Compute mean values for datasets like air quality, temperature, precipitation, CO2, population, and water risk within a bounding box.
Instructions
Aggregate raster climate data to administrative regions (NUTS3 or country).
Performs a spatial join — takes one or more raster datasets and computes the mean value for each NUTS3 region or country that overlaps the bounding box. Returns a table of regions with mean values per dataset.
Useful for regional comparison, portfolio screening, or joining climate data with official statistics by administrative area.
Args: lat_min: Southern boundary latitude lat_max: Northern boundary latitude lon_min: Western boundary longitude lon_max: Eastern boundary longitude time_start: Start date, e.g. "2022-01-01" time_end: End date, e.g. "2022-12-31" datasets: List of dataset source names to aggregate. Options: "cams_no2", "cams_pm2p5", "cams_pm10", "cams_o3", "era5_t2m", "era5_tp", "era5_blh", "era5_u10", "era5_v10", "viirs_radiance", "odiac_co2", "ghsl_pop", "ghsl_built", "aqueduct_bws", "aqueduct_bwd", "aqueduct_rfr", "aqueduct_drr" resolution: "nuts3" (EU administrative regions) or "country" (global)
Returns: JSON with a list of regions, each containing the mean value of each requested dataset. Also includes region name, country, and cell count.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lat_min": "<lat_min>",
"lat_max": "<lat_max>",
"lon_min": "<lon_min>",
"lon_max": "<lon_max>",
"time_start": "<time_start>",
"time_end": "<time_end>",
"datasets": "<datasets>"
},
"name": "spatial_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat_min | Yes | ||
| lat_max | Yes | ||
| lon_min | Yes | ||
| lon_max | Yes | ||
| time_start | Yes | ||
| time_end | Yes | ||
| datasets | Yes | ||
| resolution | No | nuts3 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |