View source: R/atlantisfmsy_core.R
atlantis_fchange | R Documentation |
It modifies the harvest parameters file by applying a new value
of F for the functional group func_grp
. It looks for mFC_XXX
parameter and and change the value of the vector using the new F value
f_test
that need to be simulated and the distribution of the fishing
pressure accross fleets f_prop
from the calibrated model.
atlantis_fchange( func_grp, path, harvest_filename, f_prop, f_test, fishing_para )
func_grp |
The code of the Atlantis functional group for which Fmsy will be estimated. |
path |
The directory of the batch or shell file. |
harvest_filename |
The name of the harvest parameters file with its extension (ex: file.prm). |
f_prop |
The proportion of the total fishing pressure applied per each fleet. The order of the fleets is the same as the one used in Atlantis. |
f_test |
The new value of total fishing mortality to be tested in days. |
fishing_para |
A dataframe containing data from the fishing fleet csv
file plus two extra column, one to indicate if the fleet is active (1) or
not (0) named |
Change value of F in the harvest parameters files.
atlantis_openfile
to open a parameters file and select
a parameter.
atlantis_fchange("COD", "C:/Atlantis/AtlantisEEC/AtlantisMSY/COD", "AEEC_harvest.prm", c(0.2, 0.45, 0.05, 0.12, 0.08, 0.1), 0.0002739726, fishing_para) atlantis_fchange("COD", "/home/Atlantis/AtlantisEEC/AtlantisMSY/COD", "AEEC_harvest.prm", c(0.2, 0.45, 0.05, 0.12, 0.08, 0.1), 0.0002739726, fishing_para)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.