discard_groundfish: discard_groundfish: Calculate groundfish discards

View source: R/discard_groundfish.R

discard_groundfishR Documentation

discard_groundfish: Calculate groundfish discards

Description

discard_groundfish: Calculate groundfish discards

Usage

discard_groundfish(
  con,
  species = species,
  FY = fy,
  gf_dat = gf_dat,
  non_gf_dat = non_gf_dat,
  gf_trips_only = F,
  save_dir = file.path(getOption("maps.discardsPath"), "groundfish"),
  run_parallel = FALSE
)

Arguments

con

ROracle connection to Oracle (e.g. MAPS)

species

dataframe with species info

FY

Fishing Year

gf_dat

Data frame of groundfish trips built from CAMS_OBS_CATCH and control script routine

non_gf_dat

Data frame of non-groundfish trips built from CAMS_OBS_CATCH and control script routine

gf_trips_only

Flag if user only wants to run groundfish trips (e.g. for quota monitoring)

save_dir

Directory to save (and load saved) results

run_parallel

option to run species discard calculations in parallel

Value

nothing currently, writes out to fst files (add oracle?)

Author(s)

Benjamin Galuardi


noaa-garfo/discaRd documentation built on April 17, 2025, 10:32 p.m.