-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In which xml we can add organic amendment? #2262
Comments
You can add material to the SOM pools with some manager code , and similarly, a tillage event will incorporate it. A tillage with depth=0 indicates to burn the material |
Thank you peter-devoil for the guide. library(apsimr) Define the APSIM file and working directoryapsimFile <- "Sim_mmda_ssp585_uksem1.apsim" # Replace with the actual path Define the EFB application scriptefb_script <- " Add the EFB script under the 'Palm Management' manager's 'start_of_day' eventnewFile <- edit_apsim( Rename and save the modified fileDefine the new file name (appending "_modif_EFB" to the original file name)newApsimFile <- gsub(".apsim", "_modif_EFB.apsim", apsimFile) Rename the modified APSIM fileMake sure the path to newFile is absolute or relative correctly to avoid errorsfile.rename(newFile, newApsimFile) Run the simulation with the modified fileapsimExe <- "C:/Program Files (x86)/APSIM710-r4221/Model/Apsim.exe" # Replace with the actual path to APSIM.exe Save results to a CSV fileresultsFile <- gsub(".apsim", "_results.csv", newApsimFile) Print the results to verifyprint(results) |
Replacing the entire management text may be a bit heavy handed - perhaps there's a way to put some parameters on the script (eg dd-mmm for operation) and manipulate just those parameters? |
Dear Peter-devoil, can you give some example, technically how can we do that using either edit the xml on inifile on APSIM classic or edit through apsimr in R. Thanks |
I am simulating scenarios in APSIM classic for oil palm. I wonder which xml file contains the script for adding organic amendment or reducing surface residue from frond removal and litter.
I have explored some XML files, such as SOM, SoilN, PalmManagement, Management, and OilPalm, but I could not find them.
Please advice.
Thank you
The text was updated successfully, but these errors were encountered: