jgieseler / Solar-MACH

The Solar MAgnetic Connection Haus (Solar-MACH) tool is a multi-spacecraft longitudinal configuration plotter
https://solar-mach.github.io
15 stars 7 forks source link

Bug while change from Carrington to Stoneyhurst coords if reference long is >180 #16

Open jgieseler opened 1 year ago

jgieseler commented 1 year ago

If the user chooses to plot a reference with a Carrington longitude greater than 180, and then changes the coordinate system to Stoneyhurst, this causes a streamlit.errors.StreamlitAPIException. Probably because the same reference longitude value is still used, but Stoneyhurst longitudes are defined from -180 to 180 (in contrast to 0 to 360 for Carrington).

1st step: image

2nd step: image

jgieseler commented 1 year ago

The other way around (selecting a Stoneyhurst longitude <0, then changing to Carrington) is caught by the system, showing a pop-up notification "Please select a value that is no less than 0."