Get the met file name for an experiment

get_metfile(l, is_stop = TRUE)

Arguments

l

A list or apsimxNode red by read_apsimx

is_stop

Whether stop the function when error

Value

The met file name in a experiment

Examples

wheat <- read_apsimx(system.file("wheat.apsimx", package = "rapsimng")) exp <- search_path(wheat, path = "[Experiment]") get_metfile(exp)
#> [1] "%root%\\Examples\\WeatherFiles\\Dalby.met"