h_timestep {htsr}R Documentation

Infra-daily fixed timestep

Description

Computes a time-series with a fixed infra-daily timestep starting from an instantaneous time-series - possible option: sum, mean, max or min

Usage

h_timestep(file, tst, op = "M", shift = 0)

Arguments

file

Instantaneous time-series

tst

Timestep in minutes - must be a divisor of 1440 between 10 and 1440

op

"S", "M" (default), "Mn" ou "Mx"

shift

time shift for computing daily data in hours (default = 0)

Details

The op parameter give precise the chosen computation method within the interval: sum ("S"), la mean ("M"), minimum ("Mn") or maximum ("Mx").

In the case of a daily timestep (tst = 1440), the parameter shift allows to shift the time interval. For example if shift = 6, the date is computed from 6am until 6am the following day. The result is dated in the middle of the interval, i.e. if shift = 6; the datetime is 18.

Value

A hts time-series file with a fixed timestep. The duration of the time-step in minutes is added to the file name.

Author(s)

P. Chevallier - Oct 2017 - Jan 2022

Examples

## Not run: 

f <- t_timestep(f, tst, op="S", shift = 6)

## End(Not run)



[Package htsr version 1.2.0 Index]