bakaano.dem¶
Digital elevation model (DEM) download and preprocessing.
Role: Provide clipped DEM and derived slope for the study area.
- class bakaano.dem.DEM(working_dir, study_area, local_data=False, local_data_path=None)[source]¶
Bases:
object- compute_slope_percent_riserun()[source]¶
Compute slope (percent rise/run) from the clipped DEM.
- Returns:
None. Writes
slope_clipped.tifto{working_dir}/elevation.
- get_dem_data()[source]¶
Download or ingest DEM data and clip to the study area.
If
local_datais False, downloads HydroSHEDS 30s DEM and clips it. Iflocal_datais True, clips the provided local GeoTIFF.- Returns:
None. Writes
dem_clipped.tifto{working_dir}/elevation.