energy_data_retrieval.wind_catalogue.sweden#
Offline Vindbrukskollen GeoJSON adapter for explicit project/turbine identities.
Inputs are complete, bounded MapServer queries in EPSG:4326. Registry erection status is not evidence of operation. Area counts and turbine maximum MW remain inventory observations, never reported installed or export project capacity.
- energy_data_retrieval.wind_catalogue.sweden.features(document, *, expected_count=None)[source]#
Reject failed/truncated responses instead of accepting incomplete partitions.
- Parameters:
document (dict[str, Any])
expected_count (int | None)
- Return type:
list[dict[str, Any]]
- energy_data_retrieval.wind_catalogue.sweden.quarantine_repeated_turbines(areas, turbines)[source]#
Hold every parent touched by a repeated turbine ID, retaining source rows.
Even identical repeated rows need source-layer reconciliation. Removing just one copy could silently misstate a parent’s inventory or lifecycle mix. Missing IDs remain errors for
stage_partition; inputs are not mutated.- Parameters:
areas (list[dict[str, Any]])
turbines (list[dict[str, Any]])
- Return type:
tuple[list[dict[str, Any]], list[dict[str, Any]], list[dict[str, Any]]]
- energy_data_retrieval.wind_catalogue.sweden.stage_partition(areas, turbines, existing, *, now, source_prefix='vbk-20261103')[source]#
Stage all defensible named areas and their explicit VERKID children.
Hold repeated municipality/name scopes, unnamed areas, repeated IDs, or an existing Swedish name/spatial candidate (10 km of any inventory turbine). Never merge on name alone. Existing IDs require a separate enrichment review. Preserve raw statuses, organization roles and model labels without inferring current operation, ownership, commercial operation dates or OEM compatibility.
- Parameters:
areas (list[dict[str, Any]])
turbines (list[dict[str, Any]])
existing (list[dict[str, Any]])
now (str)
source_prefix (str)
- Return type:
tuple[list[dict[str, Any]], list[dict[str, Any]]]