Section

Inheritance diagram of hermespy.modem.waveforms.orthogonal.waveform.GridSection
class GridSection(num_repetitions=1, sample_offset=0, wave=None)[source]

Bases: Generic[OWT], ABC

Description of a part of a grid’s time domain.

Parameters:
  • num_repetitions (int, optional) – Number of times this section is repeated in time-domain.

  • sample_offset (int, optional) – Offset in samples to the start of the section.

  • wave (OWT, optional) – Waveform this section is associated with. Defaults to None.

abstract pick_samples(signal)[source]

Pick this section’s samples from the time-domain signal.

Parameters:

signal (np.ndarray) – Time-domain signal to be picked from. Numpy vector of size num_samples.

Return type:

ndarray

Returns: Time-domain signal with the section’s samples picked.

pick_symbols(grid)[source]

Pick this section’s data symbols from the resource grid.

Parameters:

grid (np.ndarray) – Resource grid. Two dimensional numpy array of size num_words`x`num_subcarriers.

Return type:

ndarray

Returns: Data symbols. Numpy vector of size num_symbols.

abstract place_samples(signal)[source]

Place this section’s samples into the time-domain signal.

Parameters:

signal (np.ndarray) – Time-domain signal to be placed. Numpy vector of size num_samples.

Return type:

ndarray

Returns: Time-domain signal with the section’s samples placed.

place_symbols(data_symbols, reference_symbols)[source]

Place this section’s symbols into the resource grid.

Parameters:
  • data_symbols (np.ndarray) – Data symbols to be placed. Numpy vector of size num_symbols.

  • reference_symbols (np.ndarray) – Reference symbols to be placed. Numpy vector of size num_references.

Return type:

ndarray

Returns: Two dimensional numpy array of size num_words`x`num_subcarriers.

property num_references: int

Number of data symbols this section can modulate.

Returns:

The number of symbols

Return type:

int

property num_repetitions: int

Number of section repetitions in the time-domain of an OFDM grid.

Returns:

The number of repetitions.

Return type:

int

abstract property num_samples: int

Number of samples within this OFDM time-section.

Returns:

Number of samples

Return type:

int

property num_subcarriers: int

Number of subcarriers this section requires.

Returns:

The number of subcarriers.

Return type:

int

property num_symbols: int

Number of data symbols this section can modulate.

Returns:

The number of symbols

Return type:

int

property num_words: int

Number of OFDM symbols, i.e. words of subcarrier symbols this section can modulate.

Returns:

The number of words.

Return type:

int

property resource_mask: ndarray
property sample_offset: int

Offset in samples to the start of the section.

This can be used to explot cyclic prefixes and suffixes in order to be more robust against timing offsets.

property wave: OWT | None

Waveform this section is associated with.