A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

shadia

An R package that was designed to run dam passage performance standard models for American shad and other herrings.
https://github.com/danStich/shadia

Category: Biosphere
Sub Category: Marine Life and Fishery

Keywords

climate dam fish-passage fisheries herring hydropower individual-based management-strategy-evaluation r river shad watershed

Last synced: about 19 hours ago
JSON representation

Repository metadata

shadia: dam passage performance standard models for R

README.md

shadia

Package containing functions and data for American shad population modeling (click here for project website).

DOI

Note

This is the development version of the shadia package for R (shadia v2.0). This package is under continual development at this time, as it is part of ongoing research and management. For that reason, it is important to correspond with package developers before using the dam passage performance standard models in decision making or research.

Frozen (stable) versions of the software are provided for consistency during dam relisencing studies and reproducibility of research through the shadia website. The site now also provides up-to-date information about the status of all models.

Please check regularly for updates, changes, and bug patches. Please submit issues directly to this repository using the links above.

Installation

The development version of shadia can be installed with devtools in R using the repository url:

devtools::install_github("danStich/shadia")

To install shadia, you will need to have devtools installed ahead of time in R, but that requires some special tools. To install on Windows, you will need to download and install the appropriate version of Rtools. To install on Mac, you will need to have the XCode command-line tools installed. And, if running from Linux, you will need to install the developer version of R (r-base-dev) if you have not already.

Use

The purpose of this package is to distribute code used to run dam passage performance standard models for anadromous alosines (shad and herring). Currently, the model is implemented for the Connecticut, Kennebec, Merrimack, Mohawk and Hudson, Penobscot, Saco, and Susquehanna rivers, USA, but we are actively adding new rivers.

The main package functions can be run without any arguments to estimate population abundance in various reaches or in whole rivers under 'no dam' passage scenarios (see examples). Alternatively, the user can pass one or more values for upstream and downstream fish passage at a given dam which can then be applied throughout the watershed, or separately at each dam. Outputs include population abundance of spawners in the watersheds, within specific production units of each river, and the proportion of repeat spawners in each age class.

The models take several (10-30) seconds to run for one iteration on most standard workstations.

Warning

Management decisions should not be based on a single model run. The models rely on stochastic inputs for parameterization, as detailed in Stich et al. (2019). As such, any two model runs might result in substantially different predictions, even under the same passage scenario. We recommend at least 100 model runs per scenario to provide a minimal characterization of stochasticity, and a cursory understanding of variability in the response(s) of interest. In these cases, we strongly recommend running the model using the snowfall package as demonstrated in the help file for each model, which can be accessed by typing ?...RiverModel (where '...' is the name of each river in lowercase) in the console and pressing < Enter >.

Directories

data/ Contains built-in data sets for the package

man/ help files and documentation

R/ R functions in scripts

src/ C++ source files written with Rcpp


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 339
Total Committers: 3
Avg Commits per committer: 113.0
Development Distribution Score (DDS): 0.431

Commits in past year: 5
Committers in past year: 2
Avg Commits per committer in past year: 2.5
Development Distribution Score (DDS) in past year: 0.4

Name Email Commits
danStich d****h@o****u 193
danStich 3****h 145
Erin Gilligan g****9@o****u 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 35
Total pull requests: 15
Average time to close issues: 5 months
Average time to close pull requests: 4 minutes
Total issue authors: 1
Total pull request authors: 1
Average comments per issue: 1.49
Average comments per pull request: 0.07
Merged pull request: 15
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
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

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/danStich/shadia

Top Issue Authors

  • danStich (35)

Top Pull Request Authors

  • danStich (15)

Top Issue Labels

  • enhancement (8)
  • bug (4)
  • Needs testing (1)

Top Pull Request Labels

  • enhancement (1)

Dependencies

DESCRIPTION cran
  • MASS * imports
  • geosphere * imports
  • lubridate * imports
  • methods * imports
  • plyr * imports
  • tidyverse * imports
  • zoo * imports
  • rlecuyer * suggests
  • snowfall * suggests

Score: 3.044522437723423