libSDRForge
Loading...
Searching...
No Matches
same_benchmark.py File Reference

Classes

class  sdrforge.weather.same_benchmark.BenchmarkResult
 Provide BenchmarkResult behavior. More...

Namespaces

namespace  sdrforge
 libSDRForge public Python package.
namespace  sdrforge.weather
 RF-derived weather observations and NOAA SAME alert metadata.
namespace  sdrforge.weather.same_benchmark
 Reproducible end-to-end NOAA SAME audio impairment benchmark.

Functions

np.ndarray sdrforge.weather.same_benchmark.add_awgn (np.ndarray audio, float snr_db, np.random.Generator rng)
 Add reproducible white Gaussian noise at signal-power SNR in dB.
tuple[int, int] sdrforge.weather.same_benchmark._byte_errors (bytes expected, bytes decoded)
list[BenchmarkResult] sdrforge.weather.same_benchmark.benchmark (*, tuple[float,...] snrs=DEFAULT_SNR_DB, tuple[float,...] baud_errors=(0.0, 1.0), int trials=3, int seed=2026, bool known_clock=True)
 Measure exact-byte header recovery, including clock-search failures.
int sdrforge.weather.same_benchmark.main (list[str]|None argv=None)
 Provide main behavior.

Variables

str sdrforge.weather.same_benchmark.HEADER = b"ZCZC-WXR-RWT-026099+0030-3211200-KDTX/NWS-"
tuple sdrforge.weather.same_benchmark.DEFAULT_SNR_DB = (30.0, 20.0, 10.0, 5.0, 0.0)