preprocess_signal
Preprocesses stator-current signals for spectral analysis by removing DC offset, applying notch and bandpass filters, normalising, and windowing.
Instructions
Preprocess a stator-current signal for spectral analysis.
Applies (in order): DC offset removal → notch filtering → bandpass filtering → normalisation → windowing. Returns the preprocessed signal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal | Yes | Raw current signal as a list of amplitude values | |
| sampling_freq_hz | Yes | Sampling frequency in Hz | |
| nominal_current | No | Nominal current for normalisation (A). Omit for RMS normalisation | |
| window | No | Window function: hann, hamming, blackman, flattop, rectangular | hann |
| bandpass_low_hz | No | Lower bandpass cutoff in Hz (optional) | |
| bandpass_high_hz | No | Upper bandpass cutoff in Hz (optional) | |
| notch_freqs_hz | No | Frequencies to notch-filter (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |