// Stellarium Script generated by astrocalc.utils (animations_script_tpl) // CC-BY Sergio Díaz, 2023 var jdi = [ 2460966.940442, 2461386.259035, 2463311.942954, 2463362.10433, 2463462.314428, 2463596.763075, 2465306.492832, 2465340.207996, 2465490.466905, 2465641.147494, 2465775.619153, 2467517.032021, 2467985.970863, 2468170.970119, 2468270.942693 ]; var jdf = [ 2460967.178609, 2461386.535091, 2463312.095466, 2463362.517324, 2463462.616357, 2463597.001701, 2465306.779465, 2465340.41407, 2465490.88681, 2465641.449505, 2465775.859452, 2467517.234776, 2467986.400378, 2468171.2081, 2468271.265257 ]; const margin = 10; // minutes const h_to_min = 24*60; function getDateHM() { return core.getDate('local').replace('T', ' ').slice(0, -3); } var lbl = LabelMgr.labelObject('', 'Jupiter', true, 36, '#ffffff', 'N', 250); core.wait(0.8); core.setGuiVisible(false); core.setMountMode('equatorial'); core.setTimeRate(0.0); core.selectObjectByName('Jupiter', true); core.setSelectedObjectInfo('None'); StelMovementMgr.setAutoMoveDuration(0.0); StelMovementMgr.setFlagTracking(true); StelMovementMgr.zoomTo(60/3600, 0.0); SolarSystem.setFlagPointer(false); SolarSystem.setFlagOrbits(false); core.setJDay(jdi[0] - margin/h_to_min); LabelMgr.setLabelText(lbl, getDateHM()); function display_event(i) { core.setJDay(jdi[i] - margin/h_to_min); const end = jdf[i] + margin/h_to_min; core.setTimeRate(3000); while (core.getJDay() <= end) { LabelMgr.setLabelText(lbl, getDateHM()); core.wait(0.1); } core.setTimeRate(0.0); } num_events = jdi.length; for (var i = 0; i < num_events; i++) { display_event(i); core.wait(1); } LabelMgr.deleteAllLabels(); core.setGuiVisible(true);