knitr::opts_chunk$set(echo = TRUE) library(dplyr) library(gfdata) library(ggplot2)
We want to estimate historical Rex Sole discards. Our approach is to apply a ratio of modern Rex Sole discards to modern landings of a commonly co-caught species, or group of species, that was recorded well historically.
get_cocaught_species rex <- get_cocaught_species(610, "groundfish trawl") head(rex)
Here it appears Dover Sole and Pacific Cod are most frequently caught with Rex Sole. I expect Pacific Cod to have better records of historical landings, so will build modern Rex discard ratios relative to Pcod landings (as is done in reconstructing rockfish historic discards).
cocaught_ratios rex_pcod <- cocaught_ratios(610, 222, start_year = 1996, end_year = 2006, sector = "groundfish trawl") head(rex_pcod)
discard_ratio_pcod <- mean(rex_pcod$`target_discard/cocaught_landed`) discard_ratio_pcod rex_discards_pcod <- arrange_catch(222) %>% filter(fishery_sector == toupper("groundfish trawl"), between(year,1970,1996)) %>% group_by(year, fishery_sector) %>% summarise(landed_kg = sum(landed_kg)) %>% ungroup() %>% mutate(rex_discards = landed_kg * discard_ratio_pcod, rex_discards_t_pcod = rex_discards/1000) head(rex_discards_pcod) ggplot(rex_discards_pcod, aes(x = year, y = rex_discards_t_pcod)) + geom_col()
Would a different reference species be better for this purpose?
Do we also want to calculate historical Rex landings in this way?
Or, if we trust our historical Rex landing records, do we want to base our discard estimates on those instead of a co-caught species?
Trying a reference species group instead of a single species - the top 5 co-caught species with Rex in the trawl fishery since 2008.
rex_group <- cocaught_ratios(610, c("dover sole", "pacific cod", "english sole", "petrale sole", "arrowtooth flounder"), start_year = 1996, end_year = 2006, sector = "groundfish trawl") head(rex_group)
Or without Arrowtooth Flounder:
rex_group2 <- cocaught_ratios(610, c("dover sole", "pacific cod", "english sole", "petrale sole"), start_year = 1996, end_year = 2006, sector = "groundfish trawl") head(rex_group2)
Estimate Rex discard ratio from mean of mean annual Rex discards/reference group landings (1996-2006). Here I'm using years from 1996-2006 to calculate the discard ratio because the trawl records are trusted in these years for rockfish reconstructions - is there a reason to restrict this period or use a different time period altogether?
discard_ratio_group <- mean(rex_group$`target_discard/cocaught_landed`) discard_ratio_group discard_ratio_group2 <- mean(rex_group2$`target_discard/cocaught_landed`) discard_ratio_group2
Apply Rex discard ratio to historic time period of interest.
rex_discards_group <- arrange_catch(c("dover sole", "pacific cod", "english sole", "petrale sole", "arrowtooth flounder")) %>% filter(fishery_sector == toupper("groundfish trawl"), between(year,1970,1996)) %>% group_by(year, fishery_sector) %>% summarise(landed_kg = sum(landed_kg)) %>% ungroup() %>% mutate(rex_discards = landed_kg * discard_ratio_group, rex_discards_t_group = rex_discards/1000) head(rex_discards_group) rex_discards_group2 <- arrange_catch(c("dover sole", "pacific cod", "english sole", "petrale sole")) %>% filter(fishery_sector == toupper("groundfish trawl"), between(year,1970,1996)) %>% group_by(year, fishery_sector) %>% summarise(landed_kg = sum(landed_kg)) %>% ungroup() %>% mutate(rex_discards = landed_kg * discard_ratio_group2, rex_discards_t_group2 = rex_discards/1000) head(rex_discards_group2)
ggplot(rex_discards_group, aes(x = year, y = rex_discards_t_group)) + geom_col() ggplot(rex_discards_group2, aes(x = year, y = rex_discards_t_group2)) + geom_col()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.