skrf.time.detect_span

skrf.time.detect_span(ntwk, t_unit='')[source]

Detect the correct time-span between two largest peaks.

Parameters:
  • ntwk (Network) – network to get data from

  • t_unit (str) –

    Time unit for start, stop, center and span arguments, defaults to seconds (s).

    Possible values:
    • ’s’: seconds

    • ’ms’: milliseconds

    • ’µs’ or ‘us’: microseconds

    • ’ns’: nanoseconds (default)

    • ’ps’: picoseconds

Returns:

span

Return type:

float in unit t_unit