onstove.OnStove.calibrate_urban_rural_split#
- OnStove.calibrate_urban_rural_split(GHS_path: str)#
Calibrates the urban rural split using spatial data from the GHS SMOD dataset.
The GHS dataset is used to determine which settlements are urban and which are rural in the analysis. Areas that have coding of either 30, 23 or 22 are considered urban, while the rest are rural. It saves the binary (1 for urban, 0 for rural) classification as a column in the main GeoDataFrame (
gdf) with the name ofIsUrban.- Parameters:
- GHS_path: str
Path to the GHS dataset