pyecsca.sca.trace.filter module

Provides functions for filtering traces using digital (low/high/band)-pass and bandstop filters.

pyecsca.sca.trace.filter.filter_lowpass(trace, sampling_frequency, cutoff)[source]

Apply a lowpass digital filter (Butterworth) to trace, given sampling_frequency and cutoff frequency.

Parameters:
  • trace (Trace) –

  • sampling_frequency (int) –

  • cutoff (int) –

Return type:

Trace

Returns:

pyecsca.sca.trace.filter.filter_highpass(trace, sampling_frequency, cutoff)[source]

Apply a highpass digital filter (Butterworth) to trace, given sampling_frequency and cutoff frequency.

Parameters:
  • trace (Trace) –

  • sampling_frequency (int) –

  • cutoff (int) –

Return type:

Trace

Returns:

pyecsca.sca.trace.filter.filter_bandpass(trace, sampling_frequency, low, high)[source]

Apply a bandpass digital filter (Butterworth) to trace, given sampling_frequency, with the passband from low to high.

Parameters:
  • trace (Trace) –

  • sampling_frequency (int) –

  • low (int) –

  • high (int) –

Return type:

Trace

Returns:

pyecsca.sca.trace.filter.filter_bandstop(trace, sampling_frequency, low, high)[source]

Apply a bandstop digital filter (Butterworth) to trace, given sampling_frequency, with the stopband from low to high.

Parameters:
  • trace (Trace) –

  • sampling_frequency (int) –

  • low (int) –

  • high (int) –

Return type:

Trace

Returns: