View source: R/atlantisfmsy_ini.R
atlantis_fdistri | R Documentation |
Extract the fishing mortality distribution accross fleets in
Atlantis. It opens the harvest parameters file, select the mFC_XXX
vector for the considered functional group func_grp
and return the
proportion of the total F allocated to each fleet. If the functional group
func_grp
is unfished in the calibrated model this function will
attribute fishing pressure evenly accross active fleets.
atlantis_fdistri( func_grp, model_path, harvest_filename, fishing_para, raw.distri = F )
func_grp |
The code of the Atlantis functional group for which Fmsy will be estimated. |
model_path |
The directory of the calibrated model (containing all the
parameters files and one bach file. Forcing files can be stored in a direct
parent directory of model_path). WARNING: Only working if the forcing
folder is in the main model directory |
harvest_filename |
The name of the harvest parameters file with its extension (ex: file.prm). |
fishing_para |
A dataframe containing data from the fishing fleet csv
file plus two extra columns, one to indicate if the fleet is active (1) or
not (0) named |
raw.distri |
If TRUE return the raw value of fishing mortality (F) for active fleets (non-active fleets are set to 0), else the distribution of F is returned (vector of values between [0-1] and their sum is 1). Default: FALSE. |
f_prop
A vector with the proportion of fishing pressure
applied per each fleet. The order of the fleets is the same as the one used
in Atlantis.
atlantis_openfile
to open a parameters file and select
a parameter.
atlantis_fdistri("COD", "C:/Atlantis/AtlantisEEC/AtlantisEECF_v3", "AEEC_harvest.prm", fishing_para) atlantis_fdistri("COD", "/home/Atlantis/AtlantisEEC/AtlantisEECF_v3", "AEEC_harvest.prm", fishing_para)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.