getDEM: Downloads and imports Geoscience Australia 9s DEM.

Description Usage Arguments Details Value See Also

View source: R/getDEM.R

Description

getDEM get Australian 9s DEM.

Usage

1
2
3
4
5
6
getDEM(
  workingFolder = getwd(),
  urlDEM = getURLs()$DEM,
  DEMfilename = "dem-9s.asc",
  keepFiles = F
)

Arguments

workingFolder

is the file path (as string) in which to download the zip file. The default is getwd().

urlDEM

URL to the folder containing the Geoscience Australia 9s DEM. The default is taken from getURLs()$DEM.

DEMfilename

is the file name for the DEM (as string). The default is 'dem-9s.asc'.

keepFiles

is a logical scalar to keep the downloaded zip file and extracted DEM ASCII file. The default is FALSE.

Details

getDEM downloads the Geoscience Australia 9 second DEM and then imports the grid.

The DEM is required for the calculation of evaportranspiration within extractCatchmentData. For details of the DEM see https://www.data.gov.au/dataset/geodata-9-second-dem-and-d8-digital-elevation-model-version-3-and-flow-direction-grid-2008

For an example of how to download the DEM see the vignette "Extract daily area weighted potential evapotranspiration (PET) and precipitation".

Value

A RasterLayer DEM for Asutralia.

See Also

extractCatchmentData for extracting catchment daily average and variance data.


AWAPer documentation built on Feb. 18, 2021, 1:06 a.m.