AquaAuma / FishGlob_data

Database and methods related to the manuscript "An integrated database of fish biodiversity sampled with scientific bottom trawl surveys"
Creative Commons Attribution 4.0 International
21 stars 7 forks source link

Zeros for `area_swept` and infinities for `num_cpua` #21

Closed edwardlavender closed 11 months ago

edwardlavender commented 1 year ago

There are 22 records for survey GSL-N with area_swept = 0 (and num_cpua = Inf).

How can swept area be zero? Is this a bug (e.g., in matching swept areas onto catch records) or signature of invalid trawl(s) that is not included in current routines? (I am not familiar with the details of how GSL-N surveys are recorded.)

# Load data
load(url("https://github.com/AquaAuma/FishGlob_data/blob/main/outputs/Compiled_data/FishGlob_public_clean.RData?raw=true"))
# Identify area_swept = 0 records
data[which(data$area_swept == 0), c("survey", "haul_id", "area_swept", "accepted_name", "num", "num_cpue", "num_cpua")]
AquaAuma commented 1 year ago

missing swept area estimates even after model fits:

image
AquaAuma commented 1 year ago

@zoekitchel do you think you could check the GSL survey and probably replace 0 swept area values by NAs, or figure out why we have 0 values? Thanks

mpinsky commented 11 months ago

@jepa , this would be one of the North American fixes to implement. It would mean replacing the GSL-S and GSL-N (Gulf of St. Lawrence South and North) swept area=0 values with NA early enough in the data processing so that num_cpua also gets calculated as NA. Thank you!

jepa commented 11 months ago

Done, see my last push(es). https://github.com/AquaAuma/FishGlob_data/commit/d688f21da7bb0adf794b65b9a0681bda4513f68c, da2d85ed2f4fd5858c6d2c807c83ec9d65478d4e and ebd7193c425600fa7b9c7932198d784abee32e07