libSDRForge
Loading...
Searching...
No Matches
sdrforge.diagnostics.channel_rf_telemetry Namespace Reference

Per-virtual-channel RF diagnostics, independent of SDR hardware. More...

Classes

class  ChannelRfTelemetry
 Provide channel rf telemetry behavior. More...

Functions

ChannelRfTelemetry measure_channel_rf (np.ndarray iq, *, float adc_clip_fraction=0.0)
 Estimate in-channel spectral contrast, not calibrated RF SNR.
float adc_clip_fraction (bytes raw, *, int threshold=2)
 Fraction of raw 8-bit I/Q components near either ADC rail.

Detailed Description

Per-virtual-channel RF diagnostics, independent of SDR hardware.

Function Documentation

◆ adc_clip_fraction()

float sdrforge.diagnostics.channel_rf_telemetry.adc_clip_fraction ( bytes raw,
* ,
int threshold = 2 )

Fraction of raw 8-bit I/Q components near either ADC rail.

Parameters
rawThe raw value.
thresholdThe threshold value.
Returns
The operation result.

◆ measure_channel_rf()

ChannelRfTelemetry sdrforge.diagnostics.channel_rf_telemetry.measure_channel_rf ( np.ndarray iq,
* ,
float adc_clip_fraction = 0.0 )

Estimate in-channel spectral contrast, not calibrated RF SNR.

Noise floor is the median spectral-bin power, and estimated SNR is peak-bin contrast above that median. FM modulation, adjacent signals, filtering and FFT size influence this value. Never use it as a calibrated RF signal-to-noise ratio.

Parameters
iqThe complex IQ samples to process.
adc_clip_fractionThe adc_clip_fraction value.
Returns
The operation result.