https://github.com/dahnj/rem-xarray
Relative Elevation Model in Python using xarray
https://github.com/dahnj/rem-xarray
binder colab-notebook digital-elevation-model jupyter-notebook osm python raster visualization xarray
Last synced: 4 months ago
JSON representation
Relative Elevation Model in Python using xarray
- Host: GitHub
- URL: https://github.com/dahnj/rem-xarray
- Owner: DahnJ
- Created: 2022-03-14T00:28:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T14:25:51.000Z (about 3 years ago)
- Last Synced: 2025-05-17T10:06:04.432Z (5 months ago)
- Topics: binder, colab-notebook, digital-elevation-model, jupyter-notebook, osm, python, raster, visualization, xarray
- Language: Jupyter Notebook
- Homepage:
- Size: 4.39 MB
- Stars: 71
- Watchers: 1
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Relative Elevation Model
Tutorial on creating a [relative elevation model](https://ngmdb.usgs.gov/Info/dmt/docs/DMT16_Coe.pdf) in Python using [xarray](https://xarray.pydata.org/) and [datashader](https://datashader.org/).Based on [*Creating REMs in QGIS with the IDW Method*](https://dancoecarto.com/creating-rems-in-qgis-the-idw-method) by [Dan Coe](https://twitter.com/geo_coe).
# Try it out
💧 Binder 💧 Colab 💧 nbviewer 💧# Run locally
### Conda
```bash
conda env create -f environment.yaml
conda activate rem-tutorial
jupyter notebook
```### venv
```bash
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](https://git-lfs.github.com/) installed, the sample data gets cloned with this repository automatically.Alternatively, you can follow [the video](https://nbviewer.org/github/DahnJ/REM-xarray/blob/master/rem-in-xarray-tutorial.ipynb#VIDEO:-How-to-download-data-from-NLS) on downloading the original raster data.
On Debian, Git LFS can be installed by
```bash
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
- [QGIS](https://dancoecarto.com/creating-rems-in-qgis-the-idw-method) by [Dan Coe](https://twitter.com/geo_coe)
- [Google Earth Engine](https://twitter.com/KelMarkert/status/1509714680364748801) by [Kel Markert](https://twitter.com/KelMarkert)
- [RiverREM](https://github.com/klarrieu/RiverREM), a Python package for producing REMs automatically, by [Kenneth Larrieu](https://github.com/klarrieu)