timeUnits: time units

View source: R/loadGridData.R

timeUnitsR Documentation

time units

Description

Internal helper to check time resolution

Usage

timeUnits(dft)

Arguments

dft

A time step (numeric), in hours

Details

When calculating threshold exceedance counts, the units attribute need to be updated via this internal.

Value

The time units

Note

This functionality is similar to getTimeResolution in transformeR. It is introduced here for internal use only in loadGridData to avoid the transformeR dependency, but shouldn't be used elsewhere.

Author(s)

J Bedia, S. Herrera


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