Closed jameswilburlewis closed 2 months ago
Actually, the problem is with the pyspedas geopack test suite, not geopack itself. After interpolating the positions onto the proton_speed support data, there are NaNs in the position variable getting passed to geopack.
I haven't noticed these before, but under python 3.9 and 3.12, I'm seeing some runtime warnings from the t01 and t96 models:
t96:
t01:
The relevant code in geopack.py is in the igrf_geo routine:
So I guess something is wrong with an R value being passed in (maybe NaN or inf?), the np.int64 cast fails returning 0, then you get the divide-by-zero error in the next line.