skrf.network.Network.interpolate_self_npoints

Network.interpolate_self_npoints(npoints, **kwargs)[source]

Interpolate network based on a new number of frequency points

Parameters:
  • npoints (int) – number of frequency points
  • **kwargs (keyword arguments) – passed to scipy.interpolate.interp1d() initializer.

See also

interpolate_self()
same functionality but takes a Frequency object
interpolate()
same functionality but takes a Frequency object and returns a new Network, instead of updating itself.

Notes

The function resample() is an alias for interpolate_self_npoints().

Examples

In [1]: n = rf.data.ring_slot

In [2]: n
Out[2]: 2-Port Network: 'ring slot',  75.0-110.0 GHz, 201 pts, z0=[50.+0.j 50.+0.j]

In [3]: n.resample(501) # resample is an alias

In [4]: n
Out[4]: 2-Port Network: 'ring slot',  75.0-110.0 GHz, 501 pts, z0=[50.+0.j 50.+0.j]