Learn R Programming

slga

slga offers the ability to download geographic subsets of raster data from the Soil and Landscape Grid of Australia. The Grid was generated in 2014 from a compilation of Australian soil and landscape data and contains a set of modelled soil attributes that meet the globalsoilmap.net specification.

Also available for download are a set of terrain and climate covariates considered useful in soils modelling. These are primarily derived from GeoScience Australia’s SRTM DEM products.

All products are returned in GDA94 long/lat (EPSG:4283) and have a cell resolution of 3" (roughly 90m).

Installation

Install from CRAN with

install.packages('slga')

Install from github with

devtools::install_github("obrl-soil/slga")

How it works

slga uses the WCS endpoints provided by the SLGA to access data. The package endeavours to return requested products as simple subsets of the parent dataset, with no hidden server-side resampling.

Example

library(raster)
library(slga)
library(ggplot2)
# get surface clay content for King Island
aoi <- c(152.95, -27.55, 153.07, -27.45)
bne_surface_clay <- get_soils_data(product = 'NAT', attribute = 'CLY',
                                   component = 'all', depth = 1,
                                   aoi = aoi, write_out = FALSE)

See the package vignette for further detail.

Warning!

While it is possible to download data for large extents using this package, please be aware that the data volume can get large, and it will not be very quick or efficient. If you want to obtain SLGA data for a significant proportion of Australia, you may prefer to access the full datasets via the CSIRO Data Access Portal. Note that 1" (30m) versions of the slga terrain attributes are also available on that portal.

Asking for help

If you get stuck using this package or the data it provides, please post a question on Stack Overflow (for internet connectivity problems) or the GIS StackExchange (for raster/geospatial issues). This means that others can benefit from the discussion, and more people are available to help you. You’re welcome to ping me in a comment on those websites or on twitter (@obrl_soil) to get my attention.


Copy Link

Version

Install

install.packages('slga')

Monthly Downloads

16

Version

1.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Lauren O'Brien

Last Published

June 12th, 2021

Functions in slga (1.2.0)

get_slga_data

GET soil or landscape data
slga-package

slga: Data Access Tools for the Soil and Landscape Grid of Australia
get_soils_data

Get SLGA soils data
make_lscape_url

Make SLGA Landscape URL
get_soils_raster

Download single SLGA soils raster subset
metadata_soils

download SLGA soils metadata
get_soils_point

Get SLGA point data
metadata_lscape

download SLGA landscape metadata
make_soils_url

Make SLGA WCS URL
make_circ_mask

Make a circular mask
make_point_url

Make point URL
validate_poi

bbox from center point
validate_aoi

Validate AOI
tidy_soils_data

Tidy soils rasters
slga_attribute_info

SLGA Attribute Information
tidy_lscape_data

tidy landscape parameter rasters
slga_filenamer

Filename generator
slga_product_info

SLGA Product Information
aoi_tile

Tile AOI
get_lscape_point

Get SLGA point landscape data
aoi_overlaps

Check AOI overlaps
check_avail

Validate soils product/attribute combination
bne_surface_clay

Central Brisbane surface clay content
aoi_transform

Transform an AOI's CRS
get_lscape_data

Get SLGA landscape data
aoi_convert

Convert AOI
aoi_align

Align AOI to product