comnum.nr_ofdm_modulate#

comnum.nr_ofdm_modulate(grid, mu, n_fft, *, extended_cp=False, first_symbol=0)#

OFDM-modulate a grid of NR: the subcarrier k at the frequency (k - K/2) Δf, the cyclic prefixes of the numerology (the first symbol of every half subframe longer), the IFFT scaled by 1/√K (unit mean power for unit-energy symbols).

Parameters:
  • grid (array_like) – the grid, shape (K, L) (subcarriers × OFDM symbols), K even (12 N_RB).

  • mu (int) – the numerology.

  • n_fft (int) – the FFT size (a multiple of 128, at least K).

  • extended_cp (bool) – the extended cyclic prefix.

  • first_symbol (int) – the index in the subframe of the first symbol of the grid.

Returns:

the samples at n_fft · Δf (complex128).

Return type:

numpy.ndarray

Raises:

ValueError – for an invalid parameter or input (the message names it).