apsimx
apsimx copied to clipboard
sugarcane soil.profile error
Hi, Sugarcane model is throwing an error while trying to edit the soil profile.
Capellano1275 <- get_isric_soil_profile(lonlat = c(148.11336,-23.2321)) ex_dir <- auto_detect_apsimx_examples() edit_apsimx_replace_soil_profile("Sugarcane.apsimx", soil.profile = Capellano1275, src.dir = ex_dir, overwrite = TRUE)
Error in soil.node0[wsiswn][[1]] : subscript out of bounds
In the desktop the soil profiles need to have the var sugarcanesoil changed to "SugarcaneSoil". I think the problem is the same. these soil files might need editing to change some var name to work with the sugarcane model. If I run with the Wheat.apsimx it replaces the soil profile without problems. Any idea of how to deal with that in R?
Thanks