parse_filter#
- gwpy.signal.filter_design.parse_filter(
- filt: TapsType | BAType | signal.TransferFunction,
- gwpy.signal.filter_design.parse_filter(filt: SosType) tuple[Literal['sos'], SosType]
- gwpy.signal.filter_design.parse_filter(
- filt: ZpkCompatible | LinearTimeInvariant,
Parse arbitrary input args into a TF, ZPK, or SOS filter definition.
No transformations are applied to the filter, it is simply unpacked into a standard form.
- Parameters:
- filt
numpy.ndarrayortuple Filter definition. Any of the following formats are supported:
FIR taps as a 1D
numpy.ndarrayIIR transfer function as a 2-tuple of 1D
numpy.ndarrayIIR zero-pole-gain as a 3-tuple of 1D
numpy.ndarrayand afloatIIR second-order-sections as a 2D
numpy.ndarrayscipy.signal.ltiorscipy.signal.dltiobject
- filt
- Returns:
- ftype
str Either
'ba''zpk'or'sos'.- filt
numpy.ndarrayortuple The filter components for the returned
ftype. If'ba', a 2-tuple of numerator and denominator arrays. If'zpk', a 3-tuple of zeros, poles, and gain. If'sos', a 2D array of second-order sections.
- ftype