extract_pixels: Extract pixel values of polygons from raster files

View source: R/calc_funs.R

extract_pixelsR Documentation

Extract pixel values of polygons from raster files

Description

This function extracts all pixel values within polygons based on a time series of rasters. Users are expected to specify the name vector of bands as well as a vector indicating the date for each raster.

Usage

extract_pixels(files = NULL, bands = NULL, times = NULL, aoi = NULL)

Arguments

files

A chachter vector indicating the raster files.

bands

A charachter vector indicating the names of bands for each raster files.

times

A charachter vector indicating the date for each raster file

aoi

An sf object of polygons for which to extract the pixel values

Value

A dataframe object with the extracted value amended by the metadata of the aoi object.

Author(s)

Darius Görgen (MapTailor Geospatial Consulting GbR) info@maptailor.net
Maintainer: MAPME-Initiative contact@mapme-initiative.org
Contact Person: Dr. Johannes Schielein
Copyright: MAPME-Initiative
License: GPL-3


mapme-initiative/mapme.vegetation documentation built on Feb. 10, 2023, 10:51 p.m.