skrf.media.freespace.Freespace.extract_distance

Freespace.extract_distance(ntwk)

Determines physical distance from a transmission or reflection Network.

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

Notes

If the Network 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.

Returns:

d – physical distance

Return type:

number or array_like

Examples

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