00

Overview

Purpose and scope of the documentation

SoilMat is a soil-data access and analytics platform designed to retrieve depth-wise soil information from geographic coordinates and prepare soil properties for agricultural research and crop simulation applications.

The platform uses processed soil data derived from SoilGrids and can return a soil profile for a requested latitude and longitude. Depending on the spatial match, values may be retrieved from an existing database point or estimated using Inverse Distance Weighting (IDW) interpolation.

Input

Geographic Coordinates

Latitude and longitude in the WGS 84 coordinate reference system identify the location for which soil information is requested.

Output

Depth-wise Soil Profile

Soil attributes are organized into standard depth intervals, allowing soil properties to be examined throughout the soil profile.

Spatial Processing

Point Matching and IDW

Exact database matches can be returned directly. Locations without an exact match may use nearby observations for interpolation.

Application

Agricultural Modelling

Soil information can support soil characterization, crop modelling, water balance analysis, and the preparation of model-specific inputs.

Important distinction: Raw SoilGrids parameters and APSIM-ready parameters are not identical. Raw attributes describe the source soil dataset. APSIM-ready attributes may involve unit conversions, derived properties, model-specific conventions, and additional processing.
01

Metadata Attributes

Information describing the requested location and spatial matching process

Attribute Meaning Interpretation
latitude Latitude in WGS 84 Identifies the north-south geographic position associated with the response.
longitude Longitude in WGS 84 Identifies the east-west geographic position associated with the response.
match_type Spatial matching method Indicates whether the system returned an exact database match or used IDW interpolation.
neighbors_used Number of neighboring points Reports how many neighboring records contributed to an interpolated result.
address Administrative location label Provides a human-readable geographic description associated with the database lookup.

1.1 Match Type

Direct retrieval

exact

Indicates that the requested coordinates matched an existing preprocessed grid point according to the database's matching criteria.

In this case, the system can return the stored soil values without performing IDW interpolation.

Spatial interpolation

interpolated_idw

Indicates that no exact database match was found and the system estimated soil values using surrounding grid points.

The reported neighbors are drawn from the configured search neighborhood, described in the current SoilMat implementation as extending up to approximately 70 km.

1.2 Inverse Distance Weighting (IDW)

IDW estimates a value at an unsampled location by assigning greater influence to nearby observations and less influence to more distant observations.

Z(x) = Σ [ wᵢ × Zᵢ ] / Σ wᵢ

wᵢ = 1 / dᵢᵖ

Where:

  • Z(x): Estimated soil property at the requested location.
  • Záµ¢: Soil property value at neighboring point i.
  • dáµ¢: Distance between the requested location and point i.
  • p: Distance-decay power used by the interpolation algorithm.
  • wáµ¢: Weight assigned to neighboring point i.
Implementation note: The interpolation power, distance metric, neighbor-selection rules, and maximum search distance should be documented from the actual SoilMat code. The equation above describes the general IDW method and does not establish a particular value for the exponent p.

1.3 Number of Neighbors

The neighbors_used field indicates how many neighboring records were used to calculate an interpolated profile. For example, a value of 4 means that four neighboring records contributed to the interpolation, if that is how the API implementation defines the field.

02

Physical Properties

Bulk density and the physical structure of soil

bdod

Bulk Density of the Fine Earth Fraction

Meaning: Bulk density expresses the dry mass of the fine-earth soil fraction relative to the soil volume used in the source definition. The unit commonly used for the SoilGrids product is cg/cm³ before conversion to g/cm³.

Unit: g/cm³ after conversion.

Where it is used: Bulk density helps characterize soil compaction, estimate pore space when combined with particle density, and convert soil concentrations into stocks when layer thickness and coarse fragments are handled appropriately. It is also relevant to root growth and soil-water modelling.

SoilMat processing: The raw SoilGrids bulk density value is converted to g/cm³ using the source unit scale.

BD (g/cm³) = bdod (cg/cm³) / 100
Bulk density and porosity are related, but they are not interchangeable. A porosity estimate additionally depends on particle density and the conventions used for the soil fraction and coarse fragments.
03

Soil Texture and Composition

Mineral particle fractions and coarse fragments

Soil texture describes the relative proportions of sand, silt, and clay in the fine-earth fraction. These fractions influence drainage, aeration, water retention, soil workability, and several chemical properties.

sand

Sand Content

Particle size: 0.05–2 mm.

Raw unit: g/kg.

Converted unit: % by mass.

Sandier soils commonly drain more rapidly and retain less plant-available water than finer-textured soils, although structure and organic matter also matter.

Sand (%) = sand (g/kg) / 10
silt

Silt Content

Particle size: 0.002–0.05 mm.

Raw unit: g/kg.

Converted unit: % by mass.

Silt affects water retention, aggregate stability, erosion susceptibility, and surface crust formation.

Silt (%) = silt (g/kg) / 10
clay

Clay Content

Particle size: Less than 0.002 mm.

Raw unit: g/kg.

Converted unit: % by mass.

Clay influences water retention, cation exchange capacity, shrink-swell behaviour, and soil plasticity.

Clay (%) = clay (g/kg) / 10
cfvo

Coarse Fragments Volume

Particle size: Greater than 2 mm.

Raw representation: Volume percentage.

Coarse fragments include stones and rock fragments that occupy soil volume but generally store less plant-available water than the fine-earth fraction.

This parameter is important when estimating effective soil water storage and interpreting soil properties in stony or skeletal soils.

3.1 Checking Texture Fractions

Sand, silt, and clay percentages are expected to describe the fine-earth mineral fraction. They should approximately sum to 100% when derived consistently and expressed on the same basis.

Texture Total (%) = Sand (%) + Silt (%) + Clay (%)
If the total differs substantially from 100%, check the source values, unit conversions, missing-data handling, and whether the fractions were independently interpolated. Do not automatically normalize the fractions without documenting the reason and method.
04

Chemical and Fertility Metrics

Soil organic carbon, nitrogen, and pH

soc

Soil Organic Carbon

Meaning: Soil organic carbon represents the carbon contained in soil organic matter. It is an important indicator of carbon storage, biological activity, aggregation, and nutrient cycling.

Raw unit: dg/kg.

Applications: Soil carbon assessment, fertility studies, carbon-stock estimation, and characterization of soil organic matter.

SOC (g/kg) = soc (dg/kg) / 10

SOC (%) = soc (dg/kg) / 100

The second equation assumes the SoilGrids source value is expressed in decigrams of carbon per kilogram of soil.

nitrogen

Total Nitrogen

Meaning: The total nitrogen concentration in soil, including nitrogen present in different organic and inorganic forms represented by the source dataset.

Raw unit: cg/kg.

Applications: Soil fertility characterization, nutrient cycling, and the assessment of potential nitrogen supply.

Nitrogen (g/kg) = nitrogen (cg/kg) / 100
Total nitrogen is not equivalent to plant-available nitrogen. Crop models may require additional nitrogen pools, mineralization assumptions, or initialization procedures.
phh2o

Soil pH in Water

Meaning: Soil pH describes acidity or alkalinity as measured in a water suspension according to the source dataset's measurement conventions.

Raw representation: pH multiplied by 10.

Applications: Assessment of nutrient availability, soil reaction, crop suitability, and potential chemical constraints.

pH = phh2o / 10

A pH below 7 is generally acidic, a pH near 7 is neutral, and a pH above 7 is alkaline.

pH is logarithmic. It should not be treated like a conventional concentration variable when averaging or interpreting changes.
05

Hydrological and Water Retention Properties

Soil moisture retained under specified suction

Water retention properties describe how much water remains in soil under different matric suction conditions. They are important for estimating the amount of water available for plant uptake and for initializing soil-water parameters in crop simulation models.

wv0033

Volumetric Water Content at 33 kPa

Meaning: Volumetric water content at a suction of 33 kPa. It is commonly used as an approximation of field capacity or the Drained Upper Limit (DUL), depending on soil type and model conventions.

Raw representation: 0.1 volume-percent units, as described for the supplied SoilGrids product.

Converted unit: Volumetric percent.

DUL (%) = wv0033 / 10

This property provides an estimate of the upper water retention limit used in soil-water calculations.

wv1500

Volumetric Water Content at 1500 kPa

Meaning: Volumetric water content at a suction of 1500 kPa. It is commonly used as an estimate of the permanent wilting-point water content, or LL15.

Raw representation: 0.1 volume-percent units, as described for the supplied SoilGrids product.

Converted unit: Volumetric percent.

LL15 (%) = wv1500 / 10

This property approximates the lower water-content threshold associated with conventional permanent wilting conditions.

5.1 Plant-Available Water

The difference between DUL and LL15 represents the approximate plant-available water content per unit soil volume.

PAW (%) = DUL (%) − LL15 (%)

For a layer of thickness T expressed in millimetres, the corresponding plant-available water storage is:

PAW (mm) = [DUL (%) − LL15 (%)] / 100 × T (mm)
These equations assume that DUL and LL15 use the same volumetric basis. Coarse fragments, rooting restrictions, and the particular crop model's soil-water conventions may require additional adjustments.
06

APSIM-ready Soil Parameters

Parameter definitions and transformations for the 100–200 cm soil layer

This section explains the APSIM-ready parameters supplied in the SoilMat example. The layer covers the soil profile between 100 cm and 200 cm depth.

Depth interval: 100–200 cm.
Layer thickness: 1,000 mm.
Parameter scope: The values below are the example values provided in the SoilMat reference. They illustrate the documented processing workflow and are not universal values for every location.

6.1 Parameter Summary

Parameter Example value Unit Source or method
Thickness_mm_100-200cm 1000 mm Fixed profile configuration
BD_100-200cm 1.5475 g/cm³ SoilGrids bdod conversion
AirDry_100-200cm 7.4219 % volumetric, as reported 0.5 × LL15
LL15_100-200cm 14.8438 % volumetric SoilGrids wv1500 conversion
DUL_100-200cm 31.5529 % volumetric SoilGrids wv0033 conversion
SAT_100-200cm 39.969 % volumetric, as reported Saxton–Rawls calculation
KS_mm_day_100-200cm 193.6113 mm/day Hydraulic conductivity equation
OC_percent_100-200cm 0.1 % by mass SoilGrids soc conversion
SoilCNRatio_100-200cm 2.7069 Dimensionless Organic carbon / total nitrogen
PH_100-200cm 8.2296 pH SoilGrids phh2o conversion
Sand_percent_100-200cm 41.8825 % by mass SoilGrids sand conversion
Silt_percent_100-200cm 30.6365 % by mass SoilGrids silt conversion
Clay_percent_100-200cm 21.2763 % by mass SoilGrids clay conversion

The source units and conversion rules in this table follow the supplied SoilMat description. Confirm the precise SoilGrids product version, variable units, and APSIM interface conventions before using these values in production.

6.2 Layer Geometry

Thickness_mm_100-200cm

Soil Layer Thickness

Example value: 1000 mm.

This parameter defines the thickness of the soil layer. The 100–200 cm interval extends from a depth of 1 metre to a depth of 2 metres.

Thickness = (200 cm − 100 cm) × 10

Thickness = 1000 mm

Processing: The thickness is assigned from the configured profile depth intervals rather than extracted from a SoilGrids property.

6.3 Physical and Bulk Properties

BD_100-200cm

Bulk Density

Example value: 1.5475 g/cm³.

Bulk density describes the dry mass of soil per unit bulk volume under the source dataset's definition. It contributes to soil structure and pore-space characterization.

BD = bdod / 100

The conversion assumes that the raw bdod value is expressed in cg/cm³.

AirDry_100-200cm

Air-Dry Water Content

Example value: 7.4219.

AirDry represents a low soil-water content used by supported APSIM soil-water configurations to represent air-dry conditions and evaporation-related limits.

In the described SoilMat implementation, AirDry is estimated as one-half of LL15.

AirDry = AIRDRY_FACTOR × LL15

AIRDRY_FACTOR = 0.5

Using the supplied LL15 value:

AirDry = 0.5 × 14.8438 = 7.4219
This is a heuristic approximation, not a direct measurement of air-dry water content. Confirm that the chosen relationship is suitable for the intended APSIM configuration and document it as a modelling assumption.

6.4 Hydrological Parameters

LL15_100-200cm

Lower Limit at 1500 kPa

Example value: 14.8438% volumetric.

LL15 estimates the water content remaining at 1500 kPa suction. It is commonly used as the lower water limit in crop simulation.

LL15 = wv1500 / 10

The raw SoilGrids water-content value is divided by 10 according to the source representation.

DUL_100-200cm

Drained Upper Limit

Example value: 31.5529% volumetric.

DUL estimates the water content retained after excess gravitational drainage. The 33 kPa water-retention value is used as a proxy in the described workflow.

DUL = wv0033 / 10

The conversion assumes that the raw wv0033 values are stored in the stated 0.1 volume-percent units.

SAT_100-200cm

Saturated Water Content

Example value: 39.969.

SAT represents volumetric water content at saturation. It is related to the pore volume available for water when the soil is saturated.

In the described SoilMat workflow, SAT is calculated using predictive relationships associated with Saxton and Rawls (2006), based on soil texture and organic matter.

The exact equation, input transformations, organic matter conversion, and porosity constraints must be taken from the implementation. A reference to a paper alone is not enough to reproduce a particular result.
KS_mm_day_100-200cm

Saturated Hydraulic Conductivity

Example value: 193.6113 mm/day.

Saturated hydraulic conductivity (Ks) describes the ability of saturated soil to transmit water. It is important for infiltration, drainage, and soil-water balance calculations.

The supplied workflow describes a hydraulic conductivity calculation using a soil hydraulic predictive equation, followed by conversion from mm/hour to mm/day.

Ks (mm/day) = Ks (mm/hour) × 24
The name of a reference does not uniquely identify a conductivity equation. The specific formula, constants, and input units should be documented. Do not describe the calculation as a particular Kozeny–Carman or Saxton–Rawls equation without verifying the actual code.

6.5 Chemical and Fertility Properties

OC_percent_100-200cm

Organic Carbon Percentage

Example value: 0.1% by mass.

This parameter represents soil organic carbon expressed as a percentage of soil mass.

OC (%) = soc (dg/kg) / 100

The conversion follows the stated SoilGrids source unit. Low organic carbon values are common in some subsoil environments, but the value must be evaluated for the specific location.

SoilCNRatio_100-200cm

Soil Carbon-to-Nitrogen Ratio

Example value: 2.7069.

The C:N ratio compares the mass concentration of organic carbon with the mass concentration of total nitrogen, provided both are expressed on compatible mass bases.

C:N = OC concentration / Total N concentration

With the stated conversions:

OC (g/kg) = soc / 10

Total N (g/kg) = nitrogen / 100

C:N = (soc / 10) / (nitrogen / 100)
The example C:N ratio should be checked against the underlying raw SOC and nitrogen values. If total nitrogen is zero, missing, or extremely small, the calculation requires explicit handling rather than an unrestricted division.
PH_100-200cm

Soil pH

Example value: 8.2296.

This parameter represents the soil pH in water. A value greater than 7 generally indicates alkaline soil conditions.

pH = phh2o / 10

The conversion uses the stated SoilGrids encoding in which the stored value is multiplied by 10.

6.6 Soil Texture Breakdown

Sand_percent_100-200cm

Sand Percentage

Example value: 41.8825%.

The proportion of mineral particles between 0.05 mm and 2 mm in the fine-earth fraction.

Sand (%) = sand (g/kg) / 10
Silt_percent_100-200cm

Silt Percentage

Example value: 30.6365%.

The proportion of mineral particles between 0.002 mm and 0.05 mm.

Silt (%) = silt (g/kg) / 10
Clay_percent_100-200cm

Clay Percentage

Example value: 21.2763%.

The proportion of mineral particles smaller than 0.002 mm.

Clay (%) = clay (g/kg) / 10

6.7 Important APSIM Compatibility Considerations

These fields are SoilMat's descriptive output parameters. They should not automatically be assumed to constitute a complete, directly importable APSIM soil object. The target APSIM version and soil-water configuration determine the exact field names, units, and required additional properties.

  • Verify the expected units for every target model field.
  • Check the relationship between AirDry, LL15, DUL, and SAT.
  • Check texture totals and coarse-fragment treatment.
  • Confirm that the selected hydraulic conductivity method is documented and reproducible.
  • Identify missing parameters that must be measured, estimated, or supplied by the user.
07

Geographic Context

Administrative location information in the API response

address

Administrative Location Label

Example: Gurgaon | Haryana | India

This field provides a human-readable description of the geographic location associated with the database record.

In the described implementation, the address is populated from the matched or nearest-neighbor database record.

An address inherited from a neighboring record should not be interpreted as an independently verified address for the exact requested coordinates. Keep the requested coordinates, matched coordinates, and administrative label conceptually separate when precision matters.
08

Data Validation and Scientific Reproducibility

Recommended checks before using soil data in modelling

SoilMat's raw data and derived parameters should be validated before they are used in crop simulation or scientific analysis. The following checks help detect unit errors, inconsistent values, and unsupported assumptions.

8.1 Unit Consistency

  • Verify the original units of each SoilGrids variable.
  • Record every scaling factor and conversion equation.
  • Distinguish mass percentages from volumetric percentages.
  • Confirm that conductivity values use the correct time unit.
  • Document whether each parameter is observed, predicted, interpolated, or derived.

8.2 Water-Content Constraints

0 ≤ AirDry ≤ LL15 ≤ DUL ≤ SAT ≤ 100

This is a general consistency check for water contents expressed as volumetric percentages. Exact constraints should be checked against the target APSIM implementation and its soil-water model.

8.3 Texture and Carbon-to-Nitrogen Checks

  • Check that sand, silt, and clay are non-negative and have plausible values.
  • Check whether their total is approximately 100%.
  • Verify that SOC and nitrogen are converted to compatible units before calculating C:N.
  • Handle zero, missing, or invalid nitrogen values explicitly.
  • Check whether coarse fragments are included or excluded in each parameter's definition.

8.4 Depth Profile Consistency

SoilGrids supplies predictions for standard depth intervals. A SoilMat profile that combines these predictions should preserve the original depth labels and clearly identify any additional interpolation or depth harmonization.

Do not assume that every derived parameter is a direct SoilGrids measurement. Derived properties should be traceable to their source fields, equations, constants, and processing steps.

8.5 Equation and Reference Documentation

When a transformation is based on a scientific publication, record the full reference, equation number, input units, coefficient values, and any implementation-specific modifications.

For the SoilMat project, a reproducible transformation pipeline should preserve the raw SoilGrids values alongside the converted and model-ready values. This makes it easier to audit calculations and update equations without losing the original data.

About This Reference

This documentation describes the SoilMat parameter definitions and transformations supplied for the current example workflow. It is intended to support understanding, development, and validation of soil-data processing for agricultural applications.

SoilGrids-derived values should be interpreted according to the relevant dataset documentation. Derived APSIM parameters should be validated against their published equations and the conventions of the target model version.

Recommended principle: Keep source data, unit conversions, derived soil properties, and model-specific transformations separately documented. This provides a transparent and reproducible foundation for the SoilMat platform.