
Read Simstrat lake water level from the raw text output
Source:R/read_simstrat_dat.R
read_simstrat_dat_wlev.RdThe read_simstrat_wlev equivalent for Simstrat's own
WaterH_out.dat, for callers that have not written (or have deleted) the
consolidated output.nc.
Usage
read_simstrat_dat_wlev(
sim_folder = NULL,
config_file = "simstrat.par",
out_dir = NULL,
ref_year = NULL
)Arguments
- sim_folder
character; path to the
simstrat_aed2/simstrat_aedsimulation directory (containingsimstrat.parand the output directory it points at). Not needed if bothout_dirandref_yearare supplied.- config_file
character; name of (or path to) the Simstrat configuration file. Default
"simstrat.par".- out_dir
character; the output directory itself, skipping the
simstrat.parlookup. DefaultNULL(read fromsimstrat.par).- ref_year
integer; the simulation's
Simulation.Reference year, skipping thesimstrat.parlookup. DefaultNULL(read fromsimstrat.par). Supply both this andout_dirin a tight loop to avoid re-parsing the configuration on every read.