super_auto_comb.calc

Functions

beat2y(f_beat, nominal, N, f_rep, f0[, f_beat_sign, ...])

Calculate the fractional frequency y from beatnote values, using arbitrary precision numbers where appropriate.

Module Contents

super_auto_comb.calc.beat2y(f_beat, nominal, N, f_rep, f0, f_beat_sign=1, k_scale=1, f0_scale=1, f_offset=0.0)

Calculate the fractional frequency y from beatnote values, using arbitrary precision numbers where appropriate.

Parameters:
  • f_beat (ndarray of floats) – Input frequency beat, unsigned

  • nominal (str) – Nominal frequency in Hz as string.

  • N (int) – Comb tooth number

  • f_rep (float) – Comb repetition rate in Hz

  • f0 (float) – Comb offset frequency in Hz

  • f_beat_sign (int, optional) – Sign of f_beat, by default 1

  • k_scale (int, optional) – Frequency scaling (typically 1, 2 in case of SHG), by default 1

  • f0_scale (int, optional) – Frequency scaling of f0 (typically 1, 2 for measurements with visible branch), by default 1

  • f_offset (float, optional) – Offset frequency in Hz from the counted beatnote, by default 0.0

Returns:

Fractional frequency y

Return type:

ndarray