File: phobos_phun_2.ssc

package info (click to toggle)
stellarium 25.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,307,224 kB
  • sloc: ansic: 317,377; cpp: 214,435; xml: 48,592; javascript: 26,073; python: 2,113; perl: 734; sh: 247; makefile: 192; pascal: 169
file content (45 lines) | stat: -rw-r--r-- 966 bytes parent folder | download | duplicates (2)
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
//
// Author: Qam1
// Name: Double eclipse from Deimos in 2031
// Version: 5.1
// License: Public Domain
// Description: Just before Mars eclipses the sun, Phobos pops out from behind and eclipses it first. Takes place between Taurus and Gemini on July 23, 2031.
//


core.setDate("2031-07-23T09:53:30", "utc");

LandscapeMgr.setFlagAtmosphere(false);
LandscapeMgr.setFlagFog(false);
LandscapeMgr.setCurrentLandscapeID("moon");

long = -52.43;
alt = 0

while (alt < 20)
{
    long = long + 45;

    if (long > 360)
    {
	long = long - 360
    }

    core.setObserverLocation(long, 34.34, 17, 0, "", "Deimos");

    core.wait(0.1);

    SData = core.getObjectInfo("Sun");
    alt = SData["altitude"];
}

core.selectObjectByName("Sun", pointer = true);

StelMovementMgr.setFlagTracking(true);
StelMovementMgr.zoomTo(29, 1);

core.setTimeRate(30);
core.wait(20);
StelMovementMgr.zoomTo(14, 1); 
core.setTimeRate(30);
core.selectObjectByName("Phobos", pointer = true);