atlantisf_modelcopy: Copy the calibrated Atlantis model for F scenarios.

View source: R/atlantisfmsy_simudir.R

atlantisf_modelcopyR Documentation

Copy the calibrated Atlantis model for F scenarios.

Description

Create the folder folder_name in the working directory folder_path. It copies/pastes inside it the files necessary to run Atlantis from the model_path directory.

Usage

atlantisf_modelcopy(
  folder_path,
  model_path,
  exe_name,
  batch_file = NULL,
  folder_name
)

Arguments

folder_path

The working directory: where the F simulations will be run and stored.

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 model_path or if it is in the direct parent directory. If not please either modify this package or modify the path structure of your Atlantis input forcing parameters 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.

folder_name

The name of the simulation folder to contain a set of F scenarios.

Value

simu_path The simulation directory for the F scenarios considered.

See Also

atlantis_paraselect for parameters file selection, atlantis_openfile to open a parameters file and select a parameter, tail to return the last part of an object and str_split_fixed to split a chain of characters.

Examples

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


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