Skip to content

Utils Package

The ria_toolkit_oss.utils module provides helper functions, primarily array conversion utilities for working with IQ signal data.

The module supports two representations of single-channel IQ (in-phase/quadrature) signals:

FormatShapeDescription
Complex 1×N(1, N) complexReal part = I component; imaginary part = Q component
Real 2×N(2, N) floatRow 0 = I component; Row 1 = Q component

Converts IQ samples from complex 1×N format to real 2×N format.

ParameterTypeDescription
arrarray_likeIQ samples in complex 1×N format

Returns an ndarray in real 2×N format. Returns a copy if the input is already in 2×N format.


Converts IQ samples from real 2×N format to complex 1×N format.

ParameterTypeDescription
arrndarrayIQ samples in real 2×N format

Returns an ndarray in complex 1×N format. Returns a copy if the input is already in 1×N format.


Returns True if the array is in complex 1×N format.


Returns True if the array is in real 2×N format.