atlantis_savestart: Change number of days to save from model outputs.

View source: R/atlantisfmsy_ini.R

atlantis_savestartR Documentation

Change number of days to save from model outputs.

Description

Change the output starting time in the run parameters file. It opens the run parameters file, select the toutstart parameter and replaces his value by: runtime = burning_time + 10950 days.

Usage

atlantis_savestart(path, exe_name, run_time, save_time, batch_file = NULL)

Arguments

path

The directory of the batch or shell file.

exe_name

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

run_time

The total duration of the simulation in days (burnin_time + 10950).

save_time

The number of days to save from the end of the simulation.

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

Modify run parameters file.

See Also

atlantis_paraselect for parameters file selection, and atlantis_openfile to open parameter files and select parameters.

Examples

atlantis_savestart("C:/Atlantis/AtlantisEEC/AtlantisMSY/COD",
 "atlantismain", 18250, 365, "runAtlantis.bat")
atlantis_savestart("/home/Atlantis/AtlantisEEC/AtlantisMSY/COD",
 "atlantisNew", 18250, 365, "runAtlantis.sh")


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