utils.notch_filter_sos#
Back to Module page
Summary#
Defines set of sos filters to apply to notch out lines
Signature#
def notch_filter_sos(dt, freqs, mask_freqs, flow = None, fhigh = None, dfmin_notch = None, notch_pars_in = None)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Time interval between successive elements of data (s) |
||
|
Regular array with frequencies for line identification |
||
|
Mask on freqs with zeros at lines |
||
|
None |
Apply notch filters only on frequencies f > flow |
|
|
None |
Apply notch filters only on frequencies f < fhigh |
|
|
None |
Minimum frequency width (Hz) that each notch should have |
|
|
None |
If we already have a list of notch parameters, pass it in to append to and return |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
List of 2-tuples with sos coefficients, and impulse response lengths, to apply to data |
Docstring#
Defines set of sos filters to apply to notch out lines
:param dt: Time interval between successive elements of data (s)
:param freqs: Regular array with frequencies for line identification
:param mask_freqs: Mask on freqs with zeros at lines
:param flow: Apply notch filters only on frequencies f > flow
:param fhigh: Apply notch filters only on frequencies f < fhigh
:param dfmin_notch: Minimum frequency width (Hz) that each notch should have
:param notch_pars_in:
If we already have a list of notch parameters, pass it in to append to
and return
:return:
List of 2-tuples with sos coefficients, and impulse response lengths,
to apply to data