Skip to content

feat: TA16 RBF model, with OMNI-driven inputs in GSW - #50

Merged
Beforerr merged 2 commits into
mainfrom
push-vmwxwpyumqon
Nov 7, 2026
Merged

Beforerr merged 2 commits into
mainfrom
push-vmwxwpyumqon

Conversation

@Beforerr

@Beforerr Beforerr commented Nov 6, 2026

Copy link
Copy Markdown
Member
  • TA16: Tsyganenko & Andreeva (2016) RBF model, checked against TA16_RBF.f (gfortran) to ~1e-9
  • Driven(TA16) / OMNI(): Pdyn, SYM-Hc (±15 min), Newell N-index and ⟨By⟩ (trailing 30 min, matching Tsyganenko's archived driver files), evaluated in GSW from the solar wind velocity with Earth's orbital speed added back to OMNI Vy
  • Driven evaluates in the model's own frame (evaluate_model via getcsys) instead of fixed GSM + dipole_tilt(t)
  • refactor: OMNI observations are fetched lazily per need and cached per day (shared 5-min day, hourly Kp/Dst, TS04 13-day W history, TA16-only Bx/V); model inputs are derived per call. T89 no longer fetches 5-min data, T01/T96 no longer fetch 13 days

Requires GeoCotrans 0.3.9 (GSW, dipole_tilt in any frame), not yet registered.

Driven(TA16) evaluates in GSW of the OMNI velocity with Earth's orbital
29.78 km/s added back to Vy. Against THEMIS-D/E and Van Allen Probes A
(40 random days 2016-2018, 115 spacecraft-days), per-day mean squared
residual changes vs GSM by -4.8 ± 1.4 nT² (better on 72/115 days); GSW
from OMNI's Vy as is, as in Tsyganenko's driver files, -1.1 ± 1.5 nT².
Requires GeoCotrans 0.3.9 (GSW).
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark Results (Julia v1)

Time benchmarks
main 0fb1986... main / 0fb1986...
components/birk_tot 3.99 ± 0.03 μs 4.03 ± 0.041 μs 0.99 ± 0.013
components/deformed 1.2 ± 0.01 μs 1.2 ± 0.001 μs 1 ± 0.0084
components/dipole_shield 0.431 ± 0.001 μs 0.431 ± 0.001 μs 1 ± 0.0033
components/full_rc 2.6 ± 0.019 μs 2.6 ± 0.02 μs 1 ± 0.011
components/prc_quad 0.902 ± 0.01 μs 0.892 ± 0.011 μs 1.01 ± 0.017
components/rc_symm 0.361 ± 0.001 μs 0.36 ± 0.01 μs 1 ± 0.028
components/tail_shield 0.421 ± 0.01 μs 0.421 ± 0.01 μs 1 ± 0.034
kernels/ap_rc 0.2 ± 0.001 μs 0.2 ± 0.01 μs 1 ± 0.05
kernels/apprc 0.391 ± 0.001 μs 0.391 ± 0.001 μs 1 ± 0.0036
kernels/br_prc_q 0.281 ± 0.001 μs 0.281 ± 0.001 μs 1 ± 0.005
kernels/bt_prc_q 0.29 ± 0.01 μs 0.29 ± 0.01 μs 1 ± 0.049
kernels/one_cone 0.26 ± 0.001 μs 0.261 ± 0.001 μs 0.996 ± 0.0054
kernels/rc_shield_sy 0.441 ± 0.01 μs 0.441 ± 0.01 μs 1 ± 0.032
models/T01 8.93 ± 0.05 μs 8.94 ± 0.051 μs 0.999 ± 0.008
models/T89 0.18 ± 0.009 μs 0.18 ± 0.01 μs 1 ± 0.075
models/T96 3.67 ± 0.03 μs 3.67 ± 0.02 μs 1 ± 0.0098
models/TA16 24.8 ± 0.11 μs 25.1 ± 0.07 μs 0.991 ± 0.0052
models/TS04 9.08 ± 0.041 μs 9.07 ± 0.05 μs 1 ± 0.0071
time_to_load 0.243 ± 0.002 s 0.242 ± 0.00025 s 1 ± 0.0083
Memory benchmarks
main 0fb1986... main / 0fb1986...
components/birk_tot 0 allocs: 0 B 0 allocs: 0 B
components/deformed 0 allocs: 0 B 0 allocs: 0 B
components/dipole_shield 0 allocs: 0 B 0 allocs: 0 B
components/full_rc 0 allocs: 0 B 0 allocs: 0 B
components/prc_quad 0 allocs: 0 B 0 allocs: 0 B
components/rc_symm 0 allocs: 0 B 0 allocs: 0 B
components/tail_shield 0 allocs: 0 B 0 allocs: 0 B
kernels/ap_rc 0 allocs: 0 B 0 allocs: 0 B
kernels/apprc 0 allocs: 0 B 0 allocs: 0 B
kernels/br_prc_q 0 allocs: 0 B 0 allocs: 0 B
kernels/bt_prc_q 0 allocs: 0 B 0 allocs: 0 B
kernels/one_cone 0 allocs: 0 B 0 allocs: 0 B
kernels/rc_shield_sy 0 allocs: 0 B 0 allocs: 0 B
models/T01 0 allocs: 0 B 0 allocs: 0 B
models/T89 0 allocs: 0 B 0 allocs: 0 B
models/T96 0 allocs: 0 B 0 allocs: 0 B
models/TA16 0 allocs: 0 B 0 allocs: 0 B
models/TS04 0 allocs: 0 B 0 allocs: 0 B
time_to_load 0.2 k allocs: 11.8 kB 0.2 k allocs: 11.8 kB 1

@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.00000% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/ta16.jl 90.24% 4 Missing ⚠️
src/driven.jl 92.30% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Beforerr
Beforerr merged commit f3947f8 into main Nov 7, 2026
5 checks passed
@Beforerr
Beforerr deleted the push-vmwxwpyumqon branch November 7, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant