GETARCHARR action
Resampling note
If the value of the stepIdent_Int
parameter is nonzero, the read data is resampled with the specified period (in seconds). Resampling can also be with a period greater than 1 day (86400 seconds), e.g. 3 or 7 days.
For periodic archives (primary periodic, calculated periodic, statistical, script-filled periodic), resampling takes into account the transition between summer and winter time depending on the "Use monotonic time" setting in the configuration of archive being read. If e.g. resampling has a period of 86400 seconds and an initial time of "10:00:00 29-10-2021", so the time stamps for Central European (CET) time (transition from summer time to winter time is 31-10-2021 at 02:00) will be as follows :
Use monotonic time | Use local time |
---|---|
10:00:00 29-10-2021 10:00:00 30-10-2021 09:00:00 31-10-2021 09:00:00 01-11-2021 | 10:00:00 29-10-2021 10:00:00 30-10-2021 10:00:00 31-10-2021 10:00:00 01-11-2021 |
When using monotonic time, the resampling shifted the time from 10:00 to 09:00, as another hour was inserted at 31-10-2021 at 02:00 (so the day 31-10-2021 had 25 * 3600 seconds).
When using local time, the offset within the day is preserved (10:00).
For non-periodic archives (primary on-change, calculated on-change, script-filled on-change), resampling always takes into account the transition between summer and winter time (i.e. the offset within the day is preserved). Should a "monotonic" resampling be required, it is possible to configure a statistics archive (Time Slice statistical function) that is calculated On Read (so it does not burden the archive database) and has a "Use monotonic time" set. Subsequently, it is necessary to read this Time Slice statistics.
It is also possible to configure the Time Slice statistics for periodic archives, if it is necessary to perform resampling with the inverse setting of Monotonic/Local time as is in the configuration of the periodic archive.
Related pages: