atlantis_fgrpimp: Test if functional groups is fished and impacted.

View source: R/atlantisfmsy_check.R

atlantis_fgrpimpR Documentation

Test if functional groups is fished and impacted.

Description

Test if the functional group func_grp is fished and impacted in the calibrated model. It open the functional groups csv parameters file and look if the parameter IsFished and IsImpacted are on.

Usage

atlantis_fgrpimp(func_grp, path, exe_name, batch_file = NULL)

Arguments

func_grp

The code of the Atlantis functional group for which Fmsy will be estimated.

path

The directory of the batch or shell file.

exe_name

The name of the atlantis executable you used (ex: atlantismain, atlantisNew).

batch_file

The name of the batch/shell file with extension you are using to run your model. If not provided, the function will search for the unique batch file in your folder_path. Default: NULL.

Value

fgrpimp A binary variable telling if the functional group is (1) fished and impacted or not (0).

See Also

atlantis_paraselect for parameters file selection, and read.table to open table stored in text files (.txt, .csv ...).

Examples

atlantis_fgrpimp("COD", "C:/Atlantis/AtlantisEEC/AtlantisEECF_v3",
                 "atlantismain", "runAtlantis.bat")
atlantis_fgrpimp("COD", "/home/Atlantis/AtlantisEEC/AtlantisEECF_v3",
                 "atlantisNew", "runAtlantis.sh")


rgirardi/atlantisfmsy documentation built on Aug. 30, 2022, 9:11 a.m.