Bucharest Solar Study Back to evidence and source records

docs/iteration2-results.md Original Markdown

Bucharest rooftop irradiation across all six sectors

Download the interactive Bucharest Solar Atlas. Open the downloaded HTML in a browser, choose a period and a layer, then select a 400 m cell to inspect its buildings. The overview gives the median irradiation among supported roofs, the share of mapped roofs with support, or the share of ranked roofs on the stable shortlist. At building scale each footprint shows its period-specific result, screening status and building ID.

To rebuild the standalone offline map from the local iteration 2 building release, sector and rank tables, inventory boundaries and vegetation, and pinned Romania OSM extract, run .venv/bin/python scripts/build_solar_atlas.py from the repository root. The HTML embeds its data, Leaflet 1.9.4 and source credits.

What changed

The first study already covered the municipality. This iteration tests where its shadow calculation transfers, how trees change a shortlist, and which roofs can support an estimate for a particular season or the year. Both releases use the same 174,295 building IDs, 43.19 km² of projected roof area, external obstruction inventory and 2005–2023 hourly PVGIS weather. Differences between releases therefore describe changes in the model and its screening rules. The quantity is incident solar irradiation in kWh/m². Converting it to electrical output would require panel layout, efficiency and system losses. Research plan · First release

86,489 buildings have a supported shaded annual estimate, covering 31.24 km² or 72.3% of mapped roof area. The first release supported 81,841 buildings and 70.3% of area. Of 4,856 formerly excluded roofs that already passed the annual height test, 4,840 also passed the new numerical checks and gained an annual estimate. Under those same checks 192 previously supported roofs lost annual eligibility. The net gain is 4,648 buildings and 0.857 km². This gain comes from testing annual eligibility separately. Annual and seasonal transitions

Sector Annual shaded roofs Gained Lost Supported area (km²) Unresolved roofs Unresolved area (km²)
1 21,390 1,200 35 7.09 21,751 3.07
2 17,809 950 40 4.98 17,071 2.48
3 11,472 694 49 5.62 11,748 1.69
4 9,398 519 31 4.54 9,016 1.29
5 14,814 928 19 3.45 22,318 2.42
6 11,606 549 18 5.55 5,902 1.00
City 86,489 4,840 192 31.24 87,806 11.95

Of the 87,806 unresolved annual roofs, 86,247 failed the building-height spread test, 1,485 exceeded the individual production-versus-finer difference limit, and 74 had inadequate receiver geometry. These are the first failing reasons in the release screen. They explain why improving heights has more potential to expand coverage than refining the angular calculation alone. Failure reasons by sector and period

Seasonal shaded estimates qualify on 95,924 roofs in winter, 125,548 in spring, 133,388 in summer and 110,716 in autumn. Requiring the same shaded model to qualify throughout the year leaves 81,627 roofs, 214 fewer than the previous release. The two counts answer different questions for a planner choosing between an annual shortlist and a monthly exposure profile. Annual gains, losses and unresolved roofs by count and area · Class and sector breakdown

5,700 roofs covering 3.78 km² stay in their sector's sunniest fifth under all 18 scenarios. There are 64,636 eligible flat roofs in the annual comparison. On the same buildings, the central building-only model alone placed 12,924 in the top fifth. All 5,700 consistently sunny roofs already had shaded estimates in the first release. Extending annual coverage added usable estimates without adding new entrants to this conservative shortlist. The corresponding stable counts are 7,004 in winter and 8,499 in summer. Matched rankings by sector and season

Does the calculation transfer?

We froze two 600 m test windows per sector, spanning different combinations of roof size, building density, imputed heights, canopy and municipal-edge exposure. Their shadow buffers clear earlier study and development areas. The 3,259 roofs cover 0.686 km² across 12 windows and 10 distinct groups of overlapping buffers. Only 51,193 roofs, 29.4% of the inventory and 32.5% of its area, could enter that draw. To cover the remaining neighbourhoods, we also ran the production and finer calculations across all 206 tiles. The census compares two numerical models on identical mapped geometry. Sampling frame and draw · Coverage by sector

At 1.5 m raster resolution and 4 m roof sampling, we compared 36 azimuths out to 500 m against 120 out to 850 m. On the reserved roofs, the building-only median and 90th-percentile absolute annual differences were 0.24 and 2.62 kWh/m². The same calculation retained 96.5% of the sunniest fifth. All 30 sector-by-period comparisons passed the predeclared energy and rank thresholds. The pooled 90th percentile ranged from 1.87 to 3.39 kWh/m² when omitting one spatial group. Auxiliary and civic buildings had just seven and twelve pairs respectively, so these samples cannot establish class-specific performance. Four further targeted windows added 56 higher-density roofs and three courtyard roofs. The three courtyards give too few independent cases for a neighbourhood transfer claim. Of 210 footprints with interior rings in the full inventory, 209 passed the central geometry comparison. Their 90th-percentile absolute annual difference was 0.90 kWh/m², and 167 of the 210 qualified for an annual shaded estimate. Sector comparisons · Class and spatial sensitivity · Targeted cases

Across the city, 174,220 horizontal roofs met both numerical scenes' central geometry checks after excluding the separately assessed whole-roof facet. Their median and 90th-percentile absolute annual differences were 0.60 and 3.83 kWh/m². Across individual sectors the annual 90th percentile ranged from 2.82 in Sector 6 to 4.31 in Sector 3. A building also has to pass its own production-versus-finer limit and height-spread test before its shaded estimate is selected. The thresholds are 12 kWh/m² and 10% annually, and 8 kWh/m² and 20% for each season. Census comparisons · Thresholds

Trees and roof shape

Across 171,141 roofs with comparable central geometry and complete canopy inputs within 500 m, seasonal canopy reduced annual irradiation by a median of 0.81 kWh/m² and a 90th percentile of 82.28 kWh/m². Of the 34,229 roofs in the citywide building-only top fifth, 28,909 (84.5%) stayed there after adding seasonal canopy. Retention was 88.0% in winter and 82.9% in summer. These are paired model comparisons over 42.56 km² before screening for uncertain building heights. They measure the effect of switching on trees at fixed central heights. The shortlist later in this report requires a roof to qualify under all 18 height and canopy combinations. City and sector canopy effects · Extent and rank rules

On the same 3,259 reserved roofs, adding seasonal tree shade reduced annual irradiation by 25.3 kWh/m² on average. The median loss was 0.96, and one roof in ten lost at least 52.6 kWh/m². Only 56.9% of roofs in the building-only sunniest fifth stayed there. Retention was 67.9% in winter and 52.9% in summer. With taller sunward canopy within 20 m, the 90th-percentile annual difference was 189.3 kWh/m². It was 0.15 kWh/m² for controls without taller canopy within 50 m. These are paired results on the reserved roofs. Canopy effects and cohorts

All 60 seasonal- and opaque-canopy sector-by-period production comparisons passed on the matched test roofs. Of the 3,259 test roofs, 3,230 had complete canopy support for the finer calculation. The tree model uses imagery from February and May 2019 and an assumed monthly blend between the building-only and fully opaque cases. The citywide rank test combines three canopy cases with six height configurations. Results describe the specified range of tree and height assumptions. Changes to trees after 2019 and unmeasured crown transmission remain sources of error. Canopy transfer · Assumed leaf fractions and source dates

We tested two ridge directions and alternative pitches on 79 dimensionally compatible roofs across all 12 test windows. They cover 6,697 m². Across these roofs the median within-roof annual range was 153.1 kWh/m² of sloping surface, and the 90th percentile was 274.9. These assumed shapes give sensitivity ranges. One building has complete mapped facet geometry. Its four faces cover 38.20 m² of sloping surface over 24.26 m² of footprint. Its production and finer annual estimates are 1,123.70 and 1,122.67 kWh/m² of sloping surface. It passes the height tests and stays separate from horizontal-roof rankings. Pitch and ridge results · Whole-roof evidence

Heights and neighbouring buildings

The downloaded Copernicus Urban Atlas Building Block Height raster has a 10 m grid in EPSG:3035. Its 2021 reference year spans source acquisitions from April 2020 to March 2023. We matched cells directly to November 2026 polygons, including courtyard holes, and used the median of valid heights in each roof. A missing pixel, an unknown construction date and a pixel crossing multiple buildings have different implications. The building-level match table retains geometric match counts, valid counts and the height range for multi-cell roofs. Official product · Per-building cell matches

Pixel rule All roofs with usable pixels Geometric candidates among 92,448 height-sensitive roofs Height-sensitive roofs with usable pixels Their area (km²) Held-out mapped controls Mean absolute height error, raster / masked current
Whole pixel inside roof 10,877 1,983 1,808 1.60 16 2.72 / 4.36 m
At least 80% of pixel inside roof 40,475 14,036 12,810 4.79 44 2.69 / 4.31 m

On the same 16 and 44 controls, the simple class-and-size height prior had errors of 1.81 and 1.43 m. The fitted 90% raster intervals had mean widths of 38.5 and 21.8 m, compared with 11.2 and 9.7 m under the masked current method. No sector, size and source group had sufficient evidence for a narrower replacement. Urban Atlas remains useful for checking particular large roofs and nearby obstructions. Its valid coverage alone does not justify promoting a building. Counts and spatial support · Paired error and interval results · Adoption decisions

Explicit heights are concentrated geographically. Of the 1,091 test-window controls, 1,055 come from a single Sector 2 window. The OSM and Overture copies of these explicit heights share mapping lineage. A fixed estimator using nearby roofs of similar size and density was also tested with entire sectors withheld. On the 191 usable matched controls in that supplementary test, mean absolute error was 13.12 m, against 11.33 m with the existing assumptions. The proposed 90% range contained 74.3% of references. The evidence supports retaining the existing imputed height ranges. Masked height comparisons · Whole-sector holdout

On 1,105 previously height-sensitive test roofs, lowering uncertain heights produced 90th-percentile absolute annual changes of 247.7 kWh/m² when changing the receiving roof alone, 203.8 when changing its neighbours alone and 105.4 when changing both. A lower roof can lose sun at the same time as a lower neighbour admits more sun. On development tile 486_268, lowering one 1,014 m² obstruction from 41.5 to 26.9 m changed 55 neighbouring roofs by at least 5 kWh/m² annually. Improving a cluster's tallest shadow-casting buildings can therefore benefit multiple receivers. Height experiments · Priority casters

We repeated the comparison with actual Urban Atlas pixels, changing eligible imputed or GloBFP heights while preserving mapped heights. With the 80%-overlap rule, 70 of the 1,105 roofs changed by at least 12 kWh/m²/year when updating receivers alone, 410 when updating surrounding buildings alone, and 435 when updating both. The whole-cell rule produced 13, 163 and 165 such changes. The 90th-percentile absolute change with both updates was 129.4 kWh/m² for the 80% rule and 28.0 for whole cells. This demonstrates how far a raster substitution can move results. The held-out height comparisons determine whether that substitution is justified. Per-building comparisons · Experiment settings

Does the fixed inventory match the aerial imagery?

We compared the November 2026 inventory with independent April 2025 OpenAerialMap imagery near Râul Doamnei. The imagery falls outside the reserved test windows. In six seeded 100 × 80 m cells, 42,963 m² of the nominal 48,000 m² had valid imagery. Image-only inspection found 52 distinguishable roof structures and 20 ambiguous candidates. The inventory has 49 footprints with an interior representative point in the cells, and 66 that intersect them. Roof groups, building outlines crossing a cell edge and attached structures count differently. These totals alone cannot measure omission or commission rates. Source and audit details

For a paired check in seeded cell 4, we selected seven roof-interior points on the image before viewing the outlines. Six were inside six distinct inventory polygons. The seventh, on a pink roof with solar panels, was 4.37 m from the nearest polygon. In the opposite direction, two complete inventory outlines of 217.1 and 78.2 m² lay over parking, grass and paths in the image. Construction, demolition, outline placement and image alignment can all contribute across vintages. These observations establish local discrepancies and leave the citywide inventory-completeness rate open. To reproduce the point test, use EPSG:32635 and offsets east and south in metres from cell 4's northwest corner (422125.20196, 4918167.72258). The seven points are (88,30), (56,47), (44,35), (55,33), (33,45), (20,56) and (43,54). The two mapped-only examples contain (25,17) and (42,16). Acquired imagery · Fixed building inventory

Reading a building result

Use screened_shaded_annual_kwh_m2 for an annual screening decision. Substitute djf, mam, jja or son for the corresponding season. A missing value means the period failed screening. The matching screened_shaded_model_*, building_only_screen_status_* and canopy_screen_status_* fields identify the selected source and why a candidate was excluded. A building-only result can still be affected by trees. Versioned building GeoParquet

For a twelve-month series, use estimate_model with irradiation_m01_kwh_m2 through irradiation_m12_kwh_m2. One model supplies every month and the annual and seasonal sums. An annual-only shaded result can coexist with a monthly series labelled horizontal. That series is the common unshaded reference of 1,431.0 kWh/m²/year. incident_annual_kwh multiplies the coherent series by projected area for blocks and by sloping area for the complete facet. Release selection and checks

The coherent series selects seasonal tree canopy on 62,002 roofs, buildings alone on 19,624, mapped facets on one, and the horizontal reference on 92,668. The sector and building tables report 87,806 unresolved annual shaded estimates. Those totals differ because the full-series selection also requires every season to pass. Release totals

For shortlisting, stable_sunniest_fifth_annual = true identifies a horizontal roof that falls in the top fifth of its sector's matched eligible roofs under every tested height and canopy combination. A null designates a roof outside that comparison. All scenarios use the same roofs and area basis within a sector and period. Ties spanning the cutoff are excluded. Building-level incident totals favour larger roofs and answer a different question from exposure per square metre. Rank counts and areas

Where the next measurements would help

  1. Target Sectors 5 and 1 first. Sector 5 has the most unresolved annual roofs (22,318) and Sector 1 has the largest unresolved footprint area (3.07 km²). In each sector, pair a cluster of small uncertain roofs with its tallest sunward obstructions. Prioritise buildings that move several neighbours' estimates in the caster experiment. Use independently licensed, dated roof and ground elevations to test both sides of the shadow calculation. Reserve different blocks before fitting any adjustment. Judge success by additional supported roofs and projected area on those reserved blocks. Sector balance · Caster priorities
  2. Test tree transmission where it changes a shortlist. Sample roofs near taller sunward trees alongside roofs without taller nearby canopy. A current crown-height survey or openly reusable dated imagery, paired leaf-on and leaf-off observations, would test both the 2019 tree geometry and monthly opacity assumptions. Track how many candidates cross the winter and summer top-fifth cutoffs after each update. Tree risk strata
  3. Test accuracy on the roof plane. Seek openly reusable time-matched irradiance records with known sensor position, tilt, azimuth, calibration and obstruction exposure. Compare observed and simulated periods using the same weather dates. For pitched roofs, test surveyed planes and clear/obstructed faces separately. The public evidence here measures numerical convergence, agreement among height sources and sensitivity to assumptions. A regional station alone cannot establish the error of an individual shaded roof. Source review · Facet bounds

Reproduction and spatial checks

Rebuild the first release, including the buffered inventory, weather, canopy raster and tile outputs, using the project runbook. For the height experiment, download the pinned 2021 Bucharest Urban Atlas product through Copernicus Data Space and extract its GeoTIFF into data/raw/iteration2/. The inventory stays fixed for the comparison. Run the following from the repository root. First-release runbook · Source and access details

.venv/bin/python scripts/iteration2_experiments.py sample
.venv/bin/python scripts/iteration2_experiments.py experiments --threads 2
.venv/bin/python scripts/iteration2_heights.py --threads 4 --bbh data/raw/iteration2/CLMS_UA_BBH_S2021_R10m_RO001L1_BUCURESTI_03035_V02_R03_20260226.tif
.venv/bin/python scripts/iteration2_city_canopy.py all --threads 4
.venv/bin/python scripts/iteration2_qa.py --threads 2
.venv/bin/python scripts/iteration2_qa.py --city-canopy-impact
.venv/bin/python scripts/iteration2_qa.py --verify-city-assembly
.venv/bin/python scripts/iteration2_release.py

The full city calculation has four resumable phases. A fresh two-thread run of the populated tile 486_268 reproduced all four stored four-thread outputs byte for byte for 4,118 buildings. Restarting reused the four checkpoints. A one-thread rerun of the sample and holdout experiments reproduced all eight numerical files. Recentring tile windows changed irradiation by 0.0 kWh/m² for 12 tested seam roofs. Removing trees across tile boundaries affected nine of those roofs, by up to 623.5 kWh/m² annually. Removing exterior buildings changed a boundary roof by up to 204.0 kWh/m² in a separate 16-roof check. Keeping external obstructions and canopy through the calculation radius matters near boundaries. Populated-tile replay · Holdout replay · Seam and exterior checks

On the study machine the sum of recorded tile runtimes was about 33 minutes across the four phases, including 20.9 minutes for the alternative height and canopy scenarios. Some phases and tiles ran concurrently. We reloaded the final GeoParquet and independently compared the original geometries byte for byte, checked all 30 sector-period count and area balances, and recalculated the top-fifth test from all 18 underlying scenario scores, including ties. Annual and seasonal energy reconciled with the monthly series. Reassembling in an isolated output directory reproduced all eight release artifacts byte for byte. A separate check re-read 96 roofs directly from the native Copernicus raster and reproduced both pixel match rules, valid counts and median heights. Release checksums · Citywide phase verification · Isolated publication replay