This is an education video explaining the followings:
1. How to load a DEM raster layer in Python using rasterio
2. Read raster attributes using raserio
3. Create slope and aspect rasters using richDEM
4. Create random points with attributes extracted from rasters
5. Export the points to geojson and shapefile using geopandas
The DEM geotiff file and the code can be found @ https://github.com/tipsforgis2/dem-raster-analysis