pinskylab / OceanAdapt

Scripts and data for OceanAdapt website to visualize shifts in marine animal distributions
http://oceanadapt.rutgers.edu
MIT License
13 stars 6 forks source link

compile.R removes erroneous "-9999" for WTCPUE, should be for NUMCPUE #154

Open zoekitchel opened 2 years ago

zoekitchel commented 2 years ago

For the three Alaska regions (EBS, AI, GOA), the compile.R code includes mutate(wtcpue = ifelse(WTCPUE == "-9999", NA, WTCPUE))). However, it is the NUMCPUE that has some seemingly erroneous -9999 values, not WTCPUE.

> summary(goa$WTCPUE)
    Min.  1st Qu.   Median     Mean  3rd Qu.     Max. 
   0.000    0.034    0.352   10.742    3.307 8744.010 
> summary(goa$NUMCPUE)
     Min.            1st Qu.      Median      Mean       3rd Qu.      Max.      NA's 
-9999.000 -9999.000     0.404 -4223.034     3.320 15878.231       441 
zoekitchel commented 2 years ago

NB: there are also -9999 values for sst and sbt that could easily be removed.