skrf.network.Network.interpolate_self_npoints

Network.interpolate_self_npoints(npoints, **kwargs)

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 [2]: n = rf.data.ring_slot 

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

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

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

Previous topic

skrf.network.Network.interpolate_self

Next topic

skrf.network.Network.multiply_noise

This Page