atlantis_openfile: Open parameters file and look for a specific parameter.

View source: R/atlantisfmsy_fileselect.R

atlantis_openfileR Documentation

Open parameters file and look for a specific parameter.

Description

It opens a parameters file, removes comment lines and finds the line ID of the parameter looked for.

Usage

atlantis_openfile(path, file_names, para_name)

Arguments

path

The directory of the parameters file.

file_names

The name of the parameters file with its extension (ex: file.txt or file.prm).

para_name

The name of the parameter the function will look for.

Value

a list containing: the open parameters file and the line ID (location of the parameter in the file).

Examples

atlantis_openfile("C:/Atlantis/AtlantisEEC/AtlantisMSY/COD", "AEEC35_run.prm", "tstop")
atlantis_openfile("/home/Atlantis/AtlantisEEC/AtlantisMSY/COD", "AEEC35_run.prm", "tstop")

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