brick_calc_monthly_mean: Calculate the monthly means of a raster brick

Description Usage Arguments Value Examples

Description

This function assumes the input is a raster brick object that has many layers that represent an ordered series of different timesteps. It selects the layers for each month and calulates the mean for that month. Then returns a brick of 12 layers, representing the January-December means.

Usage

1
brick_calc_monthly_mean(input_brick, input_brick_time_as_posixlt)

Arguments

input_brick

raster brick object that has many layers that represent an series of timesteps.

input_brick_time_as_posixlt

associated POSIXlt class vector describing the time value for each layer.

Value

Returns a raster brick object with 12 layers, one for each month that has been calulated. (NB: The function may fail if there are not 12 months in the input brick.)

Examples

1
#I need to add an example...

tremenyi/climatematchR documentation built on May 24, 2019, 5:06 a.m.