Package: soilFlux 0.1.5

soilFlux: Physics-Informed Neural Networks for Soil Water Retention Curves
Implements a physics-informed one-dimensional convolutional neural network (CNN1D-PINN) for estimating the complete soil water retention curve (SWRC) as a continuous function of matric potential, from soil texture, organic carbon, bulk density, and depth. The network architecture ensures strict monotonic decrease of volumetric water content with increasing suction by construction, through cumulative integration of non-negative slope outputs (monotone integral architecture). Four physics-based residual constraints adapted from Norouzi et al. (2025) <doi:10.1029/2024WR038149> are embedded in the loss function: (S1) linearity at the dry end (pF in [5, 7.6]); (S2) non-negativity at pF = 6.2; (S3) non-positivity at pF = 7.6; and (S4) a near-zero derivative in the saturated plateau region (pF in [-2, -0.3]). Includes tools for data preparation, model training, dense prediction, performance metrics, texture classification, and publication-quality visualisation.
Authors:
soilFlux_0.1.5.tar.gz
soilFlux_0.1.5.zip(r-4.7-any)soilFlux_0.1.5.zip(r-4.6-any)soilFlux_0.1.5.zip(r-4.5-any)
soilFlux_0.1.5.tgz(r-4.6-any)soilFlux_0.1.5.tgz(r-4.5-any)
soilFlux_0.1.5.tar.gz(r-4.7-any)soilFlux_0.1.5.tar.gz(r-4.6-any)
soilFlux_0.1.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
soilFlux/json (API)
| # Install 'soilFlux' in R: |
| install.packages('soilFlux', repos = c('https://hugomachadorodrigues.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hugomachadorodrigues/soilflux/issues
Pkgdown/docs site:https://hugomachadorodrigues.github.io
- swrc_example - Example soil water retention dataset
Last updated from:12219c6da4. Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | NOTE | 189 | ||
| source / vignettes | OK | 209 | ||
| linux-release-x86_64 | NOTE | 183 | ||
| macos-release-arm64 | NOTE | 126 | ||
| macos-oldrel-arm64 | NOTE | 108 | ||
| windows-devel | NOTE | 116 | ||
| windows-release | NOTE | 117 | ||
| windows-oldrel | NOTE | 172 | ||
| wasm-release | OK | 151 |
Exports:add_textureapply_minmaxbuild_residual_setsbuild_swrc_modelclassify_texturecompute_physics_lossevaluate_swrcfit_minmaxfit_swrcfix_bd_unitshead_from_pfhead_normalizeinvert_minmaxload_swrc_modelmake_obs_matricesmake_profile_arraynorouzi_lambdasparse_depthparse_depth_columnpf_from_headpf_normalizeplot_pred_obsplot_swrcplot_swrc_metricsplot_training_historypredict_swrcpredict_swrc_densepredict_theta_sprepare_swrc_dataresidual_to_tensorssave_swrc_modelswrc_metricsswrc_metrics_by_groupswrc_model_existstexture_triangletheta_unit_factor
Dependencies:backportsbase64enccliconfigcpp11dplyrfarvergenericsggplot2gluegtablehereisobandjsonlitelabelinglatticelifecyclemagrittrMatrixpillarpkgconfigpngprocessxpspurrrR6rappdirsRColorBrewerRcppRcppTOMLreticulaterlangrprojrootrstudioapiS7scalesstringistringrtensorflowtfautographtfrunstibbletidyrtidyselectutf8vctrsviridisLitewhiskerwithryaml
Last update: 2026-03-23
Started: 2026-03-22
Last update: 2026-03-13
Started: 2026-03-12
