We imagine the measurement of a signal (this can be an audio signal, but also any other type of time series) that is composed of two other signals: a low-frequency main signal and a high-frequency interference signal:
In the hetida platform, we configure the “cut-off frequency” and “order” parameters of the Butterworth filter.We also specify the time unit to which the frequency refers – for example, periods per second, minute, hour or day.We also specify whether the filter should work on one or both sides:When applied on one side, the filter only takes into account current and previous values for each filtered value.With the two-sided application, on the other hand, both earlier and later values are included in the calculation.
The low-frequency main signal in our artificial example has a frequency of 0.1 Hz, the high-frequency interference signal has a frequency of 1 Hz. The cut-off frequency is therefore selected in between, in this case 0.25 Hz. We retain the default settings for the time unit (frequency_as_periods_per_unit = “s” for second), the order of the filter (order = 1) and the two-sided application (“forward_backward” = True). The result looks like this:
In reality, there is never such an ideal signal composed of two perfectly regular signals. We therefore try out the same low-pass filter on a composite signal that also contains random noise. The result is similarly satisfactory:
Once the data has been successfully imported, a channel containing this data can be created. The hetida platform generates a data preview for each channel created at the corresponding point in the Explorer. Here we can already see that there was a longer period of low water levels in the Ruhr in Hattingen in 2003. From March to November, the water levels were below the average low water level at this measuring point, which is 102 cm. However, there were short-term exceedances of this limit during this period. If low water was defined using such a limit value, the period would not be fully classified as a low water period, which is undesirable.
We therefore filter the raw data through a low pass filter. We set the cut-off frequency so that events with a duration of less than two weeks are filtered out. We regard these short events as interference signals. Longer-term events, on the other hand, should be retained.
To do this, we select “d” for days as the unit of frequency. We set the cut-off frequency to 1/14, i.e. 0.0714. The result of this filter is written to a new channel whose data preview looks like this:
We have seen how we can apply a low pass filter to the level data of the Ruhr with just a few clicks using the standard workflows of the hetida platform. Now we can use the data for further analysis, either in the platform or after exporting data with another tool.