io.ssp
Fetch / read SSP population & GDP proxy datasets used to weight downscaling.
fetch_ssp_variable pulls a country-level IAMC variable directly from the IIASA SSP
REST API (no auth/pyam needed); read_ssp_data reads a saved snapshot. Ported from
PyPSA-Eur retrieve_ssp_data.py. Output columns: [iso2, year, value].
fetch_ssp_data(scenario, population_model, gdp_model)
¶
Fetch SSP population and GDP|PPP for one scenario; return (population, gdp).
Source code in src/iampypsa/io/ssp.py
fetch_ssp_variable(variable, model, scenario, *, url=IIASA_URL, page_size=_PAGE_SIZE, timeout=120.0)
¶
Fetch one IAMC variable from the IIASA SSP API as [iso2, year, value].
Source code in src/iampypsa/io/ssp.py
read_ssp_data(path, variables=None)
¶
Read a saved SSP snapshot CSV with columns [iso2, year, value].