Bucharest Solar Study Back to evidence and source records

README.md Original Markdown

Rooftop solar irradiation in Bucharest

This project estimates typical incident shortwave energy per square metre of roof surface in the Municipality of Bucharest. It applies the same 2005–2023 weather to a fixed November 2026 building inventory. A horizontal estimate uses projected footprint area. A reconstructed pitched surface uses its sloping area. All local data products are for screening at the resolution and completeness of the mapped geometry.

Citywide research, iteration 2

The second release compares building shadows and tree canopy across all 174,295 buildings in six sectors, using twelve reserved neighbourhood windows and a finer numerical run on all 206 tiles. 86,489 buildings qualify for a shaded annual estimate, covering 31.24 km² or 72.3% of mapped roof area. That adds 4,648 buildings and 0.857 km² net. The accompanying monthly series uses one consistent model per roof. Iteration 2 results, recommendations and reproduction commands · Original research plan

Download the study output archive for both versions of the GeoParquet data, the inventory and audit layers, the offline atlas, and supporting tables. The archive preserves the outputs/ paths used in the runbook and includes the source attribution.

Iteration 2 product Use
Download the interactive Bucharest Solar Atlas Switch between irradiation, shaded-estimate coverage and consistently sunny roofs for any season or the full year. Select a 400 m cell to inspect individual buildings. The HTML file works offline in a current browser.
Building estimates and scenario ranges Use screened_shaded_annual_kwh_m2 for annual screening, estimate_model for the coherent monthly series, and stable_sunniest_fifth_annual for a scenario-tested sector shortlist.
Sector transitions · Annual map Compare newly supported, lost and unresolved roofs by count and projected area.
Copernicus height matches · Source notes Join by building_id for cell counts, median heights and within-roof variation.
Release checks · Canopy rank comparisons Check inputs, sector denominators, period sums and rank eligibility.

First release downloads

Every one of the 174,295 mapped buildings has annual, seasonal and monthly values. The citywide unshaded horizontal reference is 1,431.0 kWh/m² per year. Building shadows were calculated on all 206 tiles, including exterior obstructions. The release selects shaded blocks for 81,840 buildings and a whole-roof facet estimate for one building. Together they cover 70.3% of projected area. The other 92,454 buildings carry the common unshaded baseline, an explicit fallback reason and diagnostic shadow estimates. Treating those fallback values as evidence of sunny roofs would distort a ranking.

Winter shading had the greatest relative effect in Lipscani. The median winter loss was 11.3%, compared with 3.1% in Drumul Taberei and 8.8% in Primăverii. Assumed heights, canopy and roof geometry could each alter rankings materially. On the separate Tei holdout, a finer angular and distance calculation changed the annual estimate by less than 4.15 kWh/m² for 90% of the roofs. Full research report · Pilot and holdout evidence

First release product Contents
Citywide building estimates One GeoParquet row per mapped building, including geometry, sector, selected model, height provenance, irradiation per m², incident kWh, competing estimates and quality flags.
Horizontal baseline All 174,295 footprints with their common horizontal annual, seasonal and monthly reference.
Mapped roof facets 103 faces on 20 buildings, including 99 faces on partial roofs. Each face has matched flat and unshaded comparators.
Canopy proximity One row per building with 2019 canopy proximity and coverage flags. Join by building_id.
Six-sector audit Counts, areas, source agreement, usable heights, roof attributes and boundary-crossing records. Sector and class breakdown
Source manifest Pinned public inputs, release-specific reuse terms, attribution, access routes and checksums. Source notes · Include the redistribution notice when sharing data.
Independent checks Export hashes and counts, geometry and ID reconciliation, area and energy checks. Fresh-environment pilot reproduction

In the building layer, irradiation_annual_kwh_m2 and its djf, mam, jja and son counterparts hold the selected estimate. Inspect estimate_model, fallback_reason and height_source before comparing buildings. block_annual_kwh_m2 retains the central height scenario wherever computed. The data use the metric Stereo 70 coordinate system (EPSG:3844). Methods and field definitions

Milestone evidence

Milestone Result
M1 · Inputs and design Public releases acquired and checked. Source manifest · Comparison design and thresholds
M2 · Audit and baseline Six sectors, 174,295 unique receivers with baseline values, annual and seasonal closure verified. Coverage audit · Baseline checks
M3 · Controlled pilots Three fixed cohorts, 2,540 buildings, matched scenarios, analytical tests and independent rays. Paired experiments · Reference ray results
M4 · Holdout and city Tei passed the declared comparison tolerances, all 206 city tiles completed and the facet subset was exported. Holdout tests · City completion
M5 · Reproduction and release Independent inventory and three-pilot reproductions matched. Published GeoParquet checks passed, with a clean populated-tile replay and two identical resumed city exports. Pilot hashes · City replay evidence · Release checks

Reproduction environment

Run commands from the repository root. The reference run uses CPython 3.12 on macOS arm64. The project requires a C compiler only if a wheel for a scientific dependency is unavailable on the target platform. The original production inputs are available by anonymous public download. Iteration 2 also checks Copernicus Urban Atlas heights, available through a free Copernicus Data Space sign-in.

uv venv --python 3.12 .venv
uv pip install --python .venv/bin/python -r requirements.lock
mkdir -p data/raw/weather data/processed logs
curl --fail --remove-on-error --silent --show-error --location \
  --max-time 180 --retry 2 --retry-max-time 300 --config config/weather-downloads.curl
.venv/bin/python scripts/weather.py

The weather download specification contains the exact requests. Before adopting a redownloaded series, compare its checksum with the weather manifest. The parser checks the returned product, units, horizon setting and all 166,536 expected hours. The repository includes summary tables, maps and verification receipts. Raw downloads and intermediate spatial caches are generated locally. The building-level exports are available in the study output archive and can be rebuilt with the pinned inputs and stage commands. Weather analysis

The ancillary source notes document tile selection, recovered acquisition history, imagery dates, validity masks and comparison evidence. Keep the redistribution notice with shared local data products.

Inventory and baseline

sh scripts/fetch_building_inputs.sh
.venv/bin/python scripts/extract_osm.py
.venv/bin/python scripts/fetch_ancillary_inputs.py
.venv/bin/python scripts/prepare_globfp.py
.venv/bin/python scripts/prepare_canopy.py

Prepare the 2020 GloBFP extract before building the final inventory. The matched height comparison automatically determines whether floor counts or model heights take precedence for apartments and other buildings.

.venv/bin/python scripts/build_inventory.py --globfp data/processed/inventory/globfp.parquet
.venv/bin/python scripts/plot_inventory.py
.venv/bin/python scripts/weather_crosscheck.py
.venv/bin/python scripts/solar.py self-test
.venv/bin/python scripts/solar.py baseline

The auditable inventory includes disposition tables for rejected or ambiguous features, original source IDs, linked parts, projected geometries, duplicate cases, height comparisons and separate count and area summaries. Inventory methods and fallbacks · Input identifiers, attribution and checksums

Pilot, holdout and resumable city run

.venv/bin/python scripts/prepare_terrain.py \
  --dem data/raw/copernicus-dem/Copernicus_DSM_COG_10_N44_00_E025_00_DEM.tif \
  --dem data/raw/copernicus-dem/Copernicus_DSM_COG_10_N44_00_E026_00_DEM.tif
.venv/bin/python scripts/solar.py pilot --canopy data/processed/canopy/canopy_height_3m.tif
.venv/bin/python scripts/solar.py holdout
.venv/bin/python scripts/solar.py terrain --terrain data/processed/terrain/terrain_sensitivity_30m.tif
.venv/bin/python scripts/solar.py city --canopy data/processed/canopy/canopy_height_3m.tif --max-tiles 6
.venv/bin/python scripts/solar.py city --canopy data/processed/canopy/canopy_height_3m.tif
.venv/bin/python scripts/solar.py boundary
.venv/bin/python scripts/solar_ray_qa.py
.venv/bin/python scripts/assess_solar_experiments.py all
.venv/bin/python scripts/canopy_proximity.py
.venv/bin/python scripts/compare_osm_trees_canopy.py
.venv/bin/python scripts/verify_solar_outputs.py
MPLBACKEND=Agg .venv/bin/python scripts/plot_solar_results.py all
cp data-manifest/ATTRIBUTION.md outputs/ATTRIBUTION.md

The limited city command demonstrates the checkpoint. Starting directly with the unrestricted command also works. Rerun it with the same inputs and settings after interruption. Completed numerical tiles have a GeoParquet and a metadata receipt in the corresponding outputs/tiles/ subdirectory. The final publication step screens material roof overlap and keeps the candidate values in the released file. Use --output on the pilot, holdout and city stages to keep another experiment's selections and products separate. Experiment design · Validation commands and field checks