Timestamp Alignment

This component checks whether the selected timestamp column is uniformly sampled in the selected time scale. Missing values will be inserted at skipped sampling times.

Required extensions:
KNIME Quick Forms
(https://hub.knime.com/knime/extensions/org.knime.features.js.quickforms/latest)

Topics: IoT, Internet of Things, Signal Processing

Annotations and comments
  • Read users input of the timestamp column, and the time window.
  • The input timestamp column can have either Date or Date&time type. This step determines the type.
  • Create a new range of timestamps depending on the input timestamp type. The new range column will be joined to the original column where it replaces the old timestamp column.
  • boolean to replace timestamp column
  • take only the timestamp col
  • select timestamp
  • rename col to lower bound
  • rename col to upper bound
  • update domain
  • extract table dim
  • extract table spec
  • get index of last row
  • merge all
  • take only last row
  • take only first row
  • top port: Local Date Time second port: Local Date
  • top port: Local Time bottom port: Zoned Date Time
  • for Local Date Time
  • for Local Date
  • for Local Time
  • for Zoned Date Time
  • determine the port for the CASE Switch node
  • merge all flow variables
  • rename the new timestamp col to the old timestamp name
  • rename the new timestamp col
  • top: replace bottom: append
  • create column name
  • join with other input columns
  • sort by timestamp
  • create new RowIDs
  • map the selected window to the corresponding period
  • determine port
  • select time window

Options

Replace timestamp column
If checked, then the timestamp column will be replaced with the new timestamp column with uniform sampling. Otherwise, the new timestamp column will be appended to the input table.
Timestamp Column
The timestamp column to check for uniform sampling.
Period
Select the timestamp interval.%%00010%%00010The following periods are supported:%%00010Year%%00010Month%%00010Week%%00010Day%%00010Hour%%00010Minute%%00010Second%%00010

Input Ports

Icon
Data table containing at least one column of datetime type (Local Date, Local Time, Local Date Time, Zoned Date Time).

Output Ports

Icon
Data table containing the input data table with extra rows if skipped sampling times are found. If replace timestamp column boolean is checked, then the input timestamp column will be replaced with the new timestamp column with uniform sampling, Otherwise the new timestamp column will be appended to the input table.

Nodes

Extensions

Links