Published August 4, 2025 | Version Fortran Tools For Soil Science Modeling V1.0.0
Software Open

Fortran Tools For Soil Science Modeling

Authors/Creators

  • 1. Bundesamt fĂĽr Wasserwirtschaft

Description

This Fortran repository contains a collection of scientific routines for soil science modeling. The modules focus on key processes such as soil moisture balance, infiltration, temperature dynamics, nutrient cycling, and soil respiration. All algorithms are implemented based on peer-reviewed literature and established guidelines to ensure scientific accuracy and reproducibility.

The code is written in modern Fortran (Fortran 90+) and uses double precision for all floating-point calculations to ensure numerical stability.

đź§© Modules

The library includes the following modules:

  • SoilMoistureBalance_mod: Computes the daily soil water balance using the FAO-56 methodology.
  • InfiltrationGreenAmpt_mod: Implements the Green-Ampt model for calculating infiltration capacity.
  • SoilTemperatureProfile_mod: Simulates the soil temperature profile using the Fourier heat conduction equation.
  • NitrogenMineralization_mod: Estimates net nitrogen mineralization rates based on the CENTURY model approach.
  • SoilRespiration_mod: Calculates heterotrophic respiration rates using the Q10 temperature function.
  • BulkDensityCalc_mod: Computes soil bulk density from particle density and porosity.
  • SoilWaterRetention_mod: Implements the van Genuchten equation to estimate the soil water retention curve.
  • EvapotranspirationPenmanMonteith_mod: Calculates reference evapotranspiration using the FAO-56 Penman-Monteith equation.
  • SoilCarbonDecomposition_mod: Models soil organic carbon decomposition using first-order decay kinetics.
  • SoilErosionEstimate_mod: Provides a simplified soil erosion estimate using the Universal Soil Loss Equation (USLE) factors.

đź‘·‍♂️Installation and Building

The project uses a Makefile for building the source code and running tests. The build process requires the Intel Fortran Compiler (ifx).

To build the test executable, run the following command in the root directory of the project:

make
 

This will compile all the source files and create an executable named test_runner.exe.

To run the test suite, execute:

make run_tests
 

To clean up all build artifacts, run:

make clean
 

âš“ Usage

The modules are designed to be easily integrated into other Fortran projects. To use a specific routine, you need to include the corresponding module with a use statement.

For example, to use the BulkDensityCalc subroutine:

program my_model
  use kind_mod, only: dp
  use BulkDensityCalc_mod, only: BulkDensityCalc

  implicit none

  real(kind=dp) :: particle_density, porosity, bulk_density

  particle_density = 2650.0_dp
  porosity = 0.4_dp

  call BulkDensityCalc(particle_density, porosity, bulk_density)

  print *, "Calculated Bulk Density:", bulk_density

end program my_model
 

👨‍🔬 Scientific Background and Implementation Notes

The routines in this library are based on established models from the soil science literature. Each module's source file contains a reference to the primary literature source for the implemented algorithm.

📝 A Note on Exponentiation

To ensure cross-compiler consistency and avoid potential quirks in how different compilers handle floating-point exponentiation, non-integer power calculations (i.e., x**y) have been implemented using the exp(y * log(x)) formulation. This is a standard practice in scientific computing to improve reproducibility.

📜 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/FortranToolsForSoilScienceModeling-FortranToolsForSoilScienceModelingV1.0.0.zip

Additional details

Dates

Available
2025-08

Software

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. "R Tools For Soil Science Modeling." Zenodo, 2025. https://doi.org/10.5281/ZENODO.16748630.
  • 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.
  • 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.