Skip to content

Commit

Permalink
use norpac species for lookup
Browse files Browse the repository at this point in the history
otherwise it's looking for a global species, possibly "FSOL", and the table pulled from the norpac schema will have NA rows and R will bomb out.
  • Loading branch information
mkapur-noaa committed Dec 20, 2023
1 parent b54bc03 commit 6cc978f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/bsai_flats.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ bsai_fhs<- function(year, off_yr = FALSE){
if(isTRUE(off_yr)) {
disconnect(akfin)
} else {
q_fsh_specimen(year, species, area, db=akfin, print_sql=FALSE, save=TRUE)
q_fsh_length(year, species, area, db=akfin, print_sql=FALSE, save=TRUE)
q_fsh_specimen(year, species=norpac_species, area, db=akfin, print_sql=FALSE, save=TRUE)
q_fsh_length(year, species=norpac_species, area, db=akfin, print_sql=FALSE, save=TRUE)
disconnect(akfin)

afsc = connect("afsc")
Expand Down

0 comments on commit 6cc978f

Please sign in to comment.