skrf.vi.vna.NanoVNAv2.to_hz¶
- static NanoVNAv2.to_hz(freq, f_unit)¶
A simple convenience function to create frequency in Hz if it is in a different unit
- Parameters
freq (float or np.ndarray) – a float or npy.ndarray of floats of the frequency in f_units
f_unit (str) – the units of frequency (Hz, kHz, MHz, GHz, THz)
- Returns
the converted frequency sweep in Hz
- Return type
float or np.ndarray