get_terrain: Get Terrain Products

View source: R/get.R

get_terrainR Documentation

Get Terrain Products

Description

This function takes the USGS NED (National Elevation Dataset) or SRTM (Shuttle Radar Topography Mission) and gets a handful of terrain indices. This is good for downloaded areas for further analysis or passing on for some quick stats.

Usage

get_terrain(
  aoi,
  method = "NED",
  param = "slope",
  mask = FALSE,
  m.low = NULL,
  m.high = NULL,
  az = 270,
  el = 45
)

Arguments

aoi

A sf object indicating the extent of the geom.

method

character indicating what method to use, e.g. 'NED', 'SRTM'.

param

character indicating terrain type, e.g. 'dem', 'FA', 'TWI', 'TRI', 'TPI', 'aspect', 'slope', 'cos', 'sin', 'hillshade', 'complete'.

mask

logical whether to mask out certain ranges

m.low

numeric low value for mask, e.g. greater than 'm.low'

m.high

numeric high value for mask, e.g. less than 'm.high'

az

numeric The illumination azimuth in degrees from north.

el

numeric The illumination elevation in degrees.

Value

A list of Earth Engine Objects and arguments.

Examples

## Not run: 
# Load Libraries

library(rgee)
ee_Initialize()
library(exploreRGEE)

# Bring in data
huc <- exploreRGEE::huc

# get terrain

twi <- get_terrain(huc, method = 'NED', param = 'TWI')

## End(Not run)

joshualerickson/exploreRGEE documentation built on May 9, 2022, 10:33 p.m.