pbs-assess / gftrends

Trends in Pacific Canadian groundfish stock status
0 stars 0 forks source link

Add missing Canary assessment #10

Closed seananderson closed 2 years ago

seananderson commented 2 years ago

https://waves-vagues.dfo-mpo.gc.ca/Library/338602.pdf

seananderson commented 2 years ago

Digitize this:

Screenshot of Google Chrome (2022-03-03, 9-50-35 AM)

And find B0 in doc.

image

0.2 B0 was equivalent of LRP... update shortly after as 0.4 Bmsy, but values not shown

From: https://waves-vagues.dfo-mpo.gc.ca/Library/338492.pdf

image image
seananderson commented 2 years ago

RAM legacy code... but I think we're best working with the docs above so we know exactly what we're working with, plus we want uncertainty.

library(ggplot2)
library(dplyr)
library(ramlegacy)
download_ramlegacy()
d <- load_ramlegacy()
names(d)
d$stock[grep("Canary", d$stock$commonname),]

x <- d$timeseries %>% dplyr::filter(stockid == "CROCKWCVANISOGQCI")
unique(x$tsid)

names(d)

d$timeseries_ids_views %>% head
d$timeseries_ids_views %>% filter(stockid == "CROCKWCVANISOGQCI")

filter(x, tsid == "BdivBmsytouse-dimensionless") %>% 
  ggplot(aes(tsyear, tsvalue)) + geom_line()

filter(x, tsid == "BdivBmsypref-dimensionless") %>% 
  ggplot(aes(tsyear, tsvalue)) + geom_line()
seananderson commented 2 years ago

https://cran.r-project.org/web/packages/digitize/index.html

seananderson commented 2 years ago

The initial plot in this thread is for run 11: image

Res Doc p189 Fig. J26.