NEWS
Many changes to inspect, extract and edit to better support ‘InitialWater’ and ‘Solutes’. There is significant testing, but more is needed.
New function ‘check_apsimx’ that will try to identify common issues in apsimx files
apsimx_example can now run several other examples
There is an option to run files which are in directories with spaces. This is experimental as it can fail in some cases. See ‘apsimx_options’.
Improvements to the code that runs ‘sens_apsimx’ in parallel
Implemented ‘id’ and ‘id.labels’ in plot for compare_apsim
Package ‘FedData’ was removed from ‘Suggests’ as it was removed from CRAN (8-19-2024). It has not been used in the ‘apsimx’ package for a long time.
sens_apsimx can now accept an argument called ‘soil.profiles’. This opens the door for conducting simulations on a spatial grid, by carefully passing weather and soils profiles. Since now package ‘future’ is used for parallelization, this makes it easy to run it on a parallel environment.
sens_apsimx cores argument now requires package ‘future’. This was done to support both unix and windows.
edit_apsimx Editing different simulations used to require specifying ‘root’. Now if the parameter path is complete, this is not required. In this case node should equal “Other”
check_apsim_met checks presence and values of tav and amp. New tav_apsim_met function can be used to calculate and insert tav in an APSIM met file
inspect_apsimx is a bit more robust. When node = “Other” the simulation structure will be displayed according to the value of parm (0, 1, 2). If ‘parm’ is a parameter path, the root elements will be ‘guessed’ from the string.
Much improved handling of APSIM-X output. However, this led to some default changes. Argument ‘value’ in function ‘apsimx’ and ‘read_apsimx’ is ‘report’ instead of ‘all’. The default for ‘apsim’ was also changed for consitency. Hopefully, this will not impact too many scripts.
Multi-site optimization is now possible (for Classic and Next Gen). In this case, the index argument likely needs to be adjusted to ‘index = c(“outfile”, “Date”) for ’Classic’ and ‘index = c(“report”, “Date”)’ for ‘Next Generation’
Several improvements to ‘get’ functions for fetching weather data.
Fixed bug when using ‘root’ argument in ‘edit_apsim’