Skip to contents

Convenience wrapper around quarterly_variables() for a rolling 3-month quarter starting at start.

Usage

quarterly_rolling(tas, tasmax, tasmin, pr, start, na.rm = FALSE, ...)

Arguments

tas

Numeric vector (length 12), matrix (pixels x 12), SpatRaster with 12 layers, or BioclimData.

tasmax

Same form as tas: monthly maximum temperature.

tasmin

Same form as tas: monthly minimum temperature.

pr

Same form as tas: monthly precipitation.

start

Integer 1-12: starting month.

na.rm

Logical. If FALSE (default), a single NA among the selected months makes all outputs NA for that pixel. If TRUE, missing months are skipped.

...

Not currently used.

Value

Same structure as quarterly_variables(): a named numeric vector of length 6 for vector input, a numeric matrix (pixels x 6) for matrix or BioclimData input, or a 6-layer SpatRaster for SpatRaster input, with variables tmean_s, tmax_max, tmin_min, trange, pr_tot, pr_cv.