forked from Stellarium/stellarium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
saturnian_analemma.ssc
61 lines (56 loc) · 1.83 KB
/
saturnian_analemma.ssc
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
//
// Author: Alexander Wolf
// Version: 1.1
// License: Public Domain
// Name: Saturnian analemma
// Description: A demonstration of the analemma - the path of the Sun across the sky during the year on Saturn.
//
include("i18n.inc");
core.goHome();
var JD = core.getJDay();
var landscapeID = LandscapeMgr.getCurrentLandscapeID();
var color = "#aa0000";
core.setGuiVisible(false);
label = LabelMgr.labelScreen(tr("Saturnian analemma"), 20, 20, false, 30, color);
LabelMgr.setLabelShow(label, true);
core.wait(1);
core.setTimeRate(1);
core.clear("natural");
core.setObserverLocation(0, 40, 1, 1, "", "Saturn");
core.setDate("2019-06-26T13:23:30", "UTC");
LandscapeMgr.setCurrentLandscapeID("saturn");
core.selectObjectByName("Sun", false);
StelMovementMgr.setFlagTracking(false);
StelMovementMgr.autoZoomIn(3);
core.wait(5);
StelMovementMgr.zoomTo(80, 1);
core.wait(2);
GridLinesMgr.setFlagAzimuthalGrid(true);
GridLinesMgr.setFlagMeridianLine(true);
StelMovementMgr.zoomTo(110, 3);
core.wait(5);
for (i=0; i<120; i++)
{
core.setDate("+200 sols");
var info = core.getObjectInfo("Sun");
var az = info.azimuth;
var alt = info.altitude;
MarkerMgr.markerHorizon(az, alt, true, "gear", color, 5);
labelSol = LabelMgr.labelScreen(tr("Solar day") + " " + i*200, 20, 60, false, 20, color);
LabelMgr.setLabelShow(labelSol, true);
core.wait(.25);
LabelMgr.setLabelShow(labelSol, false);
}
labelFinal = LabelMgr.labelScreen(tr("Yearly path of the Sun"), 20, 60, false, 20, color);
LabelMgr.setLabelShow(labelFinal, true);
SolarSystem.setFlagPlanets(false);
core.wait(8);
SolarSystem.setFlagPlanets(true);
LabelMgr.setLabelShow(labelFinal, false);
core.clear("natural");
LabelMgr.deleteAllLabels();
MarkerMgr.deleteAllMarkers();
LandscapeMgr.setCurrentLandscapeID(landscapeID);
core.setJDay(JD);
core.goHome();
core.setGuiVisible(true);