View source: R/create_fishery_subset.R
create_fishery_subset | R Documentation |
Create a subset of the fishery observations for an Atlantis scenario.
create_fishery_subset(dat, time, fleets, species, boxes)
dat |
A
The |
time |
The timing of the survey (a vector indicating specific time steps, which are typically associated with years) i.e., seq(365,10*3650,365) would be an annual survey for 10 years |
fleets |
which fleet indices to aggregate in the output (NULL aggregates all fleets) |
species |
The species to sample in the survey (a vector) |
boxes |
A vector of box numbers |
The function takes fishery catch data from an Atlantis scenario
where the data was read in from Atlantis output using load_nc
within run_truth
. One does not need to use these functions
to create dat
, rather you must only ensure that the structure of
dat
is the same.
Currently, the function subsets the data by fleet, polygon and time (there
are not layers in fishery outputs). The input is fishery observations (either
catch nums or catch bio outputs of run_truth), so nothing else needs to be done.
Atlantis already applies a fishery efficiency and selectivity internally.
This function works for specific defined species, specific defined polygons,
and specific defined time.
The function returns a subsetted matrix aggregated over fleets with the columns as the input data, i.e.,:
species
agecl
polygon
layer
time
atoutput
This function is for a vector of defined species Returns only boxes where fishery was sampled
Poseidon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.