Detect candidate AFSK bursts using frame RMS and silence duration.
More...
|
| None | __init__ (self, int sample_rate, *, int frame_ms=20, float threshold_rms=0.08, int silence_ms=180, float max_burst_seconds=8.0, bool tone_gate=False, float min_tone_fraction=0.40) |
| | Provide init behavior.
|
| None | reset (self) |
| | Provide reset behavior.
|
| None | feed (self, np.ndarray pcm) |
| | Provide feed behavior.
|
| SameMessages | finish (self) |
| | Finish pending frames, decode bursts, and return confirmed messages.
|
Detect candidate AFSK bursts using frame RMS and silence duration.
◆ __init__()
| None sdrforge.weather.same_burst.SameBurstDetector.__init__ |
( |
| self, |
|
|
int | sample_rate, |
|
|
* | , |
|
|
int | frame_ms = 20, |
|
|
float | threshold_rms = 0.08, |
|
|
int | silence_ms = 180, |
|
|
float | max_burst_seconds = 8.0, |
|
|
bool | tone_gate = False, |
|
|
float | min_tone_fraction = 0.40 ) |
Provide init behavior.
- Parameters
-
| self | The current instance. |
| sample_rate | The sample rate value. |
| frame_ms | The frame ms value. |
| threshold_rms | The threshold rms value. |
| silence_ms | The silence ms value. |
| max_burst_seconds | The max burst seconds value. |
| tone_gate | The tone gate value. |
| min_tone_fraction | The min tone fraction value. |
◆ _close_burst()
| None sdrforge.weather.same_burst.SameBurstDetector._close_burst |
( |
| self | ) |
|
|
protected |
◆ _frame()
| None sdrforge.weather.same_burst.SameBurstDetector._frame |
( |
| self, |
|
|
np.ndarray | frame ) |
|
protected |
◆ feed()
| None sdrforge.weather.same_burst.SameBurstDetector.feed |
( |
| self, |
|
|
np.ndarray | pcm ) |
Provide feed behavior.
- Parameters
-
| self | The current instance. |
| pcm | The pcm value. |
◆ finish()
| SameMessages sdrforge.weather.same_burst.SameBurstDetector.finish |
( |
| self | ) |
|
Finish pending frames, decode bursts, and return confirmed messages.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ reset()
| None sdrforge.weather.same_burst.SameBurstDetector.reset |
( |
| self | ) |
|
Provide reset behavior.
- Parameters
-
| self | The current instance. |
◆ _active
| bool sdrforge.weather.same_burst.SameBurstDetector._active = False |
|
protected |
◆ _decoded
| list sdrforge.weather.same_burst.SameBurstDetector._decoded = [] |
|
protected |
◆ _pending
| sdrforge.weather.same_burst.SameBurstDetector._pending = np.empty(0, dtype=np.float32) |
|
protected |
◆ _quiet
| int sdrforge.weather.same_burst.SameBurstDetector._quiet = 0 |
|
protected |
◆ _truncated
| bool sdrforge.weather.same_burst.SameBurstDetector._truncated = False |
|
protected |
◆ capture
◆ frame_samples
| sdrforge.weather.same_burst.SameBurstDetector.frame_samples = max(1, round(sample_rate * frame_ms / 1000)) |
◆ min_tone_fraction
| sdrforge.weather.same_burst.SameBurstDetector.min_tone_fraction = min_tone_fraction |
◆ sample_rate
| sdrforge.weather.same_burst.SameBurstDetector.sample_rate = sample_rate |
◆ silent_frames
| sdrforge.weather.same_burst.SameBurstDetector.silent_frames = max(1, (silence_ms + frame_ms - 1) // frame_ms) |
◆ threshold_rms
| sdrforge.weather.same_burst.SameBurstDetector.threshold_rms = threshold_rms |
◆ tone_gate
| sdrforge.weather.same_burst.SameBurstDetector.tone_gate = tone_gate |
The documentation for this class was generated from the following file: