SlideShare una empresa de Scribd logo
1 de 55
Descargar para leer sin conexión
FAO- Global Soil
Partnership
Training on
Digital Soil Organic Carbon
Mapping
20-24 January 2018
Tehran/Iran
Yusuf YIGINI, PhD - FAO, Land and Water Division (CBL)
Guillermo Federico Olmedo, PhD - FAO, Land and Water Division (CBL)
DATA PREPARATION
SOIL Databases
Soil Profile Database and Topsoil Database
Scenario 1: SOIL Profile DB
Most commonly, soil are described as vertical
profiles using soil pits . Soil profiles are described
using macro-morphological properties. These
properties can be assessed in the field without
analysis by making a field inventory or land
evaluation. For additional quantitative analysis,
soils are then sampled by genetic horizon or by
depth class.
SOIL Profile DB
In order to process and evaluate soil information
from field assessments, soil profile and analytical
information needs to be stored in a database. This
can be a set of simple Excel Spreadsheets, or a
relational or object-oriented database
management system. When working in R,
SoilProfileCollections from the R ‘aqp’ package
could be a useful tool.
Data Organisation
Table-1: SITE LEVEL DATA
stores site-level data, which describe the location of
the soil description and/or sampling site: spatial
coordinates, landscape attributes such as slope
gradient and slope form, soil class, land cover type,
rock type etc. In this table every row should hold a
single soil profile. One column, usually the first one,
should be the soil profile’s unique identifier. Using
the latter, soil information can be easily linked from
one table to another.
Data Organisation
Table-1: SITE LEVEL DATA
stores site-level data, which describe the location of
the soil description and/or sampling site: spatial
coordinates, landscape attributes such as slope
gradient and slope form, soil class, land cover type,
rock type etc. In this table every row should hold a
single soil profile. One column, usually the first one,
should be the soil profile’s unique identifier. Using
the latter, soil information can be easily linked from
one table to another.
Data Organisation
TABLE-2: Horizon Level Data
stores information from the soil description, such as
horizon name, horizon thickness, organic matter content,
carbonate content, soil color, laboratory soil analysis, etc.
The first column contains the soil profile’s unique
identifier. It is important to include the upper and lower
limits for each soil layer; in case the sampling strategy
deviates from soil layers/soil horizons, the upper and
lower depth of the sampling locations should be specified
if possible. This information is needed for modelling soil
properties over the soil profile.
Data Organisation
TABLE-2: Horizon Level Data
stores information from the soil description, such as
horizon name, horizon thickness, organic matter content,
carbonate content, soil color, laboratory soil analysis, etc.
The first column contains the soil profile’s unique
identifier. It is important to include the upper and lower
limits for each soil layer; in case the sampling strategy
deviates from soil layers/soil horizons, the upper and
lower depth of the sampling locations should be specified
if possible. This information is needed for modelling soil
properties over the soil profile.
Soil Profile DB
dat <- read.csv(file = "data/horizons.csv")
# Explore the data
str(dat)
## 'data.frame': 10292 obs. of 10 variables:
## $ ProfID: Factor w/ 4118 levels "P0000","P0001",..: 1 1 1 2 2 ..
## $ HorID : Factor w/ 9914 levels "P0000H01","P0000H02",..: 1 2 ..
## $ top : int 4 23 46 2 11 0 22 63 0 3 ...
## $ bottom: int 23 46 59 11 31 22 63 90 19 10 ...
## $ SOC : num NA NA NA NA NA ...
## $ BLD : num NA NA NA NA NA NA NA NA NA NA ...
## $ CRF : num 54 62 47 66 70 57 77 87 8 4 ...
## $ SAND : int 52 59 67 45 40 52 48 43 50 48 ...
## $ SILT : num 34 31 24 39 31 33 36 42 16 35 ...
## $ CLAY : num 14 11 8 16 28 15 16 16 34 17 ...
Soil Profile DB
dat <- read.csv(file = "data/horizons.csv")
# Explore the data
summary(dat)
## ProfID HorID top
## P2881 : 64 P2881H01: 64 Min. : 0.00
## P1481 : 32 P0434H02: 8 1st Qu.: 0.00
## P2096 : 32 P1286H01: 8 Median : 20.00
## P3623 : 32 P2056H01: 8 Mean : 27.48
## P2056 : 24 P2056H02: 8 3rd Qu.: 47.00
## P2142 : 24 P2056H03: 8 Max. :285.00
## (Other):10084 (Other) :10188
## bottom SOC BLD
## Min. : 1.00 Min. : 0.000 Min. :0.00
## 1st Qu.: 25.00 1st Qu.: 1.090 1st Qu.:1.40
## Median : 45.00 Median : 1.800 Median :1.54
## Mean : 55.82 Mean : 2.635 Mean :1.55
## 3rd Qu.: 80.00 3rd Qu.: 2.940 3rd Qu.:1.66
## Max. :295.00 Max. :306.000 Max. :2.93
## NA's :831 NA's :7845
Soil Profile DB
dat_sites <- read.csv(file = "data/site-level.csv")
# Explore the data
str(dat_sites)
## 'data.frame': 4118 obs. of 6 variables:
## $ X.1 : int 1 2 3 4 5 6 7 8 9 10 ...
## $ ProfID : Factor w/ 4118 levels "P0000","P0001",..: 1 2 3 ..
## $ soiltype : Factor w/ 58 levels "Albic Luvisol",..: 3 3 3 57..
## $ Land.Cover: int 25 24 25 26 26 27 27 27 22 23 ...
## $ X : num 20.8 20.8 20.8 20.8 20.8 ...
## $ Y : num 42 42 42 42 42 ...
Soil Profile DB
dat_sites <- read.csv(file = "data/site-level.csv")
# Explore the data
summary(dat_sites)
X.1 ProfID
Min. : 1 P0000 : 1
1st Qu.:1030 P0001 : 1
Median :2060 P0002 : 1
Mean :2060 P0003 : 1
3rd Qu.:3089 P0004 : 1
Max. :4118 P0005 : 1
(Other):4112
soiltype Land.Cover
Fluvisol :1206 Min. : 2.00
Mollic Fluvisol : 330 1st Qu.:12.00
Cambisol : 301 Median :19.00
Complex of Solonchak and Solonetz: 151 Mean :18.15
Mollic Vertic Gleysol : 150 3rd Qu.:23.00
(Other) :1917 Max. :41.00
NA's : 63
...
Completeness of data
to calculate soil organic carbon stocks,
# Estimate Organic Carbon Stock
# SOC (g.kg-1)
# BD ( kg/m3_
# Coarse fragments (%)
Bulk Density (BD)
BD=1.62−0.06∗OM - Saini (1966)
BD=1/(0.6268+0.0361∗OM) - Drew (1973)
BD=1.482−0.6786∗(logOM) - Jeffrey (1979)
BD=0.669+0.941∗e(−0,06∗OM) - Grigal et. al (1989)
BD=100/(OM/0.244+(100−OM))/MBD - Adams (1973)
BD=1/(0.564+0.0556∗OM)- Honeysett & Ratkowsky (1989)
MDB is the Mineral particle density,
R Function - BD Estimation
# Creating a function in R to estimate BLD using the SOC
# SOC is the soil organic carbon content in %
estimateBD <- function(SOC, method="Saini1996"){
OM <- SOC * 1.724
if(method=="Saini1996"){BD <- 1.62 - 0.06 * OM}
if(method=="Drew1973"){BD <- 1 / (0.6268 + 0.0361 * OM)}
if(method=="Jeffrey1979"){BD <- 1.482 - 0.6786 * (log(OM))}
if(method=="Grigal1989"){BD <- 0.669 + 0.941 * exp(1)^(-0.06 * OM)}
if(method=="Adams1973"){BD <- 100 / (OM /0.244 + (100 - OM)/2.65)}
if(method=="Honeyset_Ratkowsky1989"){BD <- 1/(0.564 + 0.0556 * OM)}
return(BD)
}
BD Estimation
# See the summary of values produced using the pedo-transfer
# function with one of the proposed methods.
summary(estimateBD(dat$SOC[is.na(dat$BLD)],
method="Honeyset_Ratkowsky1989"))
## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
## 0.0334 1.1599 1.3498 1.2972 1.4981 1.7730 729
# Fill NA's using the pedotransfer function:
dat$BLD[is.na(dat$BLD)] <- estimateBD(dat$SOC[is.na(dat$BLD)],
method="Grigal1989")
BD Estimation
# explore the results
hist(dat$BLD, col = 'light gray', breaks = 32)
Coarse Fragments
# summary of column CRF (Coarse Fragments) in the example data base
summary(dat$CRF)
## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
## 0.0 2.0 8.0 13.5 21.0 104.0 3360
# Convert NA's to 0
dat$CRF[is.na(dat$CRF)] <- 0
Measuring of coarse fragments is difficult and time consuming,
and therefore not part of the national soil inventories.
Coarse Fragments
hist(dat$CRF, col = "light gray")
DEPTH?
● Option 1: Soil sampling has already considered this depth: data
can be directly used for upscaling see “Upscaling Methods”
section)
● Option 2: Horizons or layers/depth classes are sampled; but
aggregation is needed over the 0-30 cm.
● Option 3: The target depth (0-30 cm) was not completely
covered by sampling e.g. only the A horizon or a topsoil layer
(e.g. 0-20 cm) has been sampled.
DEPTH?
For both options 2 and 3, additional processing is needed
(e.g. equal-area splines).
DEPTH?
For both options 2 and 3, transformation is needed using e.g. equal-area
splines. In the case of option 2, the use of equal-area splines was first
proposed by Ponce-Hernandez et al. (1986), and later tested against real
data (Bishop et al. 1999).
This technique is based on fitting continuous depth functions for
modelling the variability of soil properties with depth. Thus, it is
possible to convert soil profiles to standard depths, but also to fill gaps.
The equal-area spline function consists of a series of local quadratic
polynomials that join at ’knots’ located at the horizon boundaries
thereby the mean value of each horizon is maintained by the spline fit.
They are called equal-area splines because the area to the left of the
fitted spline curve is equal to the area to the right of the curve.
DEPTH?
In case of option 3 additional information on the
vertical distribution of carbon in the soils is
required for accurate recalculation from the
sampling depth to target depth, e.g. as was
shown by Bernoux et al. (1998).
In R environment, the easiest way to apply
equal-area splines is using the function
GSIF::mpspline from the R package GSIF (Hengl
2016, see section 4.3.2). For illustration, a
sample dataset has been used (see Chapter 5.).
This function requires data stored as
SoilProfileCollection (SPC) using package aqp.
Technical Steps - Equal area splines
The function GSIF::mpspline has several arguments.
One of the arguments is the lambda value mentioned
before. The proposed default value is 0.1. Another
argument for this function is the target standard
depths. The function produces spline-estimated values
at these depths. However, this function also produces
spline-estimated values at 1 cm increments.
Technical Steps - Equal area splines
Technical Steps - Equal area splines
# Load aqp package
library(aqp)
## This is aqp 1.15
##
## Attaching package: 'aqp'
# Promote to SoilProfileCollection
# The SoilProfileCollection is a object class in R
designed to
# handle soil profiles
depths(dat) <- ProfID ~ top + bottom
## Warning: converting IDs from factor to character
Technical Steps - Equal area splines
# Merge the soil horizons information with the site-
level
# information from dat_sites
site(dat) <- dat_sites
# Set spatial coordinates
coordinates(dat) <- ~ X + Y
# A summary of our SoilProfileCollection
dat
Technical Steps - Equal area splines
# A summary of our SoilProfileCollection
dat
## Object of class SoilProfileCollection
## Number of profiles: 4118
## Depth range: 5-295 cm
##
## Horizon attributes:
## ProfID HorID top bottom SOC BLD CRF SAND SILT CLAY
## 1 P0000 P0000H01 4 23 NA NA 54 52 34 14
## 2 P0000 P0000H02 23 46 NA NA 62 59 31 11
...
Technical Steps - Equal area splines
library(GSIF)
## Estimate 0-30 standard horizon using mass preserving splines
try(SOC <- mpspline(dat, 'SOC', d = t(c(0,30))))
try(BLD <- mpspline(dat, 'BLD', d = t(c(0,30))))
try(CRFVOL <- mpspline(dat, 'CRF', d = t(c(0,30))))
Technical Steps - Equal area splines
## Prepare final data frame
dat <- data.frame(id = dat@site$ProfID,
Y = dat@sp@coords[,2],
X = dat@sp@coords[,1],
SOC = SOC$var.std[,1],
BLD = BLD$var.std[,1],
CRFVOL = CRFVOL$var.std[,1])
dat <- dat[complete.cases(dat),]
## Take a look to the results
head(dat)
Stock Calculation
the estimation of organic carbon stock could be done using
GSIF package
# Estimate Organic Carbon Stock
# SOC must be in g/kg
# BLD in kg/m3
# CRF in percentage
OCSKGM <- OCSKGM(ORCDRC = dat$SOC, BLD = dat$BLD*1000,
CRFVOL = dat$CRFVOL, HSIZE = 30)
dat$OCSKGM <- OCSKGM
dat$meaERROR <- attr(OCSKGM,"measurementError")
dat <- dat[dat$OCSKGM>0,]
summary(dat)
## We can save our processed data as a table
write.csv(dat, "data/dataproc.csv")
Scenario 2 : Topsoil DB
dat <- read.csv(file = "data/auger.csv")
# Explore the data
str(dat)
summary(dat)
# Creating a function in R to estimate BLD using the SOC
# SOC is the soil organic carbon content in %
estimateBD <- function(SOC, method="Saini1996"){
OM <- SOC * 1.724
if(method=="Saini1996"){BD <- 1.62 - 0.06 * OM}
if(method=="Drew1973"){BD <- 1 / (0.6268 + 0.0361 * OM)}
if(method=="Jeffrey1979"){BD <- 1.482 - 0.6786 * (log(OM))}
if(method=="Grigal1989"){BD <- 0.669 + 0.941 * exp(1)^(-0.06 * OM)}
if(method=="Adams1973"){BD <- 100 / (OM /0.244 + (100 - OM)/2.65)}
if(method=="Honeyset_Ratkowsky1989"){BD <- 1/(0.564 + 0.0556 * OM)}
return(BD)
}
Data preparation for top soil or auger samples
Scenario 2 : Topsoil DB
# See the summary of values produced using the pedo-transfer
# function with one of the proposed methods.
summary(estimateBD(dat$SOC, method="Honeyset_Ratkowsky1989"))
# Estimate BLD using the pedotransfer function:
dat$BLD <- estimateBD(dat$SOC, method="Grigal1989")
# explore the results
boxplot(dat$BLD)
Bulk Density Estimation
Scenario 2 : Topsoil DB
# Remove points with NA's values
d
at <- dat[complete.cases(dat),]
## Take a look to the results
head(dat)
Remove NAs
Scenario 2 : Topsoil DB
# Estimate Organic Carbon Stock
# SOC must be in g/kg
# BLD in kg/m3
# CRF in percentage
OCSKGM <- OCSKGM(ORCDRC = dat$SOC, BLD = dat$BLD*1000, CRFVOL = 0,
HSIZE = 30)
SOC Stock Estimation
Scenario 2 : Topsoil DB
dat$OCSKGM <- OCSKGM
dat$meaERROR <- attr(OCSKGM,"measurementError")
dat <- dat[dat$OCSKGM>0,]
summary(dat)
## We can save our processed data as a table
write.csv(dat, "data/dataproc.csv")
Final bits..!
Next ...
Once we have standardised the SOC concentrations
to the standard depths we need to start thinking
about implementing a Digital Soil Mapping
framework in which we can generate predictions of
soil properties at the fixed depths at unvisited/non-
sampled sites.
Data Preparation HANDS-ON
SAMPLE TOPSOIL DATASET
https://goo.gl/32xLBJ
1. Make your dataset ready for modelling
a. Estimate Bulk Density Values
b. Calculate SOC Stocks for each location
c. Export your data for the further steps...
Data Preparation HANDS-ON
SAMPLE PROFILE DATASET
https://goo.gl/v1mWdU
1. Make your dataset ready for modelling
a. Estimate Bulk Density Values
b. Calculate SOC Stocks for each location
c. Use spline and recalculate SOC Stocks to 0-30 cm
d. Export your data for the further steps
Spline Tool (Windows)
Spline Tool V2.0
This tool can be alternatively used for modelling soil
attribute depth functions. The version v2.0
developed by CSIRO Land and Water. This
standalone tool has an easy-to-use graphical user
interface and allows user to estimate soil
properties for standard depth intervals using mass
preserving splines from input profiles with irregular
or non-contiguous depth intervals.
It is a prerequisite that the Microsoft .NET framework 4
must be installed prior to using the tool (download
standalone .NET framework 4).
Spline Tool V2.0
The Spline Tool uses comma delimited input text files (see
input.txt for formatting – depth must be in centimetres)
and generates cmsout.txt, stdout.txt and single.txt. Check
boxes on the settings tab allow the user to select which
output files to export. The spline tool currently inputs and
outputs one soil property (i.e. one of pH, clay content, etc)
only. The cmsout.txt file contains soil attribute values for
1cm intervals to a depth of 200cm.
The maximum depth of the output is limited by the
maximum input depth.
Spline Tool V2.0
The stdout.txt file contains soil attribute values
for the standard depth specified by
GlobalSoilMap.net as the default setting. The
default depths are: 0-5, 5-15, 15-30, 30-60, 60-
100, 100-200 cm. Custom depths ( GSOCMap
mandatory depth- 30 cm) can assigned from the
settings tab.
Spline Tool V2.0
Installation
To install the Spline Tool simply extract the .zip
content into a new folder.
http://www.asris.csiro.au/downloads/GSM/SplineTool_v2.zip
https://goo.gl/7XRQ7O
or
Spline Tool V2.0
Installation
To install the Spline Tool simply extract the .zip
content into a new folder.
http://www.asris.csiro.au/downloads/GSM/SplineTool_v2.zip
Spline Tool V2.0
Spline Tool V2.0
Spline Tool V2.0
Data Preparation
The Spline Tool uses comma delimited input text
files (see input.txt for formatting – depth must be
in centimetres)
Data Preparation
The Spline Tool uses comma delimited input text
files (see input.txt for formatting – depth must be
in centimetres)
Spline Tool V2.0
Spline Tool V2.0
Spline Tool V2.0
Spline Tool V2.0

Más contenido relacionado

La actualidad más candente

Remote Sensing: Overlay Analysis
Remote Sensing: Overlay AnalysisRemote Sensing: Overlay Analysis
Remote Sensing: Overlay AnalysisKamlesh Kumar
 
Digital Soil Mapping–Capacity Building Course- Introduction
Digital Soil Mapping–Capacity Building Course- IntroductionDigital Soil Mapping–Capacity Building Course- Introduction
Digital Soil Mapping–Capacity Building Course- IntroductionFAO
 
soil_mechanics_lecture_slides
soil_mechanics_lecture_slidessoil_mechanics_lecture_slides
soil_mechanics_lecture_slidesMahendra Gattu
 
Using R to Visualize Spatial Data: R as GIS - Guy Lansley
Using R to Visualize Spatial Data: R as GIS - Guy LansleyUsing R to Visualize Spatial Data: R as GIS - Guy Lansley
Using R to Visualize Spatial Data: R as GIS - Guy LansleyGuy Lansley
 
Digital Soil Mapping/ Pedomterics
Digital Soil Mapping/ Pedomterics Digital Soil Mapping/ Pedomterics
Digital Soil Mapping/ Pedomterics Soils FAO-GSP
 
3. salt affcted soil.pptx
3. salt affcted soil.pptx3. salt affcted soil.pptx
3. salt affcted soil.pptxfabmovieKhatri
 
4 clay minerals and soil structure
4 clay minerals and soil structure4 clay minerals and soil structure
4 clay minerals and soil structureSaurabh Kumar
 
Identification of dispersive soils
Identification of dispersive soilsIdentification of dispersive soils
Identification of dispersive soilsRizwan Samor
 
Supervised Classification
Supervised ClassificationSupervised Classification
Supervised ClassificationChad Yowler
 
Watershed Delineation in ArcGIS
Watershed Delineation in ArcGISWatershed Delineation in ArcGIS
Watershed Delineation in ArcGISArthur Green
 
Classification of soil
Classification of soilClassification of soil
Classification of soilKavin Raval
 
ASSESSMENT OF LIQUEFACTION POTENTIAL OF SOIL USING MULTI-LINEAR REGRESSION MO...
ASSESSMENT OF LIQUEFACTION POTENTIAL OF SOIL USING MULTI-LINEAR REGRESSION MO...ASSESSMENT OF LIQUEFACTION POTENTIAL OF SOIL USING MULTI-LINEAR REGRESSION MO...
ASSESSMENT OF LIQUEFACTION POTENTIAL OF SOIL USING MULTI-LINEAR REGRESSION MO...IAEME Publication
 
Data base management system
Data base management systemData base management system
Data base management systemPramoda Raj
 
Raster data analysis
Raster data analysisRaster data analysis
Raster data analysisAbdul Raziq
 

La actualidad más candente (20)

Remote Sensing: Overlay Analysis
Remote Sensing: Overlay AnalysisRemote Sensing: Overlay Analysis
Remote Sensing: Overlay Analysis
 
Digital Soil Mapping–Capacity Building Course- Introduction
Digital Soil Mapping–Capacity Building Course- IntroductionDigital Soil Mapping–Capacity Building Course- Introduction
Digital Soil Mapping–Capacity Building Course- Introduction
 
soil_mechanics_lecture_slides
soil_mechanics_lecture_slidessoil_mechanics_lecture_slides
soil_mechanics_lecture_slides
 
Air Quality Mapping Using GIS
Air Quality Mapping Using GISAir Quality Mapping Using GIS
Air Quality Mapping Using GIS
 
Using R to Visualize Spatial Data: R as GIS - Guy Lansley
Using R to Visualize Spatial Data: R as GIS - Guy LansleyUsing R to Visualize Spatial Data: R as GIS - Guy Lansley
Using R to Visualize Spatial Data: R as GIS - Guy Lansley
 
Classification of soil
Classification of soilClassification of soil
Classification of soil
 
Digital Soil Mapping/ Pedomterics
Digital Soil Mapping/ Pedomterics Digital Soil Mapping/ Pedomterics
Digital Soil Mapping/ Pedomterics
 
SOIL CARBON DYNAMICS UNDER INTENSIVE CROPPING SYSTEM
SOIL  CARBON  DYNAMICS  UNDER  INTENSIVE  CROPPING  SYSTEMSOIL  CARBON  DYNAMICS  UNDER  INTENSIVE  CROPPING  SYSTEM
SOIL CARBON DYNAMICS UNDER INTENSIVE CROPPING SYSTEM
 
3. salt affcted soil.pptx
3. salt affcted soil.pptx3. salt affcted soil.pptx
3. salt affcted soil.pptx
 
4 clay minerals and soil structure
4 clay minerals and soil structure4 clay minerals and soil structure
4 clay minerals and soil structure
 
Identification of dispersive soils
Identification of dispersive soilsIdentification of dispersive soils
Identification of dispersive soils
 
Geological mapping
Geological mappingGeological mapping
Geological mapping
 
Spatial Database Systems
Spatial Database SystemsSpatial Database Systems
Spatial Database Systems
 
Land cover and Land Use
Land cover and Land UseLand cover and Land Use
Land cover and Land Use
 
Supervised Classification
Supervised ClassificationSupervised Classification
Supervised Classification
 
Watershed Delineation in ArcGIS
Watershed Delineation in ArcGISWatershed Delineation in ArcGIS
Watershed Delineation in ArcGIS
 
Classification of soil
Classification of soilClassification of soil
Classification of soil
 
ASSESSMENT OF LIQUEFACTION POTENTIAL OF SOIL USING MULTI-LINEAR REGRESSION MO...
ASSESSMENT OF LIQUEFACTION POTENTIAL OF SOIL USING MULTI-LINEAR REGRESSION MO...ASSESSMENT OF LIQUEFACTION POTENTIAL OF SOIL USING MULTI-LINEAR REGRESSION MO...
ASSESSMENT OF LIQUEFACTION POTENTIAL OF SOIL USING MULTI-LINEAR REGRESSION MO...
 
Data base management system
Data base management systemData base management system
Data base management system
 
Raster data analysis
Raster data analysisRaster data analysis
Raster data analysis
 

Similar a Data preparation, depth function

R getting spatial
R getting spatialR getting spatial
R getting spatialFAO
 
10. Getting Spatial
10. Getting Spatial10. Getting Spatial
10. Getting SpatialFAO
 
[Hydro]geological analysis using open source app: case Cikapundung River
[Hydro]geological analysis using open source app: case Cikapundung River[Hydro]geological analysis using open source app: case Cikapundung River
[Hydro]geological analysis using open source app: case Cikapundung RiverDasapta Erwin Irawan
 
Accounting Greenhouse Gas Emissions for Irish Agriculture: Known/Unknown - M....
Accounting Greenhouse Gas Emissions for Irish Agriculture: Known/Unknown - M....Accounting Greenhouse Gas Emissions for Irish Agriculture: Known/Unknown - M....
Accounting Greenhouse Gas Emissions for Irish Agriculture: Known/Unknown - M....Environmental Protection Agency, Ireland
 
Data preparation covariates
Data preparation covariatesData preparation covariates
Data preparation covariatesFAO
 
Distributed Query Processing
Distributed Query ProcessingDistributed Query Processing
Distributed Query ProcessingMythili Kannan
 
R Spatial Analysis using SP
R Spatial Analysis using SPR Spatial Analysis using SP
R Spatial Analysis using SPtjagger
 
GEOtop 0.9375 Lavagna Distributed Hydrological Model GEOFRAME hydrology
GEOtop 0.9375 Lavagna  Distributed Hydrological Model GEOFRAME hydrologyGEOtop 0.9375 Lavagna  Distributed Hydrological Model GEOFRAME hydrology
GEOtop 0.9375 Lavagna Distributed Hydrological Model GEOFRAME hydrologyRiccardo Rigon
 
R data-import, data-export
R data-import, data-exportR data-import, data-export
R data-import, data-exportFAO
 
using query with MI
using query with MIusing query with MI
using query with MIVirak Sou
 
Report Normalization documents
Report Normalization documentsReport Normalization documents
Report Normalization documentsWakil Kumar
 
Better Visualization of Trips through Agglomerative Clustering
Better Visualization of  Trips through     Agglomerative ClusteringBetter Visualization of  Trips through     Agglomerative Clustering
Better Visualization of Trips through Agglomerative ClusteringAnbarasan S
 

Similar a Data preparation, depth function (20)

R getting spatial
R getting spatialR getting spatial
R getting spatial
 
10. Getting Spatial
10. Getting Spatial10. Getting Spatial
10. Getting Spatial
 
[Hydro]geological analysis using open source app: case Cikapundung River
[Hydro]geological analysis using open source app: case Cikapundung River[Hydro]geological analysis using open source app: case Cikapundung River
[Hydro]geological analysis using open source app: case Cikapundung River
 
10. R getting spatial
10.  R getting spatial10.  R getting spatial
10. R getting spatial
 
Accounting Greenhouse Gas Emissions for Irish Agriculture: Known/Unknown - M....
Accounting Greenhouse Gas Emissions for Irish Agriculture: Known/Unknown - M....Accounting Greenhouse Gas Emissions for Irish Agriculture: Known/Unknown - M....
Accounting Greenhouse Gas Emissions for Irish Agriculture: Known/Unknown - M....
 
Statistic report
Statistic reportStatistic report
Statistic report
 
Data preparation covariates
Data preparation covariatesData preparation covariates
Data preparation covariates
 
Distributed Query Processing
Distributed Query ProcessingDistributed Query Processing
Distributed Query Processing
 
WATERSHED ANALYSIS .pptx
WATERSHED ANALYSIS .pptxWATERSHED ANALYSIS .pptx
WATERSHED ANALYSIS .pptx
 
R Spatial Analysis using SP
R Spatial Analysis using SPR Spatial Analysis using SP
R Spatial Analysis using SP
 
GEOtop 0.9375 Lavagna Distributed Hydrological Model GEOFRAME hydrology
GEOtop 0.9375 Lavagna  Distributed Hydrological Model GEOFRAME hydrologyGEOtop 0.9375 Lavagna  Distributed Hydrological Model GEOFRAME hydrology
GEOtop 0.9375 Lavagna Distributed Hydrological Model GEOFRAME hydrology
 
FME to the Rescue
FME to the RescueFME to the Rescue
FME to the Rescue
 
Gis Concepts 5/5
Gis Concepts 5/5Gis Concepts 5/5
Gis Concepts 5/5
 
R data-import, data-export
R data-import, data-exportR data-import, data-export
R data-import, data-export
 
GIS data structure
GIS data structureGIS data structure
GIS data structure
 
Process Model
Process ModelProcess Model
Process Model
 
04 pig data operations
04 pig data operations04 pig data operations
04 pig data operations
 
using query with MI
using query with MIusing query with MI
using query with MI
 
Report Normalization documents
Report Normalization documentsReport Normalization documents
Report Normalization documents
 
Better Visualization of Trips through Agglomerative Clustering
Better Visualization of  Trips through     Agglomerative ClusteringBetter Visualization of  Trips through     Agglomerative Clustering
Better Visualization of Trips through Agglomerative Clustering
 

Más de FAO

Nigeria
NigeriaNigeria
NigeriaFAO
 
Niger
NigerNiger
NigerFAO
 
Namibia
NamibiaNamibia
NamibiaFAO
 
Mozambique
MozambiqueMozambique
MozambiqueFAO
 
Zimbabwe takesure
Zimbabwe takesureZimbabwe takesure
Zimbabwe takesureFAO
 
Zimbabwe
ZimbabweZimbabwe
ZimbabweFAO
 
Zambia
ZambiaZambia
ZambiaFAO
 
Togo
TogoTogo
TogoFAO
 
Tanzania
TanzaniaTanzania
TanzaniaFAO
 
Spal presentation
Spal presentationSpal presentation
Spal presentationFAO
 
Rwanda
RwandaRwanda
RwandaFAO
 
Nigeria uponi
Nigeria uponiNigeria uponi
Nigeria uponiFAO
 
The multi-faced role of soil in the NENA regions (part 2)
The multi-faced role of soil in the NENA regions (part 2)The multi-faced role of soil in the NENA regions (part 2)
The multi-faced role of soil in the NENA regions (part 2)FAO
 
The multi-faced role of soil in the NENA regions (part 1)
The multi-faced role of soil in the NENA regions (part 1)The multi-faced role of soil in the NENA regions (part 1)
The multi-faced role of soil in the NENA regions (part 1)FAO
 
Agenda of the launch of the soil policy brief at the Land&Water Days
Agenda of the launch of the soil policy brief at the Land&Water DaysAgenda of the launch of the soil policy brief at the Land&Water Days
Agenda of the launch of the soil policy brief at the Land&Water DaysFAO
 
Agenda of the 5th NENA Soil Partnership meeting
Agenda of the 5th NENA Soil Partnership meetingAgenda of the 5th NENA Soil Partnership meeting
Agenda of the 5th NENA Soil Partnership meetingFAO
 
The Voluntary Guidelines for Sustainable Soil Management
The Voluntary Guidelines for Sustainable Soil ManagementThe Voluntary Guidelines for Sustainable Soil Management
The Voluntary Guidelines for Sustainable Soil ManagementFAO
 
GLOSOLAN - Mission, status and way forward
GLOSOLAN - Mission, status and way forwardGLOSOLAN - Mission, status and way forward
GLOSOLAN - Mission, status and way forwardFAO
 
Towards a Global Soil Information System (GLOSIS)
Towards a Global Soil Information System (GLOSIS)Towards a Global Soil Information System (GLOSIS)
Towards a Global Soil Information System (GLOSIS)FAO
 
GSP developments of regional interest in 2019
GSP developments of regional interest in 2019GSP developments of regional interest in 2019
GSP developments of regional interest in 2019FAO
 

Más de FAO (20)

Nigeria
NigeriaNigeria
Nigeria
 
Niger
NigerNiger
Niger
 
Namibia
NamibiaNamibia
Namibia
 
Mozambique
MozambiqueMozambique
Mozambique
 
Zimbabwe takesure
Zimbabwe takesureZimbabwe takesure
Zimbabwe takesure
 
Zimbabwe
ZimbabweZimbabwe
Zimbabwe
 
Zambia
ZambiaZambia
Zambia
 
Togo
TogoTogo
Togo
 
Tanzania
TanzaniaTanzania
Tanzania
 
Spal presentation
Spal presentationSpal presentation
Spal presentation
 
Rwanda
RwandaRwanda
Rwanda
 
Nigeria uponi
Nigeria uponiNigeria uponi
Nigeria uponi
 
The multi-faced role of soil in the NENA regions (part 2)
The multi-faced role of soil in the NENA regions (part 2)The multi-faced role of soil in the NENA regions (part 2)
The multi-faced role of soil in the NENA regions (part 2)
 
The multi-faced role of soil in the NENA regions (part 1)
The multi-faced role of soil in the NENA regions (part 1)The multi-faced role of soil in the NENA regions (part 1)
The multi-faced role of soil in the NENA regions (part 1)
 
Agenda of the launch of the soil policy brief at the Land&Water Days
Agenda of the launch of the soil policy brief at the Land&Water DaysAgenda of the launch of the soil policy brief at the Land&Water Days
Agenda of the launch of the soil policy brief at the Land&Water Days
 
Agenda of the 5th NENA Soil Partnership meeting
Agenda of the 5th NENA Soil Partnership meetingAgenda of the 5th NENA Soil Partnership meeting
Agenda of the 5th NENA Soil Partnership meeting
 
The Voluntary Guidelines for Sustainable Soil Management
The Voluntary Guidelines for Sustainable Soil ManagementThe Voluntary Guidelines for Sustainable Soil Management
The Voluntary Guidelines for Sustainable Soil Management
 
GLOSOLAN - Mission, status and way forward
GLOSOLAN - Mission, status and way forwardGLOSOLAN - Mission, status and way forward
GLOSOLAN - Mission, status and way forward
 
Towards a Global Soil Information System (GLOSIS)
Towards a Global Soil Information System (GLOSIS)Towards a Global Soil Information System (GLOSIS)
Towards a Global Soil Information System (GLOSIS)
 
GSP developments of regional interest in 2019
GSP developments of regional interest in 2019GSP developments of regional interest in 2019
GSP developments of regional interest in 2019
 

Último

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Último (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Data preparation, depth function

  • 1. FAO- Global Soil Partnership Training on Digital Soil Organic Carbon Mapping 20-24 January 2018 Tehran/Iran Yusuf YIGINI, PhD - FAO, Land and Water Division (CBL) Guillermo Federico Olmedo, PhD - FAO, Land and Water Division (CBL)
  • 3. SOIL Databases Soil Profile Database and Topsoil Database
  • 4. Scenario 1: SOIL Profile DB Most commonly, soil are described as vertical profiles using soil pits . Soil profiles are described using macro-morphological properties. These properties can be assessed in the field without analysis by making a field inventory or land evaluation. For additional quantitative analysis, soils are then sampled by genetic horizon or by depth class.
  • 5. SOIL Profile DB In order to process and evaluate soil information from field assessments, soil profile and analytical information needs to be stored in a database. This can be a set of simple Excel Spreadsheets, or a relational or object-oriented database management system. When working in R, SoilProfileCollections from the R ‘aqp’ package could be a useful tool.
  • 6. Data Organisation Table-1: SITE LEVEL DATA stores site-level data, which describe the location of the soil description and/or sampling site: spatial coordinates, landscape attributes such as slope gradient and slope form, soil class, land cover type, rock type etc. In this table every row should hold a single soil profile. One column, usually the first one, should be the soil profile’s unique identifier. Using the latter, soil information can be easily linked from one table to another.
  • 7. Data Organisation Table-1: SITE LEVEL DATA stores site-level data, which describe the location of the soil description and/or sampling site: spatial coordinates, landscape attributes such as slope gradient and slope form, soil class, land cover type, rock type etc. In this table every row should hold a single soil profile. One column, usually the first one, should be the soil profile’s unique identifier. Using the latter, soil information can be easily linked from one table to another.
  • 8. Data Organisation TABLE-2: Horizon Level Data stores information from the soil description, such as horizon name, horizon thickness, organic matter content, carbonate content, soil color, laboratory soil analysis, etc. The first column contains the soil profile’s unique identifier. It is important to include the upper and lower limits for each soil layer; in case the sampling strategy deviates from soil layers/soil horizons, the upper and lower depth of the sampling locations should be specified if possible. This information is needed for modelling soil properties over the soil profile.
  • 9. Data Organisation TABLE-2: Horizon Level Data stores information from the soil description, such as horizon name, horizon thickness, organic matter content, carbonate content, soil color, laboratory soil analysis, etc. The first column contains the soil profile’s unique identifier. It is important to include the upper and lower limits for each soil layer; in case the sampling strategy deviates from soil layers/soil horizons, the upper and lower depth of the sampling locations should be specified if possible. This information is needed for modelling soil properties over the soil profile.
  • 10. Soil Profile DB dat <- read.csv(file = "data/horizons.csv") # Explore the data str(dat) ## 'data.frame': 10292 obs. of 10 variables: ## $ ProfID: Factor w/ 4118 levels "P0000","P0001",..: 1 1 1 2 2 .. ## $ HorID : Factor w/ 9914 levels "P0000H01","P0000H02",..: 1 2 .. ## $ top : int 4 23 46 2 11 0 22 63 0 3 ... ## $ bottom: int 23 46 59 11 31 22 63 90 19 10 ... ## $ SOC : num NA NA NA NA NA ... ## $ BLD : num NA NA NA NA NA NA NA NA NA NA ... ## $ CRF : num 54 62 47 66 70 57 77 87 8 4 ... ## $ SAND : int 52 59 67 45 40 52 48 43 50 48 ... ## $ SILT : num 34 31 24 39 31 33 36 42 16 35 ... ## $ CLAY : num 14 11 8 16 28 15 16 16 34 17 ...
  • 11. Soil Profile DB dat <- read.csv(file = "data/horizons.csv") # Explore the data summary(dat) ## ProfID HorID top ## P2881 : 64 P2881H01: 64 Min. : 0.00 ## P1481 : 32 P0434H02: 8 1st Qu.: 0.00 ## P2096 : 32 P1286H01: 8 Median : 20.00 ## P3623 : 32 P2056H01: 8 Mean : 27.48 ## P2056 : 24 P2056H02: 8 3rd Qu.: 47.00 ## P2142 : 24 P2056H03: 8 Max. :285.00 ## (Other):10084 (Other) :10188 ## bottom SOC BLD ## Min. : 1.00 Min. : 0.000 Min. :0.00 ## 1st Qu.: 25.00 1st Qu.: 1.090 1st Qu.:1.40 ## Median : 45.00 Median : 1.800 Median :1.54 ## Mean : 55.82 Mean : 2.635 Mean :1.55 ## 3rd Qu.: 80.00 3rd Qu.: 2.940 3rd Qu.:1.66 ## Max. :295.00 Max. :306.000 Max. :2.93 ## NA's :831 NA's :7845
  • 12. Soil Profile DB dat_sites <- read.csv(file = "data/site-level.csv") # Explore the data str(dat_sites) ## 'data.frame': 4118 obs. of 6 variables: ## $ X.1 : int 1 2 3 4 5 6 7 8 9 10 ... ## $ ProfID : Factor w/ 4118 levels "P0000","P0001",..: 1 2 3 .. ## $ soiltype : Factor w/ 58 levels "Albic Luvisol",..: 3 3 3 57.. ## $ Land.Cover: int 25 24 25 26 26 27 27 27 22 23 ... ## $ X : num 20.8 20.8 20.8 20.8 20.8 ... ## $ Y : num 42 42 42 42 42 ...
  • 13. Soil Profile DB dat_sites <- read.csv(file = "data/site-level.csv") # Explore the data summary(dat_sites) X.1 ProfID Min. : 1 P0000 : 1 1st Qu.:1030 P0001 : 1 Median :2060 P0002 : 1 Mean :2060 P0003 : 1 3rd Qu.:3089 P0004 : 1 Max. :4118 P0005 : 1 (Other):4112 soiltype Land.Cover Fluvisol :1206 Min. : 2.00 Mollic Fluvisol : 330 1st Qu.:12.00 Cambisol : 301 Median :19.00 Complex of Solonchak and Solonetz: 151 Mean :18.15 Mollic Vertic Gleysol : 150 3rd Qu.:23.00 (Other) :1917 Max. :41.00 NA's : 63 ...
  • 14. Completeness of data to calculate soil organic carbon stocks, # Estimate Organic Carbon Stock # SOC (g.kg-1) # BD ( kg/m3_ # Coarse fragments (%)
  • 15. Bulk Density (BD) BD=1.62−0.06∗OM - Saini (1966) BD=1/(0.6268+0.0361∗OM) - Drew (1973) BD=1.482−0.6786∗(logOM) - Jeffrey (1979) BD=0.669+0.941∗e(−0,06∗OM) - Grigal et. al (1989) BD=100/(OM/0.244+(100−OM))/MBD - Adams (1973) BD=1/(0.564+0.0556∗OM)- Honeysett & Ratkowsky (1989) MDB is the Mineral particle density,
  • 16. R Function - BD Estimation # Creating a function in R to estimate BLD using the SOC # SOC is the soil organic carbon content in % estimateBD <- function(SOC, method="Saini1996"){ OM <- SOC * 1.724 if(method=="Saini1996"){BD <- 1.62 - 0.06 * OM} if(method=="Drew1973"){BD <- 1 / (0.6268 + 0.0361 * OM)} if(method=="Jeffrey1979"){BD <- 1.482 - 0.6786 * (log(OM))} if(method=="Grigal1989"){BD <- 0.669 + 0.941 * exp(1)^(-0.06 * OM)} if(method=="Adams1973"){BD <- 100 / (OM /0.244 + (100 - OM)/2.65)} if(method=="Honeyset_Ratkowsky1989"){BD <- 1/(0.564 + 0.0556 * OM)} return(BD) }
  • 17. BD Estimation # See the summary of values produced using the pedo-transfer # function with one of the proposed methods. summary(estimateBD(dat$SOC[is.na(dat$BLD)], method="Honeyset_Ratkowsky1989")) ## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's ## 0.0334 1.1599 1.3498 1.2972 1.4981 1.7730 729 # Fill NA's using the pedotransfer function: dat$BLD[is.na(dat$BLD)] <- estimateBD(dat$SOC[is.na(dat$BLD)], method="Grigal1989")
  • 18. BD Estimation # explore the results hist(dat$BLD, col = 'light gray', breaks = 32)
  • 19. Coarse Fragments # summary of column CRF (Coarse Fragments) in the example data base summary(dat$CRF) ## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's ## 0.0 2.0 8.0 13.5 21.0 104.0 3360 # Convert NA's to 0 dat$CRF[is.na(dat$CRF)] <- 0 Measuring of coarse fragments is difficult and time consuming, and therefore not part of the national soil inventories.
  • 21. DEPTH? ● Option 1: Soil sampling has already considered this depth: data can be directly used for upscaling see “Upscaling Methods” section) ● Option 2: Horizons or layers/depth classes are sampled; but aggregation is needed over the 0-30 cm. ● Option 3: The target depth (0-30 cm) was not completely covered by sampling e.g. only the A horizon or a topsoil layer (e.g. 0-20 cm) has been sampled.
  • 22. DEPTH? For both options 2 and 3, additional processing is needed (e.g. equal-area splines).
  • 23. DEPTH? For both options 2 and 3, transformation is needed using e.g. equal-area splines. In the case of option 2, the use of equal-area splines was first proposed by Ponce-Hernandez et al. (1986), and later tested against real data (Bishop et al. 1999). This technique is based on fitting continuous depth functions for modelling the variability of soil properties with depth. Thus, it is possible to convert soil profiles to standard depths, but also to fill gaps. The equal-area spline function consists of a series of local quadratic polynomials that join at ’knots’ located at the horizon boundaries thereby the mean value of each horizon is maintained by the spline fit. They are called equal-area splines because the area to the left of the fitted spline curve is equal to the area to the right of the curve.
  • 24. DEPTH? In case of option 3 additional information on the vertical distribution of carbon in the soils is required for accurate recalculation from the sampling depth to target depth, e.g. as was shown by Bernoux et al. (1998).
  • 25. In R environment, the easiest way to apply equal-area splines is using the function GSIF::mpspline from the R package GSIF (Hengl 2016, see section 4.3.2). For illustration, a sample dataset has been used (see Chapter 5.). This function requires data stored as SoilProfileCollection (SPC) using package aqp. Technical Steps - Equal area splines
  • 26. The function GSIF::mpspline has several arguments. One of the arguments is the lambda value mentioned before. The proposed default value is 0.1. Another argument for this function is the target standard depths. The function produces spline-estimated values at these depths. However, this function also produces spline-estimated values at 1 cm increments. Technical Steps - Equal area splines
  • 27. Technical Steps - Equal area splines # Load aqp package library(aqp) ## This is aqp 1.15 ## ## Attaching package: 'aqp' # Promote to SoilProfileCollection # The SoilProfileCollection is a object class in R designed to # handle soil profiles depths(dat) <- ProfID ~ top + bottom ## Warning: converting IDs from factor to character
  • 28. Technical Steps - Equal area splines # Merge the soil horizons information with the site- level # information from dat_sites site(dat) <- dat_sites # Set spatial coordinates coordinates(dat) <- ~ X + Y # A summary of our SoilProfileCollection dat
  • 29. Technical Steps - Equal area splines # A summary of our SoilProfileCollection dat ## Object of class SoilProfileCollection ## Number of profiles: 4118 ## Depth range: 5-295 cm ## ## Horizon attributes: ## ProfID HorID top bottom SOC BLD CRF SAND SILT CLAY ## 1 P0000 P0000H01 4 23 NA NA 54 52 34 14 ## 2 P0000 P0000H02 23 46 NA NA 62 59 31 11 ...
  • 30. Technical Steps - Equal area splines library(GSIF) ## Estimate 0-30 standard horizon using mass preserving splines try(SOC <- mpspline(dat, 'SOC', d = t(c(0,30)))) try(BLD <- mpspline(dat, 'BLD', d = t(c(0,30)))) try(CRFVOL <- mpspline(dat, 'CRF', d = t(c(0,30))))
  • 31. Technical Steps - Equal area splines ## Prepare final data frame dat <- data.frame(id = dat@site$ProfID, Y = dat@sp@coords[,2], X = dat@sp@coords[,1], SOC = SOC$var.std[,1], BLD = BLD$var.std[,1], CRFVOL = CRFVOL$var.std[,1]) dat <- dat[complete.cases(dat),] ## Take a look to the results head(dat)
  • 32. Stock Calculation the estimation of organic carbon stock could be done using GSIF package # Estimate Organic Carbon Stock # SOC must be in g/kg # BLD in kg/m3 # CRF in percentage OCSKGM <- OCSKGM(ORCDRC = dat$SOC, BLD = dat$BLD*1000, CRFVOL = dat$CRFVOL, HSIZE = 30) dat$OCSKGM <- OCSKGM dat$meaERROR <- attr(OCSKGM,"measurementError") dat <- dat[dat$OCSKGM>0,] summary(dat) ## We can save our processed data as a table write.csv(dat, "data/dataproc.csv")
  • 33. Scenario 2 : Topsoil DB dat <- read.csv(file = "data/auger.csv") # Explore the data str(dat) summary(dat) # Creating a function in R to estimate BLD using the SOC # SOC is the soil organic carbon content in % estimateBD <- function(SOC, method="Saini1996"){ OM <- SOC * 1.724 if(method=="Saini1996"){BD <- 1.62 - 0.06 * OM} if(method=="Drew1973"){BD <- 1 / (0.6268 + 0.0361 * OM)} if(method=="Jeffrey1979"){BD <- 1.482 - 0.6786 * (log(OM))} if(method=="Grigal1989"){BD <- 0.669 + 0.941 * exp(1)^(-0.06 * OM)} if(method=="Adams1973"){BD <- 100 / (OM /0.244 + (100 - OM)/2.65)} if(method=="Honeyset_Ratkowsky1989"){BD <- 1/(0.564 + 0.0556 * OM)} return(BD) } Data preparation for top soil or auger samples
  • 34. Scenario 2 : Topsoil DB # See the summary of values produced using the pedo-transfer # function with one of the proposed methods. summary(estimateBD(dat$SOC, method="Honeyset_Ratkowsky1989")) # Estimate BLD using the pedotransfer function: dat$BLD <- estimateBD(dat$SOC, method="Grigal1989") # explore the results boxplot(dat$BLD) Bulk Density Estimation
  • 35. Scenario 2 : Topsoil DB # Remove points with NA's values d at <- dat[complete.cases(dat),] ## Take a look to the results head(dat) Remove NAs
  • 36. Scenario 2 : Topsoil DB # Estimate Organic Carbon Stock # SOC must be in g/kg # BLD in kg/m3 # CRF in percentage OCSKGM <- OCSKGM(ORCDRC = dat$SOC, BLD = dat$BLD*1000, CRFVOL = 0, HSIZE = 30) SOC Stock Estimation
  • 37. Scenario 2 : Topsoil DB dat$OCSKGM <- OCSKGM dat$meaERROR <- attr(OCSKGM,"measurementError") dat <- dat[dat$OCSKGM>0,] summary(dat) ## We can save our processed data as a table write.csv(dat, "data/dataproc.csv") Final bits..!
  • 38. Next ... Once we have standardised the SOC concentrations to the standard depths we need to start thinking about implementing a Digital Soil Mapping framework in which we can generate predictions of soil properties at the fixed depths at unvisited/non- sampled sites.
  • 39. Data Preparation HANDS-ON SAMPLE TOPSOIL DATASET https://goo.gl/32xLBJ 1. Make your dataset ready for modelling a. Estimate Bulk Density Values b. Calculate SOC Stocks for each location c. Export your data for the further steps...
  • 40. Data Preparation HANDS-ON SAMPLE PROFILE DATASET https://goo.gl/v1mWdU 1. Make your dataset ready for modelling a. Estimate Bulk Density Values b. Calculate SOC Stocks for each location c. Use spline and recalculate SOC Stocks to 0-30 cm d. Export your data for the further steps
  • 42. Spline Tool V2.0 This tool can be alternatively used for modelling soil attribute depth functions. The version v2.0 developed by CSIRO Land and Water. This standalone tool has an easy-to-use graphical user interface and allows user to estimate soil properties for standard depth intervals using mass preserving splines from input profiles with irregular or non-contiguous depth intervals. It is a prerequisite that the Microsoft .NET framework 4 must be installed prior to using the tool (download standalone .NET framework 4).
  • 43. Spline Tool V2.0 The Spline Tool uses comma delimited input text files (see input.txt for formatting – depth must be in centimetres) and generates cmsout.txt, stdout.txt and single.txt. Check boxes on the settings tab allow the user to select which output files to export. The spline tool currently inputs and outputs one soil property (i.e. one of pH, clay content, etc) only. The cmsout.txt file contains soil attribute values for 1cm intervals to a depth of 200cm. The maximum depth of the output is limited by the maximum input depth.
  • 44. Spline Tool V2.0 The stdout.txt file contains soil attribute values for the standard depth specified by GlobalSoilMap.net as the default setting. The default depths are: 0-5, 5-15, 15-30, 30-60, 60- 100, 100-200 cm. Custom depths ( GSOCMap mandatory depth- 30 cm) can assigned from the settings tab.
  • 45. Spline Tool V2.0 Installation To install the Spline Tool simply extract the .zip content into a new folder. http://www.asris.csiro.au/downloads/GSM/SplineTool_v2.zip https://goo.gl/7XRQ7O or
  • 46. Spline Tool V2.0 Installation To install the Spline Tool simply extract the .zip content into a new folder. http://www.asris.csiro.au/downloads/GSM/SplineTool_v2.zip
  • 50. Data Preparation The Spline Tool uses comma delimited input text files (see input.txt for formatting – depth must be in centimetres)
  • 51. Data Preparation The Spline Tool uses comma delimited input text files (see input.txt for formatting – depth must be in centimetres)