thyssenize: Calculate area weighted values for regions based on station...

Description Usage Arguments Value

View source: R/thyssenize.R

Description

Calculate area weighted values for regions based on station time series data using Thyssen ploygons

Usage

1
thyssenize(station_data, location, shape, shape_id, dates, cores = NULL)

Arguments

station_data

Tibble providing the station time series data of a measured variable. The data must be organized in three columns where the first column provides the date, the second a unique station ID, and the third column the variable value. See examples for example table.

location

sf object that only holds the corresponding station identifiers and the station location.

shape

sf object providing polygons for which the area weighted means should be calculated.

shape_id

Polygon attribute that should be used as identifier for value averaging

dates

Vector of dates for which weighted averages should be calculated.

cores

Parallel computing is implemented to reduce computation time.

Value

Returns a tibble holding dates, shape_id, and averaged values


chrisschuerz/thyssenize documentation built on April 10, 2020, 3:47 p.m.