Queries species, larva, net, tow, and site tables with temporal filters, computing standardized tally values. Returns a dbplyr lazy table for efficient downstream processing.
get_sp(sp_name, qtr, date_range, ck_children = T)dbplyr lazy table with columns:
name - species name (common + scientific)
tally - raw larval count
std_tally - standardized tally (adjusted for haul factor and sorting proportion)
time_start - tow start datetime
longitude, latitude - spatial coordinates
quarter - quarter (1-4)
hex_h3res* - H3 hexagon indices at multiple resolutions
The standardized tally accounts for differences in haul efficiency and
subsampling: std_tally = std_haul_factor * tally / prop_sorted.
Only records with non-NA tally values are returned.
prep_sp_hex for spatial aggregation
prep_ts_sp for temporal aggregation