/usr/share/stellarium/scripts/supernova.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 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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | //
// Author: Alexander Wolf
// Version: 1.0
// License: Public Domain
// Name: Tycho's Supernova
// Description: Flash of the supernova observed by Tycho Brahe in 1572. The Supernovae plugin has to be enabled.
//
var color = "#9999FF";
core.goHome();
core.wait(1);
core.setGuiVisible(false);
core.clear("natural");
LabelMgr.deleteAllLabels();
SolarSystem.setFlagLabels(false);
var label = LabelMgr.labelScreen("Europe, Uraniborg.", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.setObserverLocation("Uraniborg, Denmark", 2);
core.wait(4);
LabelMgr.setLabelShow(label, false);
core.wait(1);
label = LabelMgr.labelScreen("Evening of 20 October 1572", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.setDate("1572-10-20T17:00:00", "utc");
core.wait(3);
StelMovementMgr.zoomTo(200, 4);
core.wait(5);
LabelMgr.deleteAllLabels();
label = LabelMgr.labelScreen("Constellation Cassiopeia", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
ConstellationMgr.setFlagIsolateSelected(true);
ConstellationMgr.setFlagArt(false);
ConstellationMgr.setFlagLabels(false);
ConstellationMgr.setFlagLines(true);
ConstellationMgr.setFlagBoundaries(false);
core.selectObjectByName("Cassiopeia", false);
core.wait(1);
core.setMountMode("equatorial");
StelMovementMgr.setFlagTracking(true);
StelMovementMgr.zoomTo(60, 2);
core.wait(3);
ConstellationMgr.setFlagLines(false);
core.wait(.1);
LabelMgr.deleteAllLabels();
label = LabelMgr.labelScreen("5 days later...", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.setDate("+5 days");
core.wait(2);
LabelMgr.deleteAllLabels();
label = LabelMgr.labelScreen("Next 3 days...", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.setDate("+3 days");
core.wait(2);
LabelMgr.deleteAllLabels();
label = LabelMgr.labelScreen("New star! But people have not seen it yet...", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.wait(2);
LabelMgr.deleteAllLabels();
label = LabelMgr.labelScreen("Evening of 31 October 1572", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.setDate("1572-10-31T17:00:00", "utc");
core.wait(2);
for (i=1; i<12; i++)
{
LabelMgr.deleteAllLabels();
label = LabelMgr.labelScreen("Evening of " + i + " November 1572", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.setDate("+1 day");
if (i==6)
{
core.wait(.5);
label = LabelMgr.labelScreen("Hooray! First observations in Korea and Europe.", 20, 50, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.wait(.5);
}
if (i==8)
{
core.wait(.5);
label = LabelMgr.labelScreen("First observations in China.", 20, 50, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.wait(.5);
}
if (i==11)
{
core.wait(.5);
label = LabelMgr.labelScreen("The clouds are gone and Tycho Brahe the first time watching a new star!", 20, 50, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.wait(1);
}
core.wait(2);
}
LabelMgr.deleteAllLabels();
label = LabelMgr.labelScreen("Next 60 days...", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.wait(.1);
for(i=0; i<60; i++)
{
core.setDate("+1 day");
core.wait(.1);
}
LabelMgr.deleteAllLabels();
label = LabelMgr.labelScreen("Next other 40 days...", 20, 20, false, 20, color);
LabelMgr.setLabelShow(label, true);
core.wait(.1);
for(i=0; i<40; i++)
{
core.setDate("+1 day");
core.wait(.1);
}
LabelMgr.deleteAllLabels();
core.setMountMode("azimuthal");
core.wait(.1);
core.clear("natural");
core.wait(.1);
core.goHome();
core.wait(1);
core.setGuiVisible(true);
|