change_para: Editing or showing ensemble input files (ens.i01) for single...

Description Usage Arguments Value See Also

View source: R/change.R

Description

The function will edit or show the value of specific parameters

Usage

1
2
change_para(term = NULL, value = NULL, infile = NULL,
  outfile = NULL, type = "show", indrep = 1)

Arguments

term

string. the term that need to be changed. must be provided

value

array, dim(array)=1. the set value. default NULL

infile

string. input file path. must be provided

outfile

string. output file path. default NULL

type

string. "show"(show the parameter, default), "edit"(edit the value) if there is mulitple locations for the corresponding term, only show value is possible and both location/index and value are returned.

indrep

array. the index of the one that need to be changed if there are multiple (edit). default 1

Value

If type="edit", no value is returned and just change the file correspondingly If type="show" OR length(uncomm)!=1&&indrep==1, a list of value and line number will be returned

See Also

[change_block()] for modifying one block


artedison/ensRadaptor documentation built on Dec. 8, 2020, 5:31 p.m.