energy_analysis.climate_comparison.prepare#

Acquire source tables, fit frozen models and prepare small offline map samples.

Run python -m energy_analysis.climate_comparison.prepare --help. Full public datasets stay in the caller’s cache; the gallery stores attributed CSV subsets.

energy_analysis.climate_comparison.prepare.digest(path)[source]#

Hash exact local bytes without reading an entire source into memory.

Parameters:

path (Path)

Return type:

str

energy_analysis.climate_comparison.prepare.prepare(raw_directory, output_directory, *, download=False, world_boundaries=None)[source]#

Build the study from complete native sources; optional explicit live retrieval.

Parameters:
  • raw_directory (Path)

  • output_directory (Path)

  • download (bool)

  • world_boundaries (Path | None)

Return type:

dict

energy_analysis.climate_comparison.prepare.main()[source]#

CLI for regenerating the complete comparison study.

Return type:

int