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.
Geographic Coordinates
Latitude and longitude in the WGS 84 coordinate reference system identify the location for which soil information is requested.
Depth-wise Soil Profile
Soil attributes are organized into standard depth intervals, allowing soil properties to be examined throughout the soil profile.
Point Matching and IDW
Exact database matches can be returned directly. Locations without an exact match may use nearby observations for interpolation.
Agricultural Modelling
Soil information can support soil characterization, crop modelling, water balance analysis, and the preparation of model-specific inputs.
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
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.
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.
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.
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.
Physical Properties
Bulk density and the physical structure of soil
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.
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 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.
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.
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.
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.
Chemical and Fertility Metrics
Soil organic carbon, nitrogen, and pH
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 (%) = soc (dg/kg) / 100
The second equation assumes the SoilGrids source value is expressed in decigrams of carbon per kilogram of soil.
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.
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.
A pH below 7 is generally acidic, a pH near 7 is neutral, and a pH above 7 is alkaline.
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.
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.
This property provides an estimate of the upper water retention limit used in soil-water calculations.
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.
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.
For a layer of thickness T expressed in millimetres, the corresponding plant-available water storage is:
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.
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
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 = 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
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.
The conversion assumes that the raw bdod value is expressed in cg/cm³.
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_FACTOR = 0.5
Using the supplied LL15 value:
6.4 Hydrological Parameters
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.
The raw SoilGrids water-content value is divided by 10 according to the source representation.
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.
The conversion assumes that the raw wv0033 values are stored in the stated 0.1 volume-percent units.
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.
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.
6.5 Chemical and Fertility Properties
Organic Carbon Percentage
Example value: 0.1% by mass.
This parameter represents soil organic carbon expressed as a percentage of soil mass.
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.
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.
With the stated conversions:
Total N (g/kg) = nitrogen / 100
C:N = (soc / 10) / (nitrogen / 100)
Soil pH
Example value: 8.2296.
This parameter represents the soil pH in water. A value greater than 7 generally indicates alkaline soil conditions.
The conversion uses the stated SoilGrids encoding in which the stored value is multiplied by 10.
6.6 Soil Texture Breakdown
Sand Percentage
Example value: 41.8825%.
The proportion of mineral particles between 0.05 mm and 2 mm in the fine-earth fraction.
Silt Percentage
Example value: 30.6365%.
The proportion of mineral particles between 0.002 mm and 0.05 mm.
Clay Percentage
Example value: 21.2763%.
The proportion of mineral particles smaller than 0.002 mm.
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.
Geographic Context
Administrative location information in the API response
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.
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
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.
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.