scenario
laser.cholera.metapop.scenario
¶
Static MOSAIC-country scenario: shapefile geometry joined to 2023 demographics.
Loads the bundled mosaic_countries.shp (country polygons) and
demographics_africa_2000_2023.csv (per-year per-country populations),
filters the population panel to year 2023 and the MOSAIC ISO subset,
then inner-joins on ISO code. The result is exposed as the module-level
scenario GeoDataFrame for downstream plotting / scenario authoring.
Side effect: make_scenario() runs at import time, so the I/O cost
(shapefile parse + CSV read) is paid once.
make_scenario
¶
Build the MOSAIC-country geometry-plus-demographics joined frame.
Reads data/mosaic_countries.shp and the 2023 row of
data/demographics_africa_2000_2023.csv, restricts to ISO codes in
laser.cholera.iso_codes, and inner-joins
on ISO.
Returns:
| Type | Description |
|---|---|
DataFrame
|
A |
DataFrame
|
simplicity) with one row per MOSAIC country, holding both the |
DataFrame
|
shapefile geometry and the 2023 population columns. |