deaccum: Performs deaccumulation

View source: R/deaccum.R

deaccumR Documentation

Performs deaccumulation

Description

Used for deaccumulation of precipitation in certain model data (e.g. System4). Sub-routine of dictionaryTransform.

Usage

deaccum(x, t.ranges, dff)

Arguments

x

a vector of (accumulated) data.

t.ranges

a vector defining the start/end indices for each annual season, as returned by dictionaryTransform. This is used to restart the deaccumulation at the beginning of each season.

dff

Logical. Is deaccumulation performed from the first value of the time series?. Passed by dictionaryTransform,coming from getForecastTimeDomain.S4. See Details.

Details

When leadMonth equals 0, there is not a previous day for starting deaccumulation, and therefore the first value of the time series is taken 'as is'. Otherwise, one value before the start has to be taken to preserve time series length (this is previously done by getForecastDomain.S4).

Value

a vector of deaccumulated data

Author(s)

J. Bedia


SantanderMetGroup/loadeR documentation built on June 7, 2024, 8:16 p.m.