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

Classes

class  sdrforge.weather.same_afsk.SameDecodeResult
 Provide SameDecodeResult 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_afsk
 Experimental NOAA SAME AFSK demodulator for captured mono audio.

Functions

np.ndarray sdrforge.weather.same_afsk.synthesize_same_audio (bytes payload, int sample_rate=24000, *, float amplitude=0.7, float baud=BAUD)
 Generate continuous-phase AFSK with 8N1 framing for testing.
np.ndarray sdrforge.weather.same_afsk._classify_bits (np.ndarray audio, int sample_rate, float offset, float baud=BAUD)
np.ndarray sdrforge.weather.same_afsk._symbol_confidences (np.ndarray audio, int sample_rate, float offset, float baud=BAUD)
float sdrforge.weather.same_afsk._uart_confidence (np.ndarray metrics)
bytes sdrforge.weather.same_afsk._uart_bytes (np.ndarray bits)
tuple[int, int, int, int] sdrforge.weather.same_afsk._candidate_score (bytes candidate)
SameDecodeResult sdrforge.weather.same_afsk.decode_same_audio_diagnostic (np.ndarray audio, int sample_rate, *, tuple[float,...] baud_offsets=(0.0,))
 Return selected candidate and clock hypothesis for diagnostics.
bytes sdrforge.weather.same_afsk.decode_same_audio (np.ndarray audio, int sample_rate, *, tuple[float,...] baud_offsets=(0.0,))
 Return decoded bytes; candidates are NOT validated emergency alerts.

Variables

float sdrforge.weather.same_afsk.BAUD = 520.8333333333334
float sdrforge.weather.same_afsk.SPACE_HZ = 1562.5
float sdrforge.weather.same_afsk.MARK_HZ = 2083.3333333333335