concatenate_zpks#
- gwpy.signal.filter_design.concatenate_zpks(*zpks: ZpkCompatible) ZpkType[source]#
Concatenate a list of zero-pole-gain (ZPK) filters.
- Parameters:
- Returns:
- zeros
numpy.ndarray The concatenated array of zeros.
- poles
numpy.ndarray The concatenated array of poles.
- gain
float The overall gain.
- zeros
Examples
Create a lowpass and a highpass filter, and combine them:
>>> from gwpy.signal.filter_design import ( ... highpass, lowpass, concatenate_zpks) >>> hp = highpass(100, 4096) >>> lp = lowpass(1000, 4096) >>> zpk = concatenate_zpks(hp, lp)
Plot the filter:
>>> from gwpy.plot import BodePlot >>> plot = BodePlot(zpk, sample_rate=4096) >>> plot.show()
(
png)