jgieseler / solarmach

Python package of the multi-spacecraft longitudinal configuration plotter Solar-MACH
https://solarmach.readthedocs.io
BSD 3-Clause "New" or "Revised" License
26 stars 6 forks source link

fix & add option to define target radius of backmapping #25

Closed jgieseler closed 1 year ago

jgieseler commented 1 year ago

Before, the magnetic footpoint at the Sun had been calculated for a radial distance of zero, which is unphysical (though it doesn't make a big difference in the outcome). Now introduced is an (hidden) option to define to which radial distance (in solar radii) the backmapping should be carried out:

sm = SolarMACH(date, bodies, vsw, ref_long, ref_lat, coord_sys, target_solar_radius=2.5)

This is by default 1, so the radius of the Sun. Setting it to 0 provides the behaviour so far; 2.5 would correspond to the standard source surface in a PFSS model.