Open jysullivan opened 4 years ago
Pothole - check that all fish ticket trips have been accounted for in the NSEI in other years in the daily accounting form... or not. This is a mess!
full_join(fsh_tx %>%
filter(year >= FIRST_YEAR) %>%
distinct(year_trip, whole_kg) %>%
arrange(year_trip) %>%
select(year_trip, whole_kg1 = whole_kg),
marks %>%
distinct(year_trip, whole_kg) %>%
arrange(year_trip)) %>% View()
Tags from fishery that don't match landings
https://github.com/commfish/seak_sablefish/blob/ea0ef5821cc7de25a45639b4183ae772dfd948b7/r/mark_recapture.R#L585
Data discrepancy - Some year_trip fishery combos in recoveries df are not in marks df. Seven of the trips are from 2008. They are in IFDB and look like they were missed. They are from the NSEI state managed fishery and appear not to have been accounted for in the countbacks spreadsheets. One option is to the marks df:
Adding these landings into the marks df had a pretty large impact on the 2008 assessment, so I omitted this code.
The 2018 tags are from the 9000 series, which are assigned to bio samples that do not have logbooks or samples from a tendered trip where the fish are mixed.
In the 2018 assessment I just filtered out the 2008 and 2018 no_match tag recoveries.
SOLUTION: I think instead I should treat them as "D's" (tags lost in a time period that should be decremented from the next time period).