Households
- class Households(model, agents, reduncancy)[source]
- assign_household_attributes()[source]
Household locations are already sampled from population map in GEBModel.setup_population() These are loaded in the spinup() method. Here we assign additional attributes (dummy data) to the households that are used in the decision module.
- decide_household_strategy()[source]
This function calculates the utility of adapting to flood risk for each household and decides whether to adapt or not.
- get_flood_risk_information_damage_scanner()[source]
Initiate flood risk information for each household. This information is used in the decision module. For now also only dummy data is created.
- from_landuse_raster_to_polygon(mask, transform, crs)[source]
Convert raster data into separate GeoDataFrames for specified land use values.
Parameters: - landuse: An xarray DataArray or similar with land use data and ‘x’ and ‘y’ coordinates. - values_to_extract: List of integer values to extract (e.g., [0, 1] for forest and agriculture).
Returns: - Geodataframe