aggregate_variable: Intersect var_grid with the shape file and aggregate the...

Description Usage Arguments Value

View source: R/aggregate_var.R

Description

Intersect var_grid with the shape file and aggregate the variable's data for the shape file units

Usage

1
aggregate_variable(var_grid, var_data, shape_file, shape_index, time)

Arguments

var_grid

simple feature polygon. The polygon grid for the individual pixels of the variable

var_data

Tibble where each row represents a pixel in the var_grid and a column holds the data for one time step in each pixel.

shape_file

Shape file with the basin sub-unit polygons.

shape_index

Character. Name of the column in the basin shapefile attribute table that provides the indices of the basin subunits.

time

Date Vector for the time steps in var_data

Value

Returns a tibble that provides the time series of the aggregated variable for the respective basin subunits


chrisschuerz/aRastoCAT documentation built on May 16, 2020, 1:33 a.m.