Spread-F Analyzer (pynasonde.vipir.analysis.spread_f)¶
Spread-F Detection and Characterisation
Classifies ionograms as range spread-F, frequency spread-F, mixed, or none, based on height IQR per frequency step and echo persistence beyond foF2.
Theory¶
Spread-F appears as diffuse scattering from F-layer irregularities:
- Range spread-F — echoes at a given frequency spread over a wide height range (height IQR > threshold). Caused by large-scale bottomside irregularities.
- Frequency spread-F — echoes persist above the vertical-incidence foF2
(
fsF2 − foF2 > 0). Caused by field-aligned irregularities that scatter signals obliquely. - Mixed spread-F — both criteria are simultaneously met.
Classes¶
pynasonde.vipir.analysis.spread_f
¶
spread_f.py — Spread-F detection and characterisation.
Spread-F refers to the diffuse scattering of radio waves from irregular structures in the F-layer, producing a "spread" appearance on the ionogram instead of a clean single-layer trace. Two principal manifestations exist:
-
Range spread-F — echoes at a given frequency are spread over a wide range of virtual heights (> ~100 km IQR). Caused by large-scale irregularities in the bottomside F-layer.
-
Frequency spread-F — echoes persist beyond the critical frequency foF2 (
fsF2 > foF2). Caused by field-aligned irregularities that scatter the signal obliquely, allowing returns above the vertical-incidence critical frequency. -
Mixed spread-F — both height and frequency spreading are present simultaneously.
This module provides:
:class:SpreadFAnalyzer
Processor — computes spread-F metrics from a filtered echo DataFrame and
(optionally) a mode-labelled DataFrame produced by
:class:~pynasonde.vipir.analysis.polarization.PolarizationClassifier.
:class:SpreadFResult
Output dataclass — holds the classification, scalar metrics, and a
per-height-bin EP statistics table.
References¶
Aarons, J. (1993). The longitudinal morphology of equatorial F-layer irregularities relevant to their occurrence. Space Science Reviews, 63, 209–243.
Hysell, D. L. (2000). An overview and synthesis of plasma irregularities in equatorial spread F. Journal of Atmospheric and Solar-Terrestrial Physics, 62, 1037–1056.
SpreadFAnalyzer
¶
Detect and characterise spread-F from a filtered echo DataFrame.
Parameters¶
e_layer_height_range_km
(min, max) height window used to isolate E-layer echoes (km).
Default (90, 160).
f_layer_height_range_km
(min, max) height window used to isolate F-layer echoes (km).
Default (160, 800).
height_spread_threshold_km
An F-layer frequency step is flagged as range-spread when its echo
height IQR exceeds this value (km). Default 100.0.
freq_spread_threshold_mhz
Frequency spread is reported when fsF2 − foF2 exceeds this value
(MHz). Default 0.5.
height_bin_km
Bin size for the per-height EP statistics table (km). Default 50.0.
mode_col
Name of the wave-mode column in the DataFrame (added by
:class:~pynasonde.vipir.analysis.polarization.PolarizationClassifier).
When the column is absent all echoes are treated as O-mode.
Default "mode".
min_echoes_per_freq
Minimum number of echoes at a frequency step before the height-IQR
test is applied. Default 3.
Examples¶
from pynasonde.vipir.analysis.polarization import PolarizationClassifier from pynasonde.vipir.analysis.spread_f import SpreadFAnalyzer pol = PolarizationClassifier().fit(df) sfr = SpreadFAnalyzer().fit(pol.annotated_df) print(sfr.summary())
Source code in pynasonde/vipir/analysis/spread_f.py
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 | |
fit(df)
¶
Run spread-F analysis on a filtered echo DataFrame.
Parameters¶
df
Echo DataFrame — must contain frequency_khz, height_km,
and optionally residual_deg and mode columns.
Returns¶
SpreadFResult
Source code in pynasonde/vipir/analysis/spread_f.py
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 | |
SpreadFResult
dataclass
¶
Spread-F detection and characterisation for one ionogram sounding.
Parameters¶
classification
One of "none", "range", "frequency", or "mixed".
freq_spread_mhz
fsF2 − foF2 (MHz). Positive values indicate frequency spread-F.
NaN when foF2 could not be determined.
height_iqr_km
Median inter-quartile range of echo heights across all F-layer frequency steps (km). Large values indicate range spread-F.
spread_onset_freq_mhz
Frequency (MHz) at which height spreading first exceeds the threshold.
NaN when no range spread-F is detected.
fo_f2_mhz
Estimated foF2 used as the reference for frequency-spread assessment
(MHz). NaN when insufficient O-mode echoes were available.
pd.DataFrame
Columns: height_bin_km, ep_mean_deg, ep_std_deg,
n_echoes. One row per height bin.
pd.DataFrame
Columns: frequency_mhz, height_iqr_km, is_spread.
One row per frequency step in the F-layer.
Source code in pynasonde/vipir/analysis/spread_f.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
to_dataframe()
¶
summary()
¶
One-line text summary.
Source code in pynasonde/vipir/analysis/spread_f.py
plot(ax=None)
¶
Plot height IQR vs frequency and EP mean vs height bin.
Parameters¶
ax
Existing axes. A new figure is created when None.
Returns¶
matplotlib.axes.Axes
Source code in pynasonde/vipir/analysis/spread_f.py
SpreadFAnalyzer¶
Quick start¶
from pynasonde.vipir.analysis import SpreadFAnalyzer, PolarizationClassifier
clf = PolarizationClassifier(o_mode_sign=-1)
pol = clf.fit(echo_df)
sf = SpreadFAnalyzer()
result = sf.fit(pol.annotated_df)
print(result.summary())
# SpreadFResult: classification='range' foF2=8.20 MHz
# freq_spread=0.00 MHz height_IQR=145.3 km
result.plot()
SpreadFResult dataclass¶
| Field | Type | Description |
|---|---|---|
classification |
str |
"none", "range", "frequency", or "mixed" |
freq_spread_mhz |
float |
fsF2 − foF2 (MHz); NaN when foF2 unavailable |
height_iqr_km |
float |
Median height IQR across F-layer frequency steps (km) |
spread_onset_freq_mhz |
float |
Frequency where height spread first exceeds threshold; NaN when absent |
fo_f2_mhz |
float |
Estimated foF2 (MHz); NaN when insufficient O-mode echoes |
ep_by_height |
DataFrame |
Columns: height_bin_km, ep_mean_deg, ep_std_deg, n_echoes |
range_spread_flags |
DataFrame |
Columns: frequency_mhz, height_iqr_km, is_spread |
Methods¶
result.summary() # one-line summary string
result.to_dataframe() # returns ep_by_height DataFrame
result.plot() # height IQR vs frequency + EP mean vs height bin
References¶
- Aarons, J. (1993). Longitudinal morphology of equatorial F-layer irregularities. Space Science Reviews, 63, 209–243.
- Hysell, D. L. (2000). Overview of plasma irregularities in equatorial spread F. J. Atmos. Solar-Terr. Phys., 62, 1037–1056.
See Also¶
- Analysis Overview
- Polarization Classifier — provides mode-labelled input
- Irregularities — EP spectral index analysis