libSDRForge
Loading...
Searching...
No Matches
sdrforge.models.spectrum_frame Namespace Reference

Immutable, transport-independent spectrum frame contract. More...

Classes

class  SpectrumFrame
 FFT power in relative dBFS, ordered from low to high RF frequency. More...

Functions

SpectrumFrame spectrum_from_iq (np.ndarray iq, *, int center_frequency_hz, int sample_rate_hz, int timestamp_ns)
 Produce one centered, Hann-windowed FFT from complex IQ samples.

Detailed Description

Immutable, transport-independent spectrum frame contract.

Function Documentation

◆ spectrum_from_iq()

SpectrumFrame sdrforge.models.spectrum_frame.spectrum_from_iq ( np.ndarray iq,
* ,
int center_frequency_hz,
int sample_rate_hz,
int timestamp_ns )

Produce one centered, Hann-windowed FFT from complex IQ samples.

Parameters
iqThe complex IQ samples to process.
center_frequency_hzThe center_frequency_hz value.
sample_rate_hzThe sample rate in hertz.
timestamp_nsThe timestamp_ns value.
Returns
The operation result.