energy_data_retrieval.pv_catalogue.repd#
Offline DESNZ REPD staging, with explicit reviewed identities before acceptance.
REPD rows describe planning applications, not necessarily distinct physical plants. The screening function only flags candidates: it never merges names or phases.
- energy_data_retrieval.pv_catalogue.repd.read_repd_csv(content, *, sha256)[source]#
Check pinned bytes and schema; decode the publisher’s Windows-1252 CSV.
- Parameters:
content (bytes)
sha256 (str)
- Return type:
list[dict[str, str]]
- energy_data_retrieval.pv_catalogue.repd.screen_repd_identities(rows, selected_ids)[source]#
Flag name/application/link/nearby risks against the full solar extract.
Grid distances are a conservative screening heuristic in native coordinates, not proof of a common project or a surveyed location. Missing coordinates, explicit phases/hybrids and sub-MW sites need separate review. Never fuzzy-merge.
- Parameters:
rows (list[dict[str, str]])
selected_ids (set[str])
- Return type:
dict[str, list[dict[str, str]]]
- energy_data_retrieval.pv_catalogue.repd.reviewed_repd_records(rows, *, reviewed_ids, source_id, retrieved_at, snapshot_date, reviewed_status='Operational', held_fields_by_ref_id=None)[source]#
Map explicitly reviewed ground-mounted entries; no automatic ingest.
A separate phase crosswalk is required before accepting any flagged identity. Applicant/operator is deliberately not promoted to owner/operator. Addresses, contact details and free-form applicant names are omitted for privacy. MWelec is retained as AC/DC-unspecified; operational date is a registry milestone. The default scope remains operational. Construction requires an explicit scope argument and never becomes operational or a commissioning date.
- Parameters:
rows (list[dict[str, str]])
reviewed_ids (set[str])
source_id (str)
retrieved_at (str)
snapshot_date (str)
reviewed_status (str)
held_fields_by_ref_id (dict[str, set[str]] | None)
- Return type:
list[dict[str, Any]]