R Tools For Soil Science Modeling
Description
An R-based repository for modeling and analyzing soil processes, integrating physics, hydrology, biogeochemistry, and erosion dynamics.
đź‘· Installation
You can install the development version of this package from GitHub using devtools:
# install.packages("devtools")
devtools::install_github("your-github-username/RToolsForSoilScienceModeling_DEV")
âš“ Usage Examples
Here are some examples of how to use the functions in this package. For more detailed examples, please see the scripts in the /examples directory.
soil_moisture_balance
# --- 1. Define inputs ---
precipitation <- rpois(30, lambda = 3)
evapotranspiration <- runif(30, min = 1, max = 5)
soil_water_holding_capacity <- 150
initial_soil_moisture <- 75
# --- 2. Run the model ---
water_balance_results <- soil_moisture_balance(
precipitation = precipitation,
evapotranspiration = evapotranspiration,
soil_water_holding_capacity = soil_water_holding_capacity,
initial_soil_moisture = initial_soil_moisture
)
# --- 3. View and plot results ---
plot(water_balance_results$date, water_balance_results$soil_moisture, type = 'l')
soil_erosion_usle (with rasters)
library(terra)
template <- rast(nrows=20, ncols=20, xmin=0, xmax=20, ymin=0, ymax=20)
R_raster <- setValues(template, runif(ncell(template), 140, 160))
K_raster <- setValues(template, runif(ncell(template), 0.3, 0.5))
LS_raster <- setValues(template, runif(ncell(template), 0.5, 1.5))
C_raster <- setValues(template, runif(ncell(template), 0.05, 0.2))
P_raster <- setValues(template, 1.0)
raster_erosion <- soil_erosion_usle(R_raster, K_raster, LS_raster, C_raster, P_raster)
plot(raster_erosion)
đź§© UML Diagram
The source code for the UML diagram showing the functional dependencies is available in the uml_diagram.puml file. You can render this file using a PlantUML tool to view the diagram.
📜 License
This project is licensed under a custom non-commercial license.
- âś… Free for personal, academic, and research use.
- ❌ Commercial use is strictly prohibited without a separate license.
For commercial licensing inquiries, please contact me at ** s i a d s i m @ g m a i l . c o m **.
Files
SIADSiM/RToolsForSoilScienceModeling-RToolsForSoilScienceModelingV1.0.0.zip
Files
(24.3 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:3852d6d20c49d5fff34b4a99f59d2ab0
|
24.3 kB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/SIADSiM/RToolsForSoilScienceModeling/tree/RToolsForSoilScienceModelingV1.0.0 (URL)
Dates
- Available
-
2025-08
Software
- Repository URL
- https://github.com/SIADSiM/RToolsForSoilScienceModeling
- Programming language
- R
- Development Status
- Active
References
- Allen, R.G., Pereira, L.S., Raes, D., & Smith, M. (1998). *Crop Evapotranspiration — Guidelines for computing crop water requirements*. FAO Irrigation and Drainage Paper 56.
- Green, W.H. & Ampt, G.A. (1911). Studies on soil physics. *The Journal of Agricultural Science, 4*(1), 1-24.
- Hillel, D. (1998). *Environmental Soil Physics*. Academic Press.
- Lloyd, J. & Taylor, J.A. (1994). On the temperature dependence of soil respiration. *Functional Ecology, 8*(3), 315-323.
- Parton, W.J., Schimel, D.S., Cole, C.V., & Ojima, D.S. (1987). Analysis of factors controlling soil organic matter levels in Great Plains grasslands. *Soil Science Society of America Journal, 51*(5), 1173-1179.
- van Genuchten, M.T. (1980). A closed-form equation for predicting the hydraulic conductivity of unsaturated soils. *Soil Science Society of America Journal, 44*(5), 892-898.
- Wischmeier, W.H., & Smith, D.D. (1978). *Predicting rainfall erosion losses*. USDA Agriculture Handbook 537.
- Stavi, Ilan, Anastasia Paschalidou, Apostolos P. Kyriazopoulos, et al. "Multidimensional Food Security Nexus in Drylands under the Slow Onset Effects of Climate Change." Land 10, no. 12 (2021): 1350. https://doi.org/10.3390/land10121350.
- Stavi, I., S.M. Siad, A.P. Kyriazopoulos, and R. Halbac-Cotoara-Zamfir. "Water Runoff Harvesting Systems for Restoration of Degraded Rangelands: A Review of Challenges and Opportunities." Journal of Environmental Management 255 (February 2020): 109823. https://doi.org/10.1016/j.jenvman.2019.109823.
- Siad, S.M., A. Gioia, G. Hoogenboom, et al. "Durum Wheat Cover Analysis in the Scope of Policy and Market Price Changes: A Case Study in Southern Italy." Agriculture (Switzerland) 7, no. 2 (2017). https://doi.org/10.3390/agriculture7020012.
- SIAD, S.M. The Promise and Perils of Google's Bard for Scientific Research. Humanities Commons, 2023. https://doi.org/10.17613/YB4N-MC79.
- SIAD, S.M. Source Code Indexer for SWAT-MODFLOW Version 3: Enhancing Code Comprehension through Hyperlinked Elements and Dependency Information. Humanities Commons, 2023. https://doi.org/10.17613/Y69S-2B67.
- SIAD, S.M. Integrated Crop-Hydrologic Modelling: Methods, Frameworks and Communities of Coupling. Humanities Commons, 2023. https://doi.org/10.17613/07A4-B360.
- SIAD, S.M. Implementing Parallel Processing for DSSAT. Humanities Commons, 2023. https://doi.org/10.17613/BTGZ-1680.
- SIAD, S.M. Advances in SAR-Based Soil Moisture Retrieval Techniques, Applications, and Challenges. Humanities Commons, 2023. https://doi.org/10.17613/PR06-FY12.
- Siad, Si Mokrane, Vito Iacobellis, Pandi Zdruli, Andrea Gioia, Ilan Stavi, and Gerrit Hoogenboom. "A Review of Coupled Hydrologic and Crop Growth Models." Agricultural Water Management 224 (September 2019): 105746. https://doi.org/10.1016/j.agwat.2019.105746.
- SIAD, Si Mokrane, Vittorio Gentile, Achille Ciappa, et al. "Integration of C, L and X Bands SAR Data for Soil Moisture Retrieval over Agricultural Areas (CLEXIDRA Project)." 2023. 11573/1695501.
- SIAD, Si Mokrane, Gaetan Carlo, Giummole' Federica, Mameli Valentina, and Siad Si Mokrane. Ensemble Model Output Statistics for Temperature Forecasts in Veneto. 2022. 10278/5004826.
- SIAD, Si Mokrane, Giovanni Anconitano, Si Mokrane SIAD, et al. "Sensitivity of Different Scattering Mechanisms to Soil Moisture and Vegetation over Corn Fields in Argentina." 2023. 11573/1694305.
- SIAD, Si Mokrane. "Python Tools For Soil Science Modeling." Zenodo, 2025. https://doi.org/10.5281/ZENODO.16740514.
- SIAD, Si Mokrane. "Precompiled netCDF-C & netCDF-Fortran with Intel oneAPI and MVS2022 on Windows 11." Zenodo, 2025. https://doi.org/10.5281/ZENODO.16789272.
- SIAD, Si Mokrane. "MATLAB Tools For Soil Science Modeling." Zenodo, 2025. https://doi.org/10.5281/ZENODO.16748419.
- SIAD, Si Mokrane. "Julia Tools For Soil Science Modeling." Zenodo, 2025. https://doi.org/10.5281/ZENODO.16748328.
- SIAD, Si Mokrane. "COSMIC: Configurable Optimized System for Machine Intelligence Control." Zenodo, 2025. https://doi.org/10.5281/ZENODO.16730044.
- Siad, Si Mokrane. "Continuous Land Use/Land Cover Changes Impacts on Stream Flow Discharge Modelisation and Driving Factors Investigation." Unpublished, 2015. https://rgdoi.net/10.13140/RG.2.2.11463.78240.
- SIAD, Si Mokrane. AI-Powered Gene-Based Crop Modelling: Advancements and Future Directions. Humanities Commons, 2023. https://doi.org/10.17613/K0F9-TE33.
- Siad, Si Mokrane. "Advanced Computer Technologies for Integrated Agro-Hydrologic Systems Modeling: Coupled Crop and Hydrologic Models for Agricultural Intensification Impacts Assessment." Politecnico di Bari, 2018. https://doi.org/10.60576/POLIBA/IRIS/SIAD-SI-MOKRANE_PHD2018.
- Si Mokrane SIAD. "Fortran Tools For Soil Science Modeling." Zenodo, 2025. https://doi.org/10.5281/ZENODO.16739610.
- Gentile, V., N. Pieroni, M. Frezzotti, et al. "CLEXIDRA: Soil Moisture Retrieval on Crop Fields by Integration of Multi-Source Earth Observation Data and Modeling." 2024 IEEE Mediterranean and Middle East Geoscience and Remote Sensing Symposium M2garss 2024 Proceedings, 2024, 342–46. https://doi.org/10.1109/M2GARSS57310.2024.10537555.
- Anconitano, Giovanni, Olena Sarabakha, Si Mokrane SIAD, et al. "Analysis of Polarimetric SAR Data for Soil Moisture Retrieval." IGARSS 2023 - 2023 IEEE International Geoscience and Remote Sensing Symposium, IEEE, July 2023, 1652–55. https://doi.org/10.1109/igarss52108.2023.10282197.