OCNet
An R-package to generate and analyze Optimal Channel Networks
Science Score: 33.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 4 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.6%) to scientific vocabulary
Repository
An R-package to generate and analyze Optimal Channel Networks
Basic Info
- Host: GitHub
- Owner: lucarraro
- Language: HTML
- Default Branch: master
- Homepage: https://lucarraro.github.io/OCNet/
- Size: 58.8 MB
Statistics
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 1
- Releases: 1
Metadata Files
README.md
OCNet 
An R-package to generate and analyze Optimal Channel Networks
Overview
OCNet enables the creation and analysis of Optimal Channel Networks (OCNs). These are oriented spanning trees (built on rectangular lattices made up of square pixels) that reproduce all scaling features characteristic of real, natural river networks. As such, they can be used in a variety of numerical and laboratory experiments in the fields of hydrology, ecology and epidemiology.
OCNs are obtained by minimization of a functional which represents total energy dissipated by water flowing through the network spanning the lattice. Such a formulation embeds the evidence that morphological and hydrological characteristics of rivers (in particular, water discharge and slope) follow a power-law scaling with drainage area.
For further details, please see Carraro et al. (2020). Generation and application of river network analogues for use in ecology and evolution. Ecology and Evolution. doi:10.1002/ece3.6479.
A minimal working example
Set the random seed to 1 and create an OCN in a 30x20 lattice with default options:
set.seed(1)
OCN <- create_OCN(30,20)
Draw the so-obtained OCN:
draw_simple_OCN(OCN)
``

Installation
```
install devtools (if previously not installed)
if (!("devtools" %in% installed.packages())) {install.packages("devtools")}
install OCNet from GitHub
devtools::installgithub("lucarraro/OCNet", buildvignettes = TRUE) ```
Installation issues and workarounds
Windows
An error might occur when version 0.100.47 of package rgl is installed. Installation with rgl_0.100.30 works fine.
Linux
Installing packages rgdal and rgl (imported by OCNet) gives rise to errors. This can be solved by running
sudo apt install libftgl2 libcgal-dev libglu1-mesa-dev libglu1-mesa-dev apt-get libx11-dev libfreetype6-dev libgdal-dev
Authors
Luca Carraro (maintainer), Florian Altermatt, Emanuel A. Fronhofer, Reinhard Furrer, Isabelle Gounand, Andrea Rinaldo, Enrico Bertuzzo
Owner
- Login: lucarraro
- Kind: user
- Repositories: 5
- Profile: https://github.com/lucarraro
GitHub Events
Total
- Watch event: 2
- Issue comment event: 1
Last Year
- Watch event: 2
- Issue comment event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Carraro | l****o@e****h | 197 |
| lucarraro | l****o@h****t | 25 |
| Reinhard Furrer | r****r@m****h | 2 |
| jsta | s****2@m****u | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 3
- Total pull requests: 6
- Average time to close issues: about 19 hours
- Average time to close pull requests: 1 day
- Total issue authors: 3
- Total pull request authors: 3
- Average comments per issue: 2.33
- Average comments per pull request: 0.0
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- fseaton (1)
- nportilloda (1)
- rsbivand (1)
Pull Request Authors
- olivroy (4)
- lucarraro (3)
- jsta (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 370 last-month
- Total dependent packages: 2
- Total dependent repositories: 1
- Total versions: 17
- Total maintainers: 1
cran.r-project.org: OCNet
Optimal Channel Networks
- Homepage: https://lucarraro.github.io/OCNet/
- Documentation: http://cran.r-project.org/web/packages/OCNet/OCNet.pdf
- License: GPL-3
-
Latest release: 1.2.2
published about 2 years ago
Rankings
Maintainers (1)
Dependencies
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- R >= 3.6 depends
- SSN * imports
- fields * imports
- igraph * imports
- methods * imports
- rgdal * imports
- rgl * imports
- sp * imports
- spam * imports
- bookdown * suggests
- knitr * suggests
- rmarkdown * suggests