apsimx icon indicating copy to clipboard operation
apsimx copied to clipboard

sugarcane soil.profile error

Open daSilva5 opened this issue 3 months ago • 2 comments

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

daSilva5 avatar Oct 27 '24 22:10 daSilva5