extractParallel: Extract values from raster

Description Usage Arguments Value

View source: R/extractValues.R

Description

Extract values from L8, S1, or DEM at locations x and y.

Usage

1
2
3
4
5
6
7
extractParallel(
  ls_l8,
  l8_doys,
  dt_ref,
  col_names = paste0("B", 2:7),
  max_cores
)

Arguments

ls_l8

a file list of Landsat 8 or Sentinel-1. All files should have the same extent.

l8_doys

a list of julian day of Landsat 8 or Sentinel-1 (numeric). This should be the same order and length as ls_l8.

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. If L8, this should be B2, B3...B7. If S1, this should be VV and VH.

max_cores

numeric. Maximum numbers of cores used for parallel processing.

Value

a dataframe of data values for each location.


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