Skip to content

DahnJ/REM-xarray

Repository files navigation

Relative Elevation Model

Tutorial on creating a relative elevation model in Python using xarray and datashader.

Based on Creating REMs in QGIS with the IDW Method by Dan Coe.

Try it out

💧 Binder 💧 Colab 💧 nbviewer 💧

Run locally

Conda

conda env create -f environment.yaml
conda activate rem-tutorial
jupyter notebook

venv

python -m venv rem-tutorial
source rem-tutorial/bin/activate
pip install -r requirements.txt
jupyter notebook

Downloading the sample data

If you have git-lfs installed, the sample data gets cloned with this repository automatically.

Alternatively, you can follow the video on downloading the original raster data.

On Debian, Git LFS can be installed by

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
apt-get install git-lfs
git lfs install

Examples

REMs in other languages/tools