Skip to content

salmonwatersheds/decoders

Repository files navigation

decoders

This repo contains tables and code that facilitate the integration of external datasets into the Salmon Data Library and the Pacific Salmon Explorer. Specifically, there are tables that relate PSF-assigned IDs (i.e., streamid and cuid) to those used by DFO and other agencies for cross-referencing. We are also working to also include R code that cleans up NuSEDS data, for example correcting place names and removing duplicate POP_IDs, as is done for the Spawner Surveys data in the Pacific Salmon Explorer.

Each decoder table has two pieces: the first contains the actual match ups of IDs and the second (_definitions) contains definitions and sources of the different fields.

How to use these files

In an attempt to centralize and streamline connections between SWP's datasets and other datasets (e.g., NuSEDS), these are the go-to decoder tables that connect PSF-assigned streamid, cuid, duid fields, as well as the PSE Regions, to other IDs used for CUs and streams (e.g., NuSEDS' POP_ID field).

To use these files, you can source them in your R code directly from this GitHub repo. For example:

url <- "https://raw.githubusercontent.com/salmonwatersheds/decoders/main/all_regions_cu_du_smu_decoder.csv"

lookup <- read.csv(url)

Different units and scales of reporting for Pacific salmon population data

These decoder files attempt to relate the following different salmon population units that are either used by different agencies/organizations (e.g., DFO versus COSEWIC), for different types of information (e.g., catch vs spawner abundance data), or represent different levels in the complex hierarchical population structure of Pacific salmon.

Unit Definition Related fields in decoders
Stream or river populations Unique combinations of freshwater location, species, and (in some cases) run-timing reported in NuSEDS. May be considered the finest scale at which salmon population data are reported. POP_ID, streamid
Conservation Units In the Wild Salmon Policy (2005), a Conservation Unit is a group of wild salmon sufficiently isolated from other groups that, if extirpated, is very unlikely to recolonize naturally within an acceptable time frame, such as a human lifetime. Originally defined by Holtby and Ciruna (2007). FULL_CU_IN, CU_Name, cuid...
Stock Management Unit (SMU) A ‘group of one or more CUs that are managed together with the objective of achieving a joint status’, meaning harvest control rules would apply to the aggregate, at least in a coarse sense. The SMU does not preclude considerations related to conserving CU-level diversity, but rather is a practical aggregation of CUs for harvest planning purposes. That is, it is the scale at which a harvest management plan, or, better, a management and assessment procedure, is developed. In many cases, elements of the PA will be implemented at finer scales of organization within a SMU. The point of developing SMU-specific targets would be to ensure that the cumulative impacts of mixed-stock and terminal fisheries are sustainable. SMU
Designatable Unit Defined by COSEWIC as a unit of Canadian biodiversity that is discrete and evolutionarily significant, where discrete means that there is currently very little transmission of heritable (cultural or genetic) information from other such units, and evolutionarily significant means that the unit harbours heritable adaptive traits or an evolutionary history not found elsewhere in Canada. duid, ...
Outlook Unit ?? OU No., Outlook Unit Name
Pacific Fishery Management Unit (PFMA) Also known as Statistical Areas, these are divisions of Canadian fisheries waters and the scale at which commercial catch is reported. Area
PSE Region Spatial region defined by PSF for organizing and displaying data in the Pacific Salmon Explorer PSE_region

About

Contains lookup files that relate PSF-assigned IDs to those used by DFO etc. for cross-referencing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published