RiverREM
Make river relative elevation models and REM visualizations from an input digital elevation model.
https://github.com/OpenTopography/RiverREM
Category: Hydrosphere
Sub Category: Freshwater and Hydrology
Keywords
digital-elevation-model lidar visualization
Keywords from Contributors
river
Last synced: about 1 hour ago
JSON representation
Repository metadata
Make river relative elevation models (REM) and REM visualizations from an input digital elevation model (DEM).
- Host: GitHub
- URL: https://github.com/OpenTopography/RiverREM
- Owner: OpenTopography
- License: gpl-3.0
- Fork: true (klarrieu/RiverREM)
- Created: 2022-08-03T22:27:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T19:01:45.000Z (11 days ago)
- Last Synced: 2025-04-25T13:02:56.864Z (2 days ago)
- Topics: digital-elevation-model, lidar, visualization
- Language: Python
- Homepage: https://opentopography.org/blog/new-package-automates-river-relative-elevation-model-rem-generation
- Size: 91.4 MB
- Stars: 213
- Watchers: 8
- Forks: 32
- Open Issues: 0
- Releases: 0
https://github.com/OpenTopography/RiverREM/blob/main/
[](https://nsf.gov/awardsearch/showAward?AWD_ID=1948997) [](https://nsf.gov/awardsearch/showAward?AWD_ID=1948994) [](https://nsf.gov/awardsearch/showAward?AWD_ID=1948857) [](https://anaconda.org/conda-forge/riverrem) [](https://anaconda.org/conda-forge/riverrem) # RiverREM RiverREM is a Python package for automatically generating river relative elevation model (REM) visualizations from nothing but an input digital elevation model (DEM). The package uses the OpenStreetMap API to retrieve river centerline geometries over the DEM extent. Interpolation of river elevations is automatically handled using a sampling scheme based on raster resolution and river sinuosity to create striking high-resolution visualizations without interpolation artefacts straight out of the box and without additional manual steps. The package also contains a helper class for creating DEM raster visualizations. See the [documentation](https://opentopography.github.io/RiverREM/) pages for more details. For more information on REMs and this project see [this OpenTopography blog post](https://opentopography.org/blog/new-package-automates-river-relative-elevation-model-rem-generation).  ## Installation ### Install method 1 (recommended): New environment with conda/mamba Make a new Python environment with RiverREM installed: ```bash conda create -n rem_env riverrem ``` The above command creates a new Python environment named `rem_env` with the `riverrem` package installed. > [!NOTE] > [`mamba`](https://github.com/conda-forge/miniforge/releases/latest) is recommended over `conda` or `pip` as it is able to solve environment dependencies quickly and robustly. If you are using `mamba`, replace `conda` with `mamba` in the above command. The environment can then be activated: ```bash conda activate rem_env ``` Alternatively, the environment can be linked to an IDE like PyCharm. ### Install method 2: Existing environment Install via conda/mamba: ```bash conda install -c conda-forge riverrem ``` ### Install method 3: Repository clone Clone this repo and create a conda environment from the `environment.yml`: ```bash git clone https://github.com/opentopography/RiverREM.git cd RiverREM conda env create -n rem_env --file environment.yml ``` ## Usage 1. Get a DEM for the area of interest. Some sources for free topographic data: - [OpenTopography](https://opentopography.org/) - [USGS](https://apps.nationalmap.gov/downloader/) - [Comprehensive list of DEM sources](https://github.com/DahnJ/Awesome-DEM) 2. Create an REM visualization with default arguments: ```python from riverrem.REMMaker import REMMaker # provide the DEM file path and desired output directory rem_maker = REMMaker(dem='/path/to/dem.tif', out_dir='/out/dir/') # create an REM rem_maker.make_rem() # create an REM visualization with the given colormap rem_maker.make_rem_viz(cmap='topo') ``` Options for adjusting colormaps, shading, interpolation parameters, and more are detailed in the [documentation](https://opentopography.github.io/RiverREM/).  ## Troubleshooting - No river in DEM extent or inaccurate centerline: Use the [OSM editor](https://www.openstreetmap.org/edit) to create/modify river centerline(s). Alternatively, a user-provided centerline can be input to override the OSM centerline. See the [documentation](https://opentopography.github.io/RiverREM) for more details. ## Issues Submitting [issues](https://github.com/OpenTopography/RiverREM/issues), bugs, or suggested feature improvements are highly encouraged for this repository. ## References This is the OpenTopography fork of https://github.com/klarrieu/RiverREM by Kenneth Larrieu. This package was made possible and inspired by the following: - The [beautiful REMs](https://www.dnr.wa.gov/publications/ger_presentations_dmt_2016_coe.pdf) popularized by [Daniel Coe](https://dancoecarto.com/creating-rems-in-qgis-the-idw-method) - [DahnJ](https://github.com/DahnJ)'s implementation of [REMs using xarray](https://github.com/DahnJ/REM-xarray) - Geoff Boeing's [OSMnx](https://geoffboeing.com/publications/osmnx-complex-street-networks/) Python package leveraging the OSM Overpass API - The [UNAVCO](https://www.unavco.org/) Student Internship Program - The team at [OpenTopography](https://opentopography.org/) for supporting this effort under the following U.S. National Science Foundation award numbers: 1948997, 1948994, 1948857. 
Owner metadata
- Name: OpenTopography Facility
- Login: OpenTopography
- Email: [email protected]
- Kind: organization
- Description: Open access to high-resolution, Earth science-oriented topography data, and related tools & resources. US NSF supported.
- Website: www.opentopography.org
- Location: San Diego Supercomputer Center, UC San Diego
- Twitter: OpenTopography
- Company:
- Icon url: https://avatars.githubusercontent.com/u/3650515?v=4
- Repositories: 14
- Last ynced at: 2024-03-27T01:29:01.501Z
- Profile URL: https://github.com/OpenTopography
GitHub Events
Total
- Create event: 3
- Release event: 3
- Issues event: 8
- Watch event: 70
- Issue comment event: 8
- Push event: 6
- Fork event: 8
Last Year
- Create event: 3
- Release event: 3
- Issues event: 8
- Watch event: 70
- Issue comment event: 8
- Push event: 6
- Fork event: 8
Committers metadata
Last synced: 7 days ago
Total Commits: 110
Total Committers: 3
Avg Commits per committer: 36.667
Development Distribution Score (DDS): 0.036
Commits in past year: 21
Committers in past year: 1
Avg Commits per committer in past year: 21.0
Development Distribution Score (DDS) in past year: 0.0
Name | Commits | |
---|---|---|
Kenneth Larrieu | k****u@u****u | 106 |
Viswanath Nandigam | v****t@s****u | 3 |
C. Crosby | c****y@u****g | 1 |
Committer domains:
- unavco.org: 1
- sdsc.edu: 1
- ucdavis.edu: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 11
Total pull requests: 0
Average time to close issues: 1 day
Average time to close pull requests: N/A
Total issue authors: 10
Total pull request authors: 0
Average comments per issue: 3.0
Average comments per pull request: 0
Merged pull request: 0
Bot issues: 0
Bot pull requests: 0
Past year issues: 4
Past year pull requests: 0
Past year average time to close issues: 1 day
Past year average time to close pull requests: N/A
Past year issue authors: 3
Past year pull request authors: 0
Past year average comments per issue: 2.75
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- LabSR-UT (2)
- tomkom (1)
- guillermodangelo (1)
- Geobro1 (1)
- rohmaneo (1)
- dwolverton1 (1)
- QuentinStrappazzon (1)
- allycat0531 (1)
- mmorriss-ugs (1)
- ainterrante (1)
Top Pull Request Authors
Top Issue Labels
- enhancement (1)
- bug (1)
Top Pull Request Labels
Package metadata
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 2
conda-forge.org: riverrem
RiverREM is a Python package for automatically generating river relative elevation model (REM) visualizations from nothing but an input digital elevation model (DEM). The package uses the OpenStreetMap API to retrieve river centerline geometries over the DEM extent. Interpolation of river elevations is automatically handled using a sampling scheme based on raster resolution and river sinuosity to create striking high-resolution visualizations out of the box and without additional manual steps. The package also contains a helper class for creating DEM raster visualizations.
- Homepage: https://github.com/OpenTopography/RiverREM
- Licenses: GPL-3.0-only
- Latest release: 1.0.4 (published over 2 years ago)
- Last Synced: 2025-04-26T13:32:36.830Z (1 day ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 1
-
Rankings:
- Dependent repos count: 24.103%
- Stargazers count: 34.495%
- Average: 39.361%
- Forks count: 47.307%
- Dependent packages count: 51.54%
Score: 6.4599044543775355