James-Thorson/FishData

download_catch_rates() creates values for "num" when add_zeros = TRUE

Closed this issue · 3 comments

For example

DF = FishData::download_catch_rates(survey="West_coast_groundfish_bottom_trawl_survey", species_set="Platymera gaudichaudii")
head(DF[DF$Year==2003 & DF$Wt==0 & !is.na(DF$Num), ])

The problem does not seem to be with add_zeros, because the numbers (abundance) does not match the values in the data warehouse even when add_zeros = FALSE. The problem is that the area swept column in the query no longer exists in the catch records database in the data warehouse. It does still exist in the haul information database, but that would have to be queried separately and then joined to the catch information by the haul identifier.

solved by listing counts as NA in latest commit.