/usr/share/stellarium/scripts/sun.ssc is in stellarium-data 0.15.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | //
// Name: Sun from different planets
// Author: Alexander Wolf
// License: Public Domain
// Version: 2.0
// Description: Look at the Sun from big planets of Solar System and Pluto.
//
var planets = new Array("Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto");
var atm = new Array(false, true, true, true, true, true, true, true, false);
var landscapes = new Array("moon", "moon", "garching", "mars", "saturn", "saturn", "saturn", "saturn", "moon");
var dates = new Array(2457728.645058,2457463.228403,2457381.978414,2457728.353391,2457728.289502,2453345.164502,2451887.227002,2451887.060336,2457426.060336);
var psizes = new Array("1°12′33″","0°44′25″","0°32′00″","0°19′19″","0°6′21″","0°3′18″","0°1′36″","0°1′4″","0°0′59″");
var atmosphere = LandscapeMgr.getFlagAtmosphere();
var fog = LandscapeMgr.getFlagFog();
var location = core.getObserverLocation();
core.wait(1);
SolarSystem.setFlagLabels(false);
LabelMgr.deleteAllLabels();
core.clear("natural");
core.setGuiVisible(false);
core.wait(3);
core.setTimeRate(0);
for (i=0; i<planets.length; i++)
{
core.setObserverLocation(0, 0, 1, 5, "", planets[i]);
core.setJDay(dates[i]);
LandscapeMgr.setFlagAtmosphere(atm[i]);
LandscapeMgr.setFlagFog(atm[i]);
LandscapeMgr.setCurrentLandscapeID(landscapes[i]);
core.selectObjectByName("Sun", false);
var pname = LabelMgr.labelScreen("Sun from " + planets[i], 20, 20, false, 20, "#AA0000");
var psize = LabelMgr.labelScreen("Angular size of Sun is " + psizes[i], 20, 50, false, 20, "#AA0000");
LabelMgr.setLabelShow(pname, true);
LabelMgr.setLabelShow(psize, true);
StelMovementMgr.setFlagTracking(true);
core.wait(3);
StelMovementMgr.zoomTo(1.8, 1);
core.wait(3);
StelMovementMgr.zoomTo(120, 1);
core.wait(5);
LabelMgr.setLabelShow(pname, false);
LabelMgr.setLabelShow(psize, false);
}
core.clear("natural");
core.setGuiVisible(true);
core.goHome();
|