{"id":28205648,"url":"https://github.com/dahnj/rem-xarray","last_synced_at":"2025-10-12T17:43:53.505Z","repository":{"id":41247152,"uuid":"469530886","full_name":"DahnJ/REM-xarray","owner":"DahnJ","description":"Relative Elevation Model in Python using xarray","archived":false,"fork":false,"pushed_at":"2022-08-11T14:25:51.000Z","size":4601,"stargazers_count":71,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T10:06:04.432Z","etag":null,"topics":["binder","colab-notebook","digital-elevation-model","jupyter-notebook","osm","python","raster","visualization","xarray"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DahnJ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-14T00:28:35.000Z","updated_at":"2025-04-28T06:59:54.000Z","dependencies_parsed_at":"2022-09-05T18:11:57.726Z","dependency_job_id":null,"html_url":"https://github.com/DahnJ/REM-xarray","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahnJ%2FREM-xarray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahnJ%2FREM-xarray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahnJ%2FREM-xarray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahnJ%2FREM-xarray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DahnJ","download_url":"https://codeload.github.com/DahnJ/REM-xarray/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahnJ%2FREM-xarray/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259255503,"owners_count":22829484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binder","colab-notebook","digital-elevation-model","jupyter-notebook","osm","python","raster","visualization","xarray"],"created_at":"2025-05-17T10:06:04.510Z","updated_at":"2025-10-12T17:43:48.471Z","avatar_url":"https://github.com/DahnJ.png","language":"Jupyter Notebook","readme":"![](https://i.imgur.com/bYXzIWY.png)\n# Relative Elevation Model \nTutorial 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/).\n\nBased 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).\n\n\n# Try it out\n\n\u003ch3 align=\"center\"\u003e\n  💧 \u003ca href=\"https://mybinder.org/v2/gh/DahnJ/REM-xarray/HEAD?filepath=rem-in-xarray-tutorial.ipynb\"\u003eBinder\u003c/a\u003e 💧 \u003ca href=\"https://colab.research.google.com/github/DahnJ/REM-xarray/blob/master/rem-in-xarray-tutorial.ipynb\"\u003eColab\u003c/a\u003e 💧 \u003ca href=\"https://nbviewer.org/github/DahnJ/REM-xarray/blob/master/rem-in-xarray-tutorial.ipynb\"\u003enbviewer\u003c/a\u003e 💧\n\u003c/h3\u003e\n\n# Run locally\n\n### Conda\n```bash\nconda env create -f environment.yaml\nconda activate rem-tutorial\njupyter notebook\n```\n\n### venv\n```bash\npython -m venv rem-tutorial\nsource rem-tutorial/bin/activate\npip install -r requirements.txt\njupyter notebook\n```\n\n### Downloading the sample data\nIf you have [git-lfs](https://git-lfs.github.com/) installed, the sample data gets cloned with this repository automatically.\n\nAlternatively, 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.\n\nOn Debian, Git LFS can be installed by\n```bash\ncurl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash\napt-get install git-lfs\ngit lfs install\n```\n\n# Examples\n\n![](https://i.imgur.com/MFagpMt.jpg)\n![](https://i.imgur.com/jRXcHVi.jpg)\n![](https://i.imgur.com/2XcHIZW.jpg)\n\n\n# REMs in other languages/tools\n- [QGIS](https://dancoecarto.com/creating-rems-in-qgis-the-idw-method) by [Dan Coe](https://twitter.com/geo_coe)\n- [Google Earth Engine](https://twitter.com/KelMarkert/status/1509714680364748801) by [Kel Markert](https://twitter.com/KelMarkert)\n- [RiverREM](https://github.com/klarrieu/RiverREM), a Python package for producing REMs automatically, by [Kenneth Larrieu](https://github.com/klarrieu)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahnj%2Frem-xarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdahnj%2Frem-xarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahnj%2Frem-xarray/lists"}