extractTopo: Extract values from raster (DEM)

Description Usage Arguments Value

View source: R/extractValues.R

Description

Extract values from raster (DEM)

Usage

1
extractTopo(ls_dem, dt_ref, col_names = c("elevation", "slope"))

Arguments

ls_dem

a file name of DEM with 2 bands (elevation and slope in this order).

dt_ref

a dataframe of reference data for RF. This should contain column 'x', 'y', and 'date'. x and y should indicate locations in the same crs as Landsat or Sentinel. 'date' should indicate the timing of disturbance. If there is no disturbance at that location, use NA.

col_names

names of bands. Should be elevation and slope.

Value

a dataframe of data values for each location.


dulvrq/ddl8s1ts documentation built on May 2, 2021, 5:18 a.m.