forked from Stellarium/stellarium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phobos_phun_1.ssc
47 lines (33 loc) · 1.01 KB
/
phobos_phun_1.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
//
// Author: Qam1
// Name: Double eclipse from Deimos in 2017
// Version 5.2
// License: Public Domain
// Description: Just before Mars eclipses the sun, Phobos pops out from behind and eclipses it first. Takes place between Scorpio and Sagittarius on April 26, 2017.
//
core.setDate("2017-04-26T18:48:50", "utc");
long = 0.61;
alt = 0
while (alt < 20)
{
long = long + 45;
if (long > 360)
{
long = long - 360
}
core.setObserverLocation(long, -37.50, 17, 0, "", "Deimos");
core.wait(0.1);
SData = core.getObjectInfo("Sun");
alt = SData["altitude"];
}
LandscapeMgr.setFlagAtmosphere(false);
LandscapeMgr.setFlagFog(false);
LandscapeMgr.setFlagLandscapeSetsLocation(false);
LandscapeMgr.setCurrentLandscapeID("moon");
core.selectObjectByName("Sun", pointer = true);
StelMovementMgr.setFlagTracking(true);
StelMovementMgr.zoomTo(14, 1);
core.setTimeRate(10);
core.wait(25);
core.selectObjectByName("Phobos", pointer = true);
core.setTimeRate(10);