// Stellarium Script generated by astrocalc // CC-BY Sergio Díaz, 2023 var jdi = [2460443.9761026762, 2460459.917288582, 2460475.873966964, 2460491.8258143067, 2460507.771203452, 2460523.7191786077, 2460635.331751113, 2460651.279830759, 2460667.2341469307, 2460683.191867739, 2460699.151813615, 2460715.0539927687, 2460731.0256672166, 2460747.0340643683, 2460763.0048605925, 2460778.9704950713, 2460794.9369906164, 2460810.9043784062, 2460826.8727778704, 2460842.8423055955, 2460858.813200039, 2460874.7857057448, 2460890.760248843, 2460906.7373761004, 2460922.718124797, 2460938.6998614524, 2460954.5661229724, 2460970.4537140727, 2460986.361552543, 2461002.2900100807, 2461018.239848786, 2461034.2124707205, 2461050.211080036, 2461066.245063706]; var jdf = [2460444.0389496638, 2460460.069768559, 2460476.05377419, 2460492.0085369432, 2460507.9350093734, 2460523.826532076, 2460635.439539382, 2460651.429276364, 2460667.4127506474, 2460683.3926330283, 2460699.369884372, 2460715.3449818995, 2460731.318178777, 2460747.2896414995, 2460763.315649134, 2460779.3221790604, 2460795.3006789945, 2460811.1601162776, 2460827.124202307, 2460843.0869113714, 2460859.0482619326, 2460875.0081441305, 2460890.966409964, 2460906.9226514474, 2460922.8760688566, 2460938.8501050286, 2460954.7740618084, 2460970.689402839, 2460986.609124751, 2461002.541134663, 2461018.4890822424, 2461034.4518462867, 2461050.423594134, 2461066.390213625]; const margin = 5; // minutes const h_to_min = 24*60; function zeroPad(n) { return String('00' + n).slice(-2); } function date() { return core.getDate('local').split('T')[0]; } LabelMgr.deleteAllLabels(); core.setMountMode('equatorial'); core.setTimeRate(0.0); core.selectObjectByName('Saturn', true); core.setSelectedObjectInfo('None'); StelMovementMgr.setAutoMoveDuration(0.0); StelMovementMgr.setFlagTracking(true); StelMovementMgr.zoomTo(35/3600, 0.0); SolarSystem.setFlagPointer(false); SolarSystem.setFlagOrbits(false); core.setJDay(jdi[0] - margin/h_to_min); //core.wait(5); function display_event(i) { const minutes = Math.ceil((jdf-jdi)*h_to_min + margin); const prefix = 'titan_transits_shadows_'+zeroPad(i)+'_' core.setJDay(jdi[i] - margin/h_to_min); var lbl = LabelMgr.labelObject(date(), 'Saturn', true, 36, '#ffffff', 'S'); core.wait(1); core.setTimeRate(5000.0); const end = jdf[i] + margin/h_to_min; while (core.getJDay() < end) { core.wait(0.1); //core.screenshot(prefix); } core.setTimeRate(0.0); core.wait(1); LabelMgr.deleteAllLabels(); } for (var i = 0; i < jdi.length; i++) { display_event(i); } //core.wait(5);