load_bps: Extracts the names of the epibenthic biomasspools from the...

View source: R/load_bps.R

load_bpsR Documentation

Extracts the names of the epibenthic biomasspools from the initial conditions file.

Description

Use file_fgs data.frame (this function will call load_fgs) to get the biomass pool information.

Usage

load_bps(dir = getwd(), fgs, file_init)

Arguments

dir

The directory of the atlantis model output, where the default is getwd().

file_init

A character value giving the file name of the intial conditions file. The file should be located in your current working directory or the folder you specify in dir. The argument can also be specified as the full path name, just as long as argument dir is specified as NULL. Usually the file is named "init[...].nc"., but it must end in .nc.

file_fgs

A character value specifying the file name of the Atlantis functional groups file. The file should be located in your current working directory or the folder you specify in dir. The argument can also be specified as the full path name, just as long as argument dir is specified as NULL. Usually, the filename is "functionalGroups.csv".

Value

A vector of biomass pools.

Author(s)

Alexander Keth

See Also

load_fgs

Other load functions: load_agebioind(), load_bioind(), load_biolprm(), load_boxarea(), load_box(), load_catch(), load_detailed_diet_comp(), load_diet_comp(), load_fgs(), load_fisheries(), load_meta(), load_nc_annage(), load_nc_catchtons(), load_nc(), load_runprm(), load_yoy()

Examples

d <- system.file("extdata", "SETAS_Example", package = "atlantisom")
bps <- load_bps(dir = d, fgs = "Functional_groups.csv", file_init = "Initial_condition.nc")


r4atlantis/atlantisom documentation built on Nov. 12, 2023, 2:59 a.m.