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

Description Usage Arguments

View source: R/thyssenize.R

Description

Calculate area weighted values for regions based on station data for the time step i using Thyssen ploygons

Usage

1
thyssen_i(station_data, location, shape, bbox_sf, date_i)

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.

bbox_sf

bounding box sf object.

date_i

Lubridate ymd format date defining the date for which the average values are calculated.

shape_id

Polygon attribute that should be used as identifier for value averaging.


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