dictionaryTransformGrid: Performs variable transformation

View source: R/dictionaryTransformGrid.R

dictionaryTransformGridR Documentation

Performs variable transformation

Description

Performs variable transformation according to dictionary specifications. Sub-routine of loadGridDataset.

Usage

dictionaryTransformGrid(dic, timePars, mdArray)

Arguments

dic

Dictionary line for the variable, as returned by dictionaryLookup or dictionaryLookup.ECOMS

timePars

A list of time selection parameters, as returned by getTimeDomain

mdArray

A n-dimensional array, as returned by makeSubset

Details

When performing deaccumulation, the shape of the output array may change. This is due to the re-ordering of the dimensions done by apply, and also in the length of the time dimension, as usually the first time value of each runtime is lost in the deaccumulation. The function handles the re-ordering of the "dimensions" label in this case.

Value

The transformed n dimensional array of data. See details.

Note

The current implementation does not support deaccumulation of CFSv2 variables (not needed so far...)

Author(s)

J. Bedia


SantanderMetGroup/loadeR documentation built on July 4, 2023, 4:29 a.m.