comnum.nr_ssb_indices#

comnum.nr_ssb_indices(n_cell_id, kind)#

The resource elements of one kind in the SSB, as (k, l) pairs (subcarrier, symbol) in the order of the mapping, frequency first: grid[idx[:, 0], idx[:, 1]] reads them in a (240, 4) grid.

Parameters:
  • n_cell_id (int) – the cell identity (it shifts the PBCH DMRS).

  • kind (str) – "pss", "sss", "pbch" or "pbch_dmrs".

Returns:

the pairs (k, l), (n, 2) (int64).

Return type:

numpy.ndarray

Raises:

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

Examples

>>> import comnum
>>> idx = comnum.nr_ssb_indices(0, "pss")
>>> idx.shape, idx[0].tolist()
((127, 2), [56, 0])