Skip to content

PyPVRoof

PyPVRoof extracts the characteristics of rooftop PV systems from geocoded polygons: tilt, azimuth and installed capacity (plus surface and location).

pypvroof pipeline: PV polygons, a service fetches the surface model under each polygon, Theil-Sen fits the roof plane(s), output characteristics with a status; without a surface model, heuristics from the polygon

It also extracts roof planes: draw one polygon over a whole roof, and split=True returns one row per roof plane, with its own outline, tilt, azimuth and surface.

A polygon drawn over the whole roof of the Halle de Crémieu (France) is multimodal; with split=True it is split into a south-facing plane (16°, 185°, 857 m²) and a north-facing plane (16°, 5°, 489 m²)

out = characterize_roofs("roofs.geojson", "fr-lidar", split=True)
out[["parent_id", "part", "tilt", "azimuth", "surface"]]
  • Inputs — polygons (GeoJSON, GeoPackage, Parquet, GeoDataFrame, shapely...), in any CRS, and optionally a digital surface model (DSM).
  • Surface models — the open DSMs of ten European countries and regions are queried on the fly (services); local GeoTIFFs work too.
  • Without a DSM — heuristics give an estimate from the polygon alone (service=None, methods).
  • Installed capacity — on request (capacity=), from the panel surface.
  • No silent fallback — every row carries a status (ok, flat, multimodal, no_coverage...): you decide what to do when a value cannot be measured.

In three lines

from pypvroof import characterize_roofs

out = characterize_roofs("detections.geojson", "fr-lidar", workers=8)
out[["tilt", "azimuth", "surface", "status"]]

Next: Installation · Quickstart · Try it online

Citation

@article{tremenbert2023pypvroof,
  title={PyPVRoof: a Python package for extracting the characteristics of rooftop PV installations using remote sensing data},
  author={Tr{\'e}menbert, Yann and Kasmi, Gabriel and Dubus, Laurent and Saint-Drenan, Yves-Marie and Blanc, Philippe},
  journal={arXiv preprint arXiv:2309.07143},
  year={2023}
}

PyPVRoof expands the characteristics extraction module of Kasmi et al. (2022). Released under the MIT licence; the surface models belong to their producers and are used under their licences (see services).