Skip to contents

Read "Soil Thickness for Australian Areas of Intensive Agriculture of Layer 1" data as a stars object.

Usage

read_topsoil_thickness_stars(x = NULL, ...)

Arguments

x

A file path providing the file with the data to be imported. The file is assumed to be unarchived (i.e., still zipped). This function does not provide any checking whether this function is the proper function for the provided file. Defaults to NULL, assuming that the file will be downloaded in the active R session.

...

Additional arguments passed to stars::st_as_stars(), for e.g., att if you wished to set the active category.

Value

A stars object of the "Soil Thickness for Australian Areas of Intensive Agriculture of Layer 1".

Note

This function converts a terra::rast() object internally rather than reading directly from a file.

See also

Examples

if (FALSE) { # interactive()
st_stars <- read_topsoil_thickness_stars()

plot(st_stars)
}