KCollins / conjugate_map

Files and scripts relating to geomagnetic conjugate maps.
MIT License
0 stars 1 forks source link

ENH: Plot field line trace #13

Open KCollins opened 5 months ago

KCollins commented 5 months ago

Description

Add a function to produce plots of field line traces. (W2NAF already has some code to do this with geopack, if I recall correctly.)

Potential impact

Potential solution(s)

When performing a field line trace, include an option (perhaps called from findconj?) to generate and save a .csv/.pkl/df/plot of the field line. Might be 2D or 3D. Could be useful to generate for multiple stations. cf. https://book.magneticearth.org/geomag-obs-models/03a_magnetic-field-line-tracing

Alternatives

See if geopack or another package already provides this functionality before rewriting it.

Additional context

N/A

KCollins commented 4 months ago

Per W2RUF, Tsyganenko 96 requires more parameters than 87. Would be good to have as an option but will require handling additional variables.

aburrell commented 4 months ago

If these are added as kwargs or optional kwargs, it will have minimal impact on the existing classes/functions.

KCollins commented 1 month ago

I've been using plotly express for visualizations. It can't handle 3D plots, but perhaps globe.gl can: https://github.com/vasturiano/globe.gl/tree/master/example/random-paths