Giter Site home page Giter Site logo

chaochangmicro / rivnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucarraro/rivnet

0.0 0.0 0.0 5.14 MB

An R-package allowing seamless extraction of river networks from Digital Elevation Models data

Home Page: https://lucarraro.github.io/rivnet/

License: Other

C++ 11.60% R 88.40%

rivnet's Introduction

rivnet

An R-package allowing seamless extraction of river networks from Digital Elevation Models data.

CRAN

What this package does

  • Analysis of Digital Elevation Models, either provided externally or downloaded from open source repositories (in the latter case, interfacing with the elevatr package).
  • Extraction of river networks is performed via TauDEM's D8 flow direction algorithm (interfacing with the traudem package).
  • Resulting river networks are compatible with functions from the OCNet package, and can be plotted and analyzed accordingly (and are thus also compatible with packages igraph and SSN).
  • Distances, areas, subcatchments, slopes and so on can be computed. The obtained river networks can be used for further hydrological and ecological modelling studies.

A minimal working example

Extract the river Wigger (Switzerland) from an externally provided DEM raster file. Outlet coordinates are in the CH1903/LV03 projected coordinate system (i.e., the same as the DEM file):

 fp <- system.file("extdata/wigger.tif", package = "rivnet")
 r <- extract_river(outlet = c(637478, 237413),
	                  DEM = fp)

The same result can be obtained by downloading DEM data via elevatr:

r <- extract_river(outlet = c(637478, 237413),
	                  EPSG = 21781, #CH1903/LV03 coordinate system
	                  ext = c(6.2e5, 6.6e5, 2e5, 2.5e5),
	                  z = 8)

Installation issues

rivnet depends on traudem, whose installation might require some caution depending on your operating system. Please read its documentation carefully.

Author

Luca Carraro (maintainer)

rivnet's People

Contributors

lucarraro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.