momepy.Streetscape.compute_slope#
- Streetscape.compute_slope(raster)[source]#
Compute slope-based characters
Requires Xarray and Xvec packages.
- Parameters:
- rasterxarray.DataArray
xarray.DataArray object (optimally read via rioxarray), supported by Xvec’s
extract_points
method, representing digital terrain model.
Examples
>>> sc = momepy.Streetscape(streets, buildings) >>> sc.compute_slope(dtm)