OCNet

An R-package to generate and analyze Optimal Channel Networks

https://github.com/lucarraro/ocnet

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
Last synced: 10 months ago · JSON representation

Repository

An R-package to generate and analyze Optimal Channel Networks

Basic Info
Statistics
  • Stars: 8
  • Watchers: 3
  • Forks: 4
  • Open Issues: 1
  • Releases: 1
Created over 6 years ago · Last pushed about 2 years ago
Metadata Files
Readme

README.md

OCNet

Linux Build Status CRAN DOI <!-- badges: end -->

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) `` OCN 30x20

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

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

All Time
  • Total Commits: 225
  • Total Committers: 4
  • Avg Commits per committer: 56.25
  • Development Distribution Score (DDS): 0.124
Past Year
  • Commits: 94
  • Committers: 2
  • Avg Commits per committer: 47.0
  • Development Distribution Score (DDS): 0.266
Top Committers
Name Email 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

  • Versions: 17
  • Dependent Packages: 2
  • Dependent Repositories: 1
  • Downloads: 370 Last month
Rankings
Forks count: 12.2%
Dependent packages count: 13.7%
Average: 19.2%
Stargazers count: 21.9%
Dependent repos count: 23.9%
Downloads: 24.3%
Maintainers (1)
Last synced: 11 months ago

Dependencies

.github/workflows/pkgdown.yaml actions
  • 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
DESCRIPTION cran
  • 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