Published March 2, 2026 | Version 1.0.0

NamSoil v1.0: Predicted Organic Carbon (%) for Namibia at 90 m resolution (0–30, 30–60 and 60–100 cm)

  • 1. Namibia University of Science and Technology; Magyar Agrár- és Élettudományi Egyetem
  • 2. Magyar Agrár- és Élettudományi Egyetem

Description

Dataset Overview

This dataset provides spatial predictions of Organic Carbon (%) content across Namibia at 90 m spatial resolution for three standard soil depth intervals: 0–30, 30–60, 60–100 cm. For each depth interval, the following outputs are provided: predicted mean; 5th percentile; 95th percentile; 90% prediction interval (PI90).

The maps are intended for national- and regional-scale applications and support environmental modelling, land evaluation, and resource management.

Input Soil Data

Model training was based on analytical data from the Namibian Soil Profile Database (NSPD2025) (https://zenodo.org/records/17618737). Profile locations have spatial accuracy better than 0.0001° and were reprojected to WGS84. Soil observations were depth-harmonised to the three standard depth intervals prior to modelling.

Summary statistics of observed Organic Carbon (%): 

  0–30 cm 30–60 cm 60–100 cm
n 2091 1573 1252
Min 0.00 0.00 0.00
Max 3.11 2.76 3.26
Mean 0.35 0.27 0.22
Median 0.28 0.20 0.15
SD 0.29 0.24 0.26
Skewness 3.35 3.82 5.10

Selected environmental covariates

Environmental covariates included in the final model for each depth interval are:

  • 0–30 cm: dem, tpi, chili, topo_diver, landcover, blue_w, green_w, red_w, nir_w, swir1_w, swir2_w, ndvi_w, savi_w, msavi_w, evi_w, blue_s, green_s, red_s, nir_s, swir1_s, swir2_s, ndvi_s, savi_s, msavi_s, evi_s, kndvi_s, flow_lend_d, pet, arid_ind, landform_iwa, namsoil_13, aspp, aez, veg_types, aez_n, cc, Slope, HorizontalCurvature, VerticalCurvature, calcite, carbonate, mafic, prec_wc2, tavg_wc2, geology_a, carb_diff, clay_diff, ferr_diff, rock_out
  • 30–60 cm: dem, tpi, chili, topo_diver, landcover, blue_w, green_w, red_w, nir_w, swir1_w, swir2_w, ndvi_w, savi_w, msavi_w, evi_w, kndvi_w, green_s, red_s, nir_s, swir1_s, swir2_s, ndvi_s, savi_s, msavi_s, evi_s, kndvi_s, flow_lend_d, pet, arid_ind, namsoil_13, aspp, aez, veg_types, aez_n, cc, mafic, prec_wc2, tavg_wc2, geology_a
  • 60–100 cm: dem, tpi, blue_w, nir_w, swir2_w, ndvi_w, savi_w, msavi_w, evi_w, kndvi_w, red_s, nir_s, msavi_s, flow_lend_d, pet, arid_ind, namsoil_13, aspp, aez, aez_n, mafic, prec_wc2, tavg_wc2, geology_a, clay_diff, iron

Full stack of environmental covariates

Covariate Description
dem Digital elevation model (altitude in metres)
Slope Terrain gradient in degrees
Aspect Slope facing direction (0–360°)
Eastness East-west slope orientation (sin of aspect)
Northness North-south slope orientation (cos of aspect)
HorizontalCurvature Plan curvature; lateral flow convergence/divergence
VerticalCurvature Profile curvature; flow acceleration along slope
chili Continuous heat-insolation load index
tpi Multi-scale topographic position index (ridges vs valleys)
topo_diver Topographic diversity (habitat temperature/moisture variety)
landforms_alos Hillslope position classes (15 landform types)
flow_dir Local drainage flow direction
hand Height above nearest drainage
flow_accumul Upstream drainage area (km²)
river_dist Distance to nearest drainage line
flow_lend_d Flow length downstream to pour point
flow_len_up Flow length upstream to farthest source
landcover Land cover classes (11 classes, Sentinel-based)
Prec_wc2 Mean annual precipitation 1970–2000 (mm)
tavg_wc2 Mean annual temperature 1970–2000 (°C)
arid_ind Aridity index (precipitation / potential evapotranspiration)
pet Potential evapotranspiration 1970–2000
blue_s Landsat blue band (summer)
blue_w Landsat blue band (winter)
green_s Landsat green band (summer)
green_w Landsat green band (winter)
red_s Landsat red band (summer)
red_w Landsat red band (winter)
nir_s Landsat near-infrared band (summer)
nir_w Landsat near-infrared band (winter)
swir1_s Landsat shortwave infrared 1 (summer)
swir1_w Landsat shortwave infrared 1 (winter)
swir2_s Landsat shortwave infrared 2 (summer)
swir2_w Landsat shortwave infrared 2 (winter)
ndvi_s Normalized Difference Vegetation Index (summer)
ndvi_w Normalized Difference Vegetation Index (winter)
savi_s Soil Adjusted Vegetation Index (summer)
savi_w Soil Adjusted Vegetation Index (winter)
msavi_s Modified Soil Adjusted Vegetation Index (summer)
msavi_w Modified Soil Adjusted Vegetation Index (winter)
evi_s Enhanced Vegetation Index (summer)
evi_w Enhanced Vegetation Index (winter)
kndvi_s Kernel NDVI (summer)
kndvi_w Kernel NDVI (winter)
carb_diff Carbonate normalization ratio (Landsat)
clay_diff Clay normalization ratio (Landsat)
ferr_diff Ferrous minerals normalization ratio (Landsat)
iron Iron normalization ratio (Landsat)
rock_out Rock outcrop normalization ratio (Landsat)
kaolinite index ASTER kaolinite mineral index
calcite index ASTER calcite mineral index
quartz index ASTER quartz mineral index
carbonate index ASTER carbonate mineral index
mafic index ASTER mafic mineral index
Aez Agro-ecological zones of Namibia (1996, categorical)
aez_n Updated agro-ecological zones of Namibia (2021)
cc Potential carrying capacity of Namibia (2021)
namsoil_13 National soil map (13 WRB reference soil groups)
aspp Average seasonal plant productivity (1999–2019)
veg_types Vegetation types
geology_a Major rock groups by type and age
geology Lithology units (geological map)
Landform_iwa Iwahashi-Pike landform classification (slope, texture, convexity)
convex Terrain convexity (ratio of positive curvature cells)
curv_max Terrain curvature (rate of change in slope)

The complete description and source details can be found in S5 – Environmental covariates assembled in the predictor stack.pdf file.

Modelling Framework

Spatial prediction was performed using the Random Forest algorithm. A bootstrap resampling strategy (20 iterations) was implemented, using an 80:20 calibration–validation split with replacement and a fixed random seed.

Soil data preprocessing, hyperparameter tuning, feature selection, post-modelling metrics and external validation were executed in R, while covariate preparation, model implementation, and uncertainty quantification were conducted in Google Earth Engine.

The Random Forest hyperparameters were:

Depth interval ntree mtry nodesize sampsize
0–30 cm 150 10 2 0.53
30–60 cm 150 18 4 0.42
60–100 cm 150 1 5 0.39

where:
ntree: number of decision trees in the forest
mtry: the number of predictors randomly sampled at each RF split
nodesize: the minimum number of samples required at a leaf node to prevent overfitting
sampsize: the in-bag (internal RF bootstrap) sample size drawn to train each tree

Model Performance

Model performance was evaluated for each bootstrap iteration using Root Mean Square Error (RMSE) to quantify prediction errors and Coefficient of Determination (R²) to measure explained variance. The performance metrics, averaged across the 20 bootstrap runs, are:

Depth interval R² calibration RMSE calibration R² validation RMSE validation
0–30 cm 0.774 0.155 0.312 0.236
30–60 cm 0.576 0.175 0.175 0.208
60–100 cm 0.479 0.211 0.153 0.220

Uncertainty Quantification

Uncertainty estimates were derived from the bootstrap prediction distributions. The 5th and 95th percentile maps represent lower and upper prediction limits.

The 90% Prediction Interval Coverage Probability (PICP90) of Organic Carbon for the three depth classes were:

Depth interval PICP90
0–30 cm 94.69
30–60 cm 95.17
60–100 cm 96.01

Data Outputs

Map outputs are provided as Cloud-Optimised GeoTIFFs (WGS84) for GIS and modelling applications, and PNG format for visualisation and reporting.

Data Access

The input soil data used for model training is available in the Namibian Soil Profile Database (NSPD2025) at https://doi.org/10.5281/zenodo.17618737.
Predicted soil maps can be retrieved directly from Zenodo using the quick-start scripts for reading, cropping, and exporting NamSoil layers — without downloading the full files — available at: https://github.com/Gelsleichter/acquire_NamSoil/.
These scripts enable reproducible data retrieval workflows, allowing users to fetch and process specific layers programmatically.

Code Availability

The complete source code for data preprocessing, feature selection, hyperparameter tuning, model implementation, and post-processing is available at:
https://doi.org/10.5281/zenodo.18776302, also published on https://github.com/Gelsleichter/NamSoil.
The Google Earth Engine scripts for covariate preparation, regression matrix export, and Random Forest modelling with 20-iteration bootstrap are available at: https://code.earthengine.google.com/?accept_repo=users/Namibia_map/Soil_properties.
Note that the GEE repository runs at a coarser spatial resolution than the published maps to reduce computational cost, memory usage, and export time within the Earth Engine environment. Users can adjust the output resolution to 90 m (or other) by modifying the scale parameter in the export functions, although this will require longer processing times and larger storage allocation.
All scripts, fixed random seeds, and parameter configurations are provided to ensure full reproducibility of the modelling pipeline — from covariate preparation through spatial prediction and uncertainty quantification. Users can replicate the entire workflow or adapt individual components to other study areas or soil properties.

Related Publication

A full methodological description, model evaluation framework, and interpretation of results are provided in:
[Publication DOI to be added]

Notes

Uploaded via Zenodo REST API.

Files

boot_avg_map_uncert_OCpct_0_30_cm_numb_of_boots_20_export_gdrive_scale_90m.tif

Files (1.6 GB)

Name Size
md5:a4eb5a4c611f8b66323bbc1fcf4e2e92
611.3 MB Preview Download
md5:aebd68a302a96fd4d8a1a2d7cddee6ce
561.1 MB Preview Download
md5:02e557d8aeee994ee6bd854244e8f463
416.4 MB Preview Download
md5:92191f1dedf1e1f6a047a57d5fa486d3
1.6 MB Preview Download
md5:b20db25afb5d61bc01eef3287d426e36
1.7 MB Preview Download
md5:cd85d5ba370267860b795662686ae77e
2.2 MB Preview Download
md5:a729452ec4ba22905924cc27838cb92a
1.8 MB Preview Download
md5:6073ac58abf8a810a9fd1f043ee54b7c
1.4 MB Preview Download
md5:5140f2629e58577ab553a9a17faa4596
1.5 MB Preview Download
md5:3fc6438cc1952c0ce31ea355770e6425
2.2 MB Preview Download
md5:edeb5c8278fc239f099dd3171b6b5153
1.7 MB Preview Download
md5:e30f8f8fb3346c1d8306e6260799c681
1.1 MB Preview Download
md5:15bfe1859ddff2bdacb284d751808148
1.2 MB Preview Download
md5:cf7d9bb5cc836041745d28f9aabec277
1.9 MB Preview Download
md5:51fb97f97feb19f81437fede3076edf6
1.3 MB Preview Download
md5:7c42166645cd3544c1e032aa49d9a309
130 Bytes Preview Download
md5:cca48ce974a7d2d4733ff015fadfef16
129 Bytes Preview Download
md5:2e42fdb0508f190b4dc9b59e8914756f
130 Bytes Preview Download
md5:b7008fa110b2c7a4012503979a49607c
2.7 kB Preview Download
md5:8eb151857900dd56d74fed606a486ae9
2.7 kB Preview Download
md5:1dc812696d374b0ae267d92d310c0a9d
2.7 kB Preview Download
md5:13fab90c3a6aa759283b723b47c35173
103.8 kB Preview Download

Additional details

Related works

Is supplement to
10.5281/zenodo.17618737 (DOI)