energy_analysis.degradation.gallery#
Recompute the attributed degradation gallery from small annual stress tables.
- energy_analysis.degradation.gallery.prepare_gallery(study_output, destination, boundaries)[source]#
Export a completed study’s verified annual inputs; never download or invent data.
Keep the complete original study outside Git. The small CSV bundle preserves every grid row, including ocean/missing rows, and records original hashes.
boundariesis the existing attributed Natural Earth gallery GeoJSON.- Parameters:
study_output (Path)
destination (Path)
boundaries (Path)
- Return type:
Path
- energy_analysis.degradation.gallery.load_degradation_example(directory)[source]#
Verify small fixtures, recompute rates and check against the archived run.
Returns annual inputs, recalculated rates, and source/calibration metadata. Rates are %/year under the named scenario; missing grid cells remain missing.
- Parameters:
directory (Path)
- Return type:
tuple[Dataset, Dataset, dict[str, Any]]
- energy_analysis.degradation.gallery.plot_degradation_maps(rates, boundaries, *, categorical=False)[source]#
Plot mechanism rates or the classified total on the supplied regular grid.
Colored rectangles are sample-centred footprints, not land polygons or an interpolation to the coast. Gray footprints mark incomplete land samples.
- Parameters:
rates (Dataset)
boundaries (Path)
categorical (bool)
- Return type:
Figure