Skip to content

Code associated with time series of spawner abundance for regions and species

License

Notifications You must be signed in to change notification settings

salmonwatersheds/state-of-salmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Stephanie Peacock 2024-May-07

state-of-salmon

Overview

This repo contains code and data that informs the Pacific Salmon Foundation’s State of Salmon Report.

Files

  • code contains R code for data compiltation and analysis:
    • 1_regions-expansions.R expands spawner abundance from stream-level spawner surveys to regional aggregate abundance.
    • 2_compile-regional-data.R compiles regional estimates of spawners and returns from various sources in data/, or uses the expanded spawner abundances from 1. where regional data were not available, and smooths these time series using a geometric running mean over the generation length for the species/region. Outputs the raw and smoothed time series as output/sps-data.csv.
    • 3_calc-metrics.R reads in output/sps-data.csv and calculates the current status and trends reported on in the State of Salmon report.
    • other supporting code in colours.R, expansion-functions.R, and functions.R are sourced in the above files and contain functions for expansion, smoothing, and plotting output.
  • data has source data sets used in 2_compile-regional-data.R.
  • output contains processed data and summaries that are usually produced by R code in code and used in plotting.
  • docs contains Technical Documentation on the methods - see https://salmonwatersheds.github.io/state-of-salmon/

Acknowledgements

Code here is written by Steph Peacock and Eric Hertz. PSF’s State of Salmon reporting is led by Eileen Jones and funded by the Pacific Salmon Foundation.

More information

About

Code associated with time series of spawner abundance for regions and species

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages