For landslide susceptibility analysis, we will follow these steps:
- We will load a digital elevation model (DEM) from SRTM (provided in the Data folder of Chapter10).
- Compute the slope from this DEM.
- Reproject each file to the same projection system so that we can compare one with another.
- Extract the elevation and slope values corresponding to the landslide location using the DEM file and the computed slope.
- Classify areas as safe or unsafe using the range of slopes within which landslides have occurred.
- Get random points in the safe zone and extract their elevation and slope values.
- Using the elevation and slope values from both the unsafe and safe locations, fit a logistic regression model.
- Using the coefficient of the fitted model, make a landslide susceptibility map.