File: morsels_1.ssc

package info (click to toggle)
stellarium 24.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 911,396 kB
  • sloc: ansic: 317,377; cpp: 204,602; xml: 48,590; javascript: 26,348; python: 1,254; perl: 1,108; sh: 207; makefile: 190; pascal: 169
file content (101 lines) | stat: -rw-r--r-- 5,254 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
//
// Name: Jupiter and triple shadow phenomena
// Author: Alexander Wolf
// License: Public Domain
// Version: 1.1
// Shortcut: Ctrl+D,M,1
// Description: Demonstration of the mid-time of rare events - triple shadow phenomena of the satellites of Jupiter from 1900 to 2100. All events are given in Dynamical Time.
//

// Made on Stellarium 0.18.2; Translatable with 0.19.0

include("i18n.inc");

// List of phenomena (date, time, comment for satellites)
var phenomenalist = [["1901-12-30", "06:12", tr("Shadows from Io, Ganymede and Callisto")],
                     ["1908-05-16", "11:02", tr("Shadows from Io, Ganymede and Callisto")],
                     ["1909-07-25", "20:29", tr("Shadows from Io, Europe and Callisto")],
                     ["1915-07-29", "10:23", tr("Shadows from Io, Ganymede and Callisto")],
                     ["1919-03-14", "08:40", tr("Shadows from Io, Europe and Callisto")],
                     ["1938-06-01", "14:06", tr("Shadows from Io, Europe and Callisto")],
                     ["1949-02-23", "19:38", tr("Shadows from Io, Europe and Callisto")],
                     ["1949-12-05", "17:37", tr("Shadows from Io, Ganymede and Callisto")],
                     ["1956-04-21", "22:00", tr("Shadows from Io, Ganymede and Callisto")],
                     ["1966-06-28", "07:16", tr("Shadows from Europe, Ganymede and Callisto")],
                     ["1967-02-17", "19:39", tr("Shadows from Io, Europe and Callisto")],
                     ["1974-05-01", "18:10", tr("Shadows from Io, Europe and Callisto")],
                     ["1985-01-23", "23:03", tr("Shadows from Io, Europe and Callisto")],
                     ["1997-01-30", "06:16", tr("Shadows from Io, Europe and Callisto")],
                     ["1997-11-11", "04:42", tr("Shadows from Io, Ganymede and Callisto")],
                     ["2004-03-28", "08:10", tr("Shadows from Io, Ganymede and Callisto")],
                     ["2013-10-12", "05:05", tr("Shadows from Io, Europe and Callisto")],
                     ["2014-06-03", "18:57", tr("Shadows from Europe, Ganymede and Callisto")],
                     ["2015-01-24", "06:41", tr("Shadows from Io, Europe and Callisto")],
                     ["2032-03-20", "12:00", tr("Shadows from Io, Ganymede and Callisto")],
                     ["2032-12-30", "10:29", tr("Shadows from Io, Europe and Callisto")],
                     ["2038-08-05", "17:46", tr("Shadows from Io, Ganymede and Callisto")],
                     ["2045-01-05", "17:29", tr("Shadows from Io, Europe and Callisto")],
                     ["2045-10-17", "15:57", tr("Shadows from Io, Ganymede and Callisto")],
                     ["2061-09-17", "16:32", tr("Shadows from Io, Europe and Callisto")],
                     ["2062-05-10", "05:53", tr("Shadows from Europe, Ganymede and Callisto")],
                     ["2062-12-30", "17:42", tr("Shadows from Io, Europe and Callisto")],
                     ["2073-09-23", "23:45", tr("Shadows from Io, Europe and Callisto")],
                     ["2080-02-24", "23:14", tr("Shadows from Io, Ganymede and Callisto")],
                     ["2080-12-05", "21:49", tr("Shadows from Io, Europe and Callisto")],
                     ["2091-08-31", "02:29", tr("Shadows from Io, Europe and Callisto")],
                     ["2092-12-12", "05:09", tr("Shadows from Io, Europe and Callisto")]
                    ];

var timestep = 10;
var color = "#00AAFF";
var today = core.getJDay();
core.clear("starchart");
ConstellationMgr.setFlagBoundaries(false);
ConstellationMgr.setFlagLines(false);
ConstellationMgr.setFlagLabels(false);
GridLinesMgr.setFlagGridlines(false);
NebulaMgr.setFlagHints(false);
StelMovementMgr.setEquatorialMount(true);
core.setGuiVisible(false);
var id = LabelMgr.labelScreen(tr("Triple shadow phenomena of the satellites of Jupiter"), 20, 20, false, 36, color);
LabelMgr.setLabelShow(id, true);
var ph = LabelMgr.labelScreen(phenomenalist.length + " " + tr("phenomena in all"), 20, 65, false, 28, color);
LabelMgr.setLabelShow(ph, true);
core.wait(2);
core.selectObjectByName("Jupiter", false);
StelMovementMgr.setFlagTracking(true);
StelMovementMgr.zoomTo(0.02, 3);
core.wait(3);
var deltaT = core.getDeltaTAlgorithm();
core.setDeltaTAlgorithm("EspenakMeeus");

for (i=0; i<phenomenalist.length; i++)
{
	var d = phenomenalist[i][0];
	var t = phenomenalist[i][1];
	var event = d + "T" + t + ":00";
	var en = LabelMgr.labelScreen(tr("Event #")+ (i+1), 20, 130, false, 20, color);
	var ed = LabelMgr.labelScreen(tr("Date:") + " " + d, 20, 155, false, 20, color);
	var et = LabelMgr.labelScreen(tr("Time:") + " " + t, 20, 180, false, 20, color);
	var es = LabelMgr.labelScreen(phenomenalist[i][2], 20, 205, false, 20, color);
	
	core.setDate(event, "utc", true);
	LabelMgr.setLabelShow(en, true);
	LabelMgr.setLabelShow(ed, true);
	LabelMgr.setLabelShow(et, true);
	LabelMgr.setLabelShow(es, true);

	core.wait(timestep);

	LabelMgr.setLabelShow(en, false);
	LabelMgr.setLabelShow(ed, false);
	LabelMgr.setLabelShow(et, false);
	LabelMgr.setLabelShow(es, false);
}
LabelMgr.setLabelShow(id, false);
LabelMgr.setLabelShow(ph, false);
core.clear("natural");
core.setGuiVisible(true);
core.setDeltaTAlgorithm(deltaT);
core.setJDay(today);
core.goHome();