skrf.media.media.Media.extract_distance

Media.extract_distance(ntwk)[source]

Determines physical distance from a transmission or reflection ntwk

Given a matched transmission or reflection measurment the physical distance is estimated at each frequency point based on the scattering parameter phase of the ntwk and propagation constant.

Notes

If the ntwk is a reflect measurement, the returned distance will be twice the physical distance.

Parameters:ntwk (Network) – A one-port network of either the reflection or the transmission. if

Example

>>>air = rf.air50 >>>l = air.line(1,’cm’) >>>d_found = air.extract_distance(l.s21) >>>d_found