AgMIP open source software development and use.

This function uses some standard pedotransfer functions to calculate missing soil parameters. By loading different calculation theory, this function could calculate the soil parameters based on the existed variables in the given data.

- Calculation theory name - tell the function which theory will be applied for calculation. Currently, only the following pedotransfer functions are available.

Calculation theory | Description |
---|---|

PTSaxton2006 | Implementation based on the paper Soil Water Characteristic Estimates by Texture and Organic Matter for Hydrologic Solutions, by K. E. Saxton and W. J. Rawls, 2006 |

- List of variables name - tells the function which variable will be the target of calculation. If provide key word “ALL”, will automatically calculate all the possible variables in the implementation of the selected theory.

Depends on selected calculation theory as follow, |Calculation theory |Input arguments| |-|-| |PTSaxton2006|SLSND - Soil texture, sand (0.05 to 2.0 mm), weight percent of fine earth (%)| ||SLCLY - Soil texture, clay (<0.002 mm), weight percent of fine earth (%)| ||SLSIL - Soil texture, silt (0.05 to 0.002 mm), weight percent of fine earth (%)| ||SLCF - Soil texture, coarse fraction (>2 mm), weight percent of fine earth (%)| ||SLOC - Total soil organic carbon by layer (g[C]/100g[soil])|

Depends on selected calculation theory as follow, |Calculation theory|Possible output variables| |-|-| |PTSaxton2006|SLLL - Soil water, lower limit (%)| ||SLDUL - Soil water, drained upper limit (%)| ||SLSAT - Soil water, saturated (%)| ||SKSAT - Saturated hydraulic conductivity (cm/h)| ||SLBDM - Soil bulk density when moist for layer (g/cm3)|

Please refer to the corresponding paper or check the attached calculation sample spreadsheet as reference.

PTSaxton2006_CalculationSample.xls

In addition, if SLSND is missing in the data set, will use SLSND = 100 - (SLCLY + SLSIL) to calculate SLSND.

```
FILL, SLLB, PTCALC(), PTSaxton2006, ALL
```

This will calculate all the possible variables for each layer, include SLLL, SLDUL, SLSAT, SKSAT and SLBDM, and fill the value in the layer when there is missing data.

```
REPLACE, SLLB, PTCALC(), PTSaxton2006, SLLL, SLDUL
```

This will calculate the SLLL and SLDUL for each layer and replace the original value anyway.

The following DOME spread sheet is using this function. Machakos Overlay DOME