View source: R/load_nc_annage.R
load_nc_annage | R Documentation |
This function loads Atlantis ANNAGEBIO and ANNAGECATCH outputfiles (netcdf) and
converts them to a data.frame
.
load_nc_annage(
dir = getwd(),
file_nc,
file_fish,
bps,
fgs,
biolprm,
select_groups,
select_variable = c("Nums", "Weight", "Catch", "Discard"),
check_acronyms = TRUE,
bboxes = c(0),
verbose = FALSE
)
dir |
The directory of the atlantis model output, where the
default is |
file_nc |
A character value giving the file name of the netcdf file
you are trying to read in. The file should be located in your current working
directory or the folder you specify in |
bps |
A character vector of biomass pools as read in from
|
fgs |
A data frame created by |
biolprm |
A list of biological parameters available from the
|
select_groups |
Character vector of funtional groups to select.
Names have to match the ones used in the ncdf file, and therefore must
be in the column |
select_variable |
A character value spefifying which variable to return.
loaded. Only one variable of the options available (i.e., |
check_acronyms |
A logical, specifying if selected groups are active
in the model run. This is used in automated runs.
All groups are passed when plotting is called via batch-file,
(which cannot be changed easily) this will result in errors if some
groups are not active in the model run.
By default this argument is |
bboxes |
A vector of boundary boxes.
The default value is |
verbose |
A logical value specifying if output should be written
to the screen or not. The default value is |
A data.frame
in long format with the following coumn names:
Species, timestep, polygon, agecl, and atoutput (i.e., variable).
Alexander Keth, modified by Sarah Gaichas
get_boundary
, load_box
Other load functions:
load_agebioind()
,
load_bioind()
,
load_biolprm()
,
load_boxarea()
,
load_box()
,
load_bps()
,
load_catch()
,
load_detailed_diet_comp()
,
load_diet_comp()
,
load_fgs()
,
load_fisheries()
,
load_meta()
,
load_nc_catchtons()
,
load_nc()
,
load_runprm()
,
load_yoy()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.