Man pages for soilFlux
Physics-Informed Neural Networks for Soil Water Retention Curves

add_textureAdd texture classification column to a data frame
apply_minmaxApply a fitted min-max scaler to a data frame
build_residual_setsBuild physics residual point sets (S1 – S4)
build_swrc_modelBuild the CNN1D monotone-integral SWRC model
classify_textureClassify soil texture according to the USDA system
compute_physics_lossCompute the physics-informed residual loss (Norouzi et al....
data_prepData preparation for CNN1D SWRC modelling
evaluate_swrcCompute metrics from a swrc_fit on new data
fit_minmaxFit a min-max scaler from a training data frame
fit_swrcFit a physics-informed CNN1D SWRC model
fix_bd_unitsDetect and correct bulk-density units
head_from_pfConvert pF to matric head (cm)
head_normalizeNormalise matric head (cm) to the pF domain
invert_minmaxInvert a min-max scaling transformation
ioSave and load fitted SWRC models
load_swrc_modelLoad a previously saved SWRC model from disk
make_obs_matricesBuild observation matrices for the CNN1D model
make_profile_arrayBuild a sequence array for one or more soil profiles
make_train_stepCreate an eager-mode train step function
metricsPerformance metrics for SWRC models
modelCNN1D monotone-integral model architecture
norouzi_lambdasReturn default Norouzi et al. (2025) loss weights (lambdas)
parse_depthParse a soil depth string into midpoint and label
parse_depth_columnParse depth column in a data frame
pf_from_headConvert matric head (cm) to pF
pf_normalizeNormalise pF values to [0, 1]
physicsPhysics-informed constraints for SWRC modelling
plot_pred_obsPlot predicted vs. observed water content
plotsPublication-quality plots for SWRC analysis
plot_swrcPlot soil water retention curves (SWRC)
plot_swrc_metricsPlot model performance metric comparison
plot_training_historyPlot training loss history
predictPrediction from fitted SWRC models
predict_swrcPredict water content at specific pF or matric-head values
predict_swrc_densePredict dense SWRC curves for a set of soil profiles
predict.swrc_fitPredict method for swrc_fit
predict_theta_sExtract saturated water content (theta_s) from covariates
prepare_swrc_dataPrepare a soil data frame for SWRC modelling
print.swrc_fitPrint method for swrc_fit
residual_to_tensorsConvert residual point sets to TensorFlow tensors
safe_gradSafely compute a TensorFlow gradient
save_swrc_modelSave a fitted SWRC model to disk
scaleMin-max feature scaling
soilFlux-packagesoilFlux: Physics-Informed Neural Networks for Soil Water...
summary.swrc_fitSummary method for swrc_fit
swrc_exampleExample soil water retention dataset
swrc_metricsCompute regression metrics for SWRC predictions
swrc_metrics_by_groupCompute regression metrics by group
swrc_model_existsCheck whether a model directory contains a valid saved model
textureUSDA soil texture classification
texture_trianglePlot a USDA soil texture triangle (ternary diagram)
theta_unit_factorDetect theta unit scale factor
trainTraining the CNN1D SWRC model
utilsUtility functions for soilFlux
soilFlux documentation built on Dec. 4, 2026, 5:10 p.m.