skrf.vi.vna.PNA.to_hz

static PNA.to_hz(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 numpy.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