ictdesigntools.optical.filters¶
WDM filters: multiplexers, demultiplexers, OADMs and wavelength selective switches.
ITU-T G.671 (11/2025) lists the parameters of each of these (insertion loss, isolation,
passband width, reflectance) but leaves most of their values to the application, so a
Filter takes them from a data sheet. G.671 does set a few limits, and those are here:
- an optical filter's reflectance is at most −40 dB (clause 6.10);
- a 1 × X WWDM mux/demux (channels 50 nm or more apart) loses at most
1.5·log2 XdB per channel, with PDL at most0.1·(1 + log2 X)dB and reflectance at most −40 dB (clause 6.19.3).
A signal crossing several filters (the mux, each ROADM it passes, the demux) sees the product
of their passbands, which is narrower than any one of them. Each passband is modelled as a
super-Gaussian of order n, whose loss at an offset f from the centre is
3.01·(2f / B)^(2n) dB for a 3 dB width B: order 1 is a Gaussian, and higher orders are
flatter with steeper edges. This is a planning approximation, not a measured shape.
>>> wss = Filter("wss", 6.0, passband_ghz=40.0, order=3)
>>> round(cascade_passband_ghz([wss] * 8), 1)
28.3
>>> cascade_loss_db([Filter("mux", 5.0), wss, wss, Filter("demux", 5.5)])
22.5
>>> w = wwdm(2)
>>> w.insertion_loss_db, round(w.pdl_db, 2)
(1.5, 0.2)
>>> round(crosstalk_db(Filter("demux", 5.0, adjacent_isolation_db=25,
... nonadjacent_isolation_db=30), channels=40), 1)
-13.6
FilterError ¶
Bases: ValueError
A filter, or a chain of them, that cannot be worked out.
Filter
dataclass
¶
Filter(
kind: str,
insertion_loss_db: float,
passband_ghz: float | None = None,
order: float = 2.0,
adjacent_isolation_db: float | None = None,
nonadjacent_isolation_db: float | None = None,
reflectance_db: float = FILTER_REFLECTANCE_DB,
pdl_db: float | None = None,
name: str = "",
)
One pass through a WDM filter. insertion_loss_db is its loss per channel, at its
worst over the passband; passband_ghz its 3 dB passband width; order the
super-Gaussian order of its shape (1 to 10); isolations are to adjacent and non-adjacent
channels, as a demux or drop port gives them.
loss_at_db ¶
The extra loss, beyond the insertion loss, at offset_ghz from the centre.
Source code in src/ictdesigntools/optical/filters.py
cascade_passband_ghz ¶
The width over which a chain of filters together lose no more than drop_db beyond
their insertion loss (by default 3 dB). Filters with no passband width are left out.
Source code in src/ictdesigntools/optical/filters.py
check_passband ¶
check_passband(filters, signal_ghz: float) -> PassbandCheck
Whether a chain of filters leaves a 3 dB passband at least as wide as a signal (for a coherent signal, about its symbol rate in GBd times one plus its roll-off).
Source code in src/ictdesigntools/optical/filters.py
crosstalk_db ¶
The total crosstalk into one dropped channel from all the others, relative to it, when
all arrive at equal power: adjacent channels at the adjacent isolation and the rest at
the non-adjacent isolation (the adjacent figure, when that is the only one given).
Source code in src/ictdesigntools/optical/filters.py
wwdm ¶
The G.671 clause 6.19.3 limits for a 1 × outputs WWDM mux/demux (such as a
1310/1550 nm coupler): maximum insertion loss, PDL and reflectance.