Shapefile to Soil Data owl


Rational

Option One

Retrieve soil data geoTIFFs from SGLA and extract data contained within shapefile elements.

Data will be: Available Water Capacity, Coarse Fragments, Clay Percentage, Total Nitrogen Percentage, pH CaCl2, Total Phosphorus Percentage, Silt Percentage, Sand Percentage, Organic Carbon Percentage, Available Phosphorus

This is Australia specific data.

Option Two

Retrieve soil data from DPIRD-077 dataset: Dominant soil groups - Highest probability.

Available on dataWA: DPIRD077

This is W.A. specific data.

Option One

Input Files

Shapefile

Learn how to produce this shapefile from a CSV of sample names, latitudes and longitudes here: Site Locations to Shapefile

You will also need to get an API key from TERN to acsess the current data: SLGA Archive

Scripts Used

Github Repository of Scripts

Environmental Data / Soil - SGLA

  1. download_soil.py
  2. shp_soil.py

Steps

1. Retrieving Soil Data

download_soil.py --apikey YOUR_API_KEY

Arguments

Outputs

2. Extract Soil Data from geoTIFF with shapefile elements

python shp_soil.py 'path/to/shapefile/file.shp' 'path/to/geoTIFF/folder/' ./

Arguments

Outputs

Option Two

Input Files

Shapefile

Learn how to produce this shapefile from a CSV of sample names, latitudes and longitudes here: Site Locations to Shapefile

Scripts Used

Github Repository of Scripts

Environmental Data / Soil Type - DPIRD077

  1. dpird-077.py

Steps

1. Retrieving Soil Type Data

Download geoTIFF and lookup table (as a CSV) of DPIRD077. Rename the lookup table lookup table - lookup.csv

Available on dataWA: DPIRD077

2. Extract Soil Data from geoTIFF with shapefile elements

python dpird-077.py 'path/to/shapefile/file.shp'

Arguments

Outputs