Convert a regional series to other borders
regions_harmoniseConvert values by municipality or county to the borders of another date, so a series spanning the 2020 and 2024 reforms lines up. Mergers are summed for additive values and renumberings are followed. Anything that cannot be converted exactly (a split, a missing piece, a rate that would need weights) is listed in unconverted with the reason, never estimated. Rows usually come from statistics_get_data: pass {region, period, value}.
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": {
"level": "<level>",
"target": "<target>",
"measure": "<measure>",
"rows": "<rows>"
},
"name": "regions_harmonise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| level | Yes | 'municipality' (kommune) or 'county' (fylke). | |
| target | Yes | Borders to convert to: '2020' (2020-2023), '2024' (2024 onwards), 'latest' (today), or a date like '2018-01-01'. | |
| measure | Yes | 'additive' if values can be summed across regions (counts, totals, areas). 'non_additive' for rates, shares, averages and indices: these are only renumbered, never summed. |