View source: R/calc_biomass_pool.R
calc_biomass_pool | R Documentation |
Calculate biomass in t per non-age-structured groups (biomass pools) per polygon and time.
calc_biomass_pool(pooln, vol, area, fgs, biolprm)
pooln |
A |
vol |
A |
area |
A |
fgs |
A data frame created by |
biolprm |
A list of biological parameters available from the
|
This functions converts the ATLANTIS output to a data.frame
which can be processed in R.
A data.frame
in tidy format with the following columns:
species, agecl=1, time, polygon and atoutput.
Atoutput is the total biomass in t.
At this point biomass was aggregated (sum) per layer or area for benthos!
Alexander Keth modified by Sarah Gaichas
Other calc functions:
calc_Z()
,
calc_age2length()
,
calc_avgwtstage2age()
,
calc_biomass_age()
,
calc_pred_cons()
,
calc_pred_diet()
,
calc_stage2age()
,
calc_timestep2time()
# Set up the example with input files
d <- system.file("extdata", "SETAS_Example", package = "atlantisom")
fgs <- load_fgs(d, "Functional_groups.csv")
bps <- load_bps(dir = d, fgs = "Functional_groups.csv",
file_init = "Initial_condition.nc")
runprm <- load_runprm(d, "Run_settings.xml")
biolprm <- load_biolprm(dir = d,
file_biolprm = "Biology.prm")
boxes <- get_boundary(load_box(dir = d, file_bgm = "Geography.bgm"))
# Get the pool values
pooln <- load_nc(dir = d, file_nc = "outputs.nc",
bps = bps, fgs = fgs, select_groups = fgs[fgs$IsTurnedOn > 0, "Name"],
select_variable = "N", check_acronyms = TRUE, bboxes = boxes)
biomasspools <- calc_biomass_pool(pooln = pooln, biolprm = biolprm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.