earth_4.ssc   earth_4.ssc 
// Author: Qam1 // Author: Qam1
// Name: Earth Events from Mars // Name: Earth Events from Mars
// License: Public Domain // License: Public Domain
// Version: 7.0 // Version: 8.0
// Description: Earth Events from Mars // Description: Earth Events from Mars
// Made on Stellarium 0.14.0 // Made on Stellarium 0.14.1
spd = 4; // speed for screen saver mode in seconds spd = 4; // speed for screen saver mode in seconds
long = -73.4 long = -73.4
lat = 30.1 lat = 30.1
y = core.getScreenHeight()/768; y = core.getScreenHeight()/768;
x = core.getScreenWidth()/1024; x = core.getScreenWidth()/1024;
wt = 0.05; wt = 0.05;
q = 0; q = 0;
skipping to change at line 1353 skipping to change at line 1353
il[255] = -31 il[255] = -31
im[255] = 0.0858 im[255] = 0.0858
ij[255] = 2 ij[255] = 2
id[256] = "2018-06-07T10:37:26" id[256] = "2018-06-07T10:37:26"
ik[256] = 2.103 ik[256] = 2.103
il[256] = 111 il[256] = 111
im[256] = 0.194 im[256] = 0.194
ij[256] = 27.3 ij[256] = 27.3
id[257] = "2018-06-21T12:51:02" id[257] = "2018-06-21T12:51:02"
ik[257] = 1.62 ik[257] = 1.62
il[257] = -179 il[257] = -148
im[257] = 0.2686 im[257] = 0.2686
ij[257] = 28.2 ij[257] = 28.2
id[258] = "2018-06-27T10:57:38" id[258] = "2018-06-27T10:57:38"
ik[258] = 0 ik[258] = 0
il[258] = -64 il[258] = -64
im[258] = 0.2259 im[258] = 0.2259
ij[258] = 13 ij[258] = 13
id[259] = "2018-07-05T00:09:51" id[259] = "2018-07-05T00:09:51"
ik[259] = 3.098 ik[259] = 3.098
il[259] = 170 il[259] = 170
skipping to change at line 67869 skipping to change at line 67869
txt1 = LabelMgr.labelScreen(" Neptune", 750 * x, (sty+pt)*y, false, 15, " #F9E397"); txt1 = LabelMgr.labelScreen(" Neptune", 750 * x, (sty+pt)*y, false, 15, " #F9E397");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
pt = pt + 20 pt = pt + 20
txt1 = LabelMgr.labelScreen("Quit", 750 * x, (sty+pt)*y, false, 15, "#F9E39 7"); txt1 = LabelMgr.labelScreen("Quit", 750 * x, (sty+pt)*y, false, 15, "#F9E39 7");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
pt = sty + pt + 20 pt = sty + pt + 20
txt1 = LabelMgr.labelScreen("Press + / - to toggle", 680 * x, pt*y, false, 15,"#AAAAAA"); txt1 = LabelMgr.labelScreen("Press = / - to toggle", 680 * x, pt*y, false, 15,"#AAAAAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
pt = pt + 20 pt = pt + 20
txt1 = LabelMgr.labelScreen("Press [ for Keypress mode", 680 * x, pt*y, fal se, 15, "#AAAAAA"); txt1 = LabelMgr.labelScreen("Press [ for Keypress mode", 680 * x, pt*y, fal se, 15, "#AAAAAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
pt = pt + 20 pt = pt + 20
txt1 = LabelMgr.labelScreen("Press ] for Screen Saver Mode", 680 * x, pt*y, false, 15, "#AAAAAA"); txt1 = LabelMgr.labelScreen("Press ] for Screen Saver Mode", 680 * x, pt*y, false, 15, "#AAAAAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
skipping to change at line 69029 skipping to change at line 69029
// Earth set // Earth set
N = 49.5574 + 0.0000211081 * d; N = 49.5574 + 0.0000211081 * d;
ii = 1.8497 - 0.0000000178 * d; ii = 1.8497 - 0.0000000178 * d;
w = 286.5016 + 0.0000292961 * d; w = 286.5016 + 0.0000292961 * d;
a = 1.523688; a = 1.523688;
e = 0.093405 + 0.000000002516 * d; e = 0.093405 + 0.000000002516 * d;
Me = 18.6021 + 0.5240207766 * d; Me = 18.6021 + 0.5240207766 * d;
pet = 0; pet = 0;
pety = 0; pety = 0;
if (Me<0)
{
while (Me >0)
{
Me = Me + 360;
}
}
if (Me>360)
{
while (Me <360)
{
Me = Me - 360;
}
}
Mj = Me * rad; Mj = Me * rad;
if (Me<0)
{
while (Me >0)
{
Me = Me + 360;
}
}
if (Me>360)
{
while (Me <360)
{
Me = Me - 360;
}
}
Ms = Me * rad; Ms = Me * rad;
if (Me<0)
{
while (Me >0)
{
Me = Me + 360;
}
}
if (Me>360)
{
while (Me <360)
{
Me = Me - 360;
}
}
if (w<0)
{
while (w >0)
{
w = w + 360;
}
}
if (w>360)
{
while (w <360)
{
w = w - 360;
}
}
if (Me<0)
{
while (Me >0)
{
Me = Me + 360;
}
}
if (Me>360)
{
while (Me <360)
{
Me = Me - 360;
}
}
if (N<0)
{
while (N >0)
{
N = N + 360;
}
}
if (N>360)
{
while (N <360)
{
N = N - 360;
}
}
if (ii<0)
{
while (ii >0)
{
ii = ii + 360;
}
}
if (ii>360)
{
while (ii <360)
{
ii = ii - 360;
}
}
ii = ii * rad; ii = ii * rad;
Merad = Me * rad; Merad = Me * rad;
N = N * rad; N = N * rad;
E4 = 0; E4 = 0;
E0 = Me + e*(deg) * Math.sin(Merad) * ( 1.0 + e * Math.cos(Merad) ); E0 = Me + e*(deg) * Math.sin(Merad) * ( 1.0 + e * Math.cos(Merad) );
while (E4 == 0) while (E4 == 0)
{ {
E2 = E0 * rad; E2 = E0 * rad;
E1 = E0 - (E2 - (e * Math.sin(E2)) - (Me* rad)) / ( 1 - e * Math.cos(E2)); E1 = E0 - (E2 - (e * Math.sin(E2)) - (Me* rad)) / ( 1 - e * Math.cos(E2));
if (Math.abs(E1-E0)< 0.000001) if (Math.abs(E1-E0)< 0.0001)
{ {
E4 = 1; E4 = 1;
} }
else else
{ {
E0 = E1; E0 = E1;
} }
} }
E0 = E1 * rad // Might as well use E0 as Radians E0 = E1 * rad // Might as well use E0 as Radians
skipping to change at line 69341 skipping to change at line 69227
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
txt1 = LabelMgr.labelScreen(fvp[i].toFixed(3)+"%", 195*x, 555*y, false, 20, "#AAFFAA"); txt1 = LabelMgr.labelScreen(fvp[i].toFixed(3)+"%", 195*x, 555*y, false, 20, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Illumination:", 10*x, 555*y, false, 20, "#AAFF AA"); txt1 = LabelMgr.labelScreen("Illumination:", 10*x, 555*y, false, 20, "#AAFF AA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Total Magnitude:", 10*x, 580*y, false, 20, "#A txt1 = LabelMgr.labelScreen("Earth Magnitude:", 10*x, 580*y, false, 20, "#A
AFFAA"); AFFAA");
LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(tmag.toFixed(3), 200*x, 580*y, false, 20, "#AAF
FAA");
LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Earth Magnitude:", 10*x, 610*y, false, 20, "#A
AFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(emag[i].toFixed(3), 200*x, 610*y, false, 20, "# AAFFAA"); txt1 = LabelMgr.labelScreen(emag[i].toFixed(3), 200*x, 580*y, false, 20, "# AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Moon Magnitude:", 10*x, 640*y, false, 20, "#AA FFAA"); txt1 = LabelMgr.labelScreen("Moon Magnitude:", 10*x, 605*y, false, 20, "#AA FFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
if (mfv[i] < 0) if (mfv[i] < 0)
{ {
txt1 = LabelMgr.labelScreen(mfv[i].toFixed(3), 200*x, 640*y, false, 20, "#A AFFAA"); txt1 = LabelMgr.labelScreen(mfv[i].toFixed(3), 200*x, 605*y, false, 20, "#A AFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
else else
{ {
txt1 = LabelMgr.labelScreen(mfv[i].toFixed(3), 205*x, 640*y, false, 20, "#A AFFAA"); txt1 = LabelMgr.labelScreen(mfv[i].toFixed(3), 205*x, 605*y, false, 20, "#A AFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
txt1 = LabelMgr.labelScreen("Moon Elongation:", 10*x, 665*y, false, 20, "#A AFFAA"); txt1 = LabelMgr.labelScreen("Moon Elongation:", 10*x, 635*y, false, 20, "#A AFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(im[i].toFixed(3) + degstring, 205*x, 665*y, fal se, 20, "#AAFFAA"); txt1 = LabelMgr.labelScreen(im[i].toFixed(3) + degstring, 205*x, 635*y, fal se, 20, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
if (il[i] > 0) if (il[i] > 0)
{ {
txt1 = LabelMgr.labelScreen("Viewing Longitude: " + il[i] + "E", 10*x, 695*y, false, 20, "#FF0000"); txt1 = LabelMgr.labelScreen("Viewing Longitude: " + il[i] + "E", 10*x, 660*y, false, 20, "#FF0000");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
else else
{ {
txt1 = LabelMgr.labelScreen("Viewing Longitude: " + Math.abs(il[i])+"W" , 10*x, 695*y, false, 20, "#FF0000"); txt1 = LabelMgr.labelScreen("Viewing Longitude: " + Math.abs(il[i])+"W" , 10*x, 660*y, false, 20, "#FF0000");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
ename = "Something"; ename = "Something";
flo = Math.floor(ij[i]); flo = Math.floor(ij[i]);
// Yes an Array would be nice but for some !@^# reason it won't work so I h ave to do it the hard //way // Yes an Array would be nice but for some !@^# reason it won't work so I h ave to do it the hard //way
if (flo == 1) if (flo == 1)
skipping to change at line 69589 skipping to change at line 69469
txt1 = LabelMgr.labelScreen(ename, 450*x, 0*y, false, 20, "#AAFFAA"); txt1 = LabelMgr.labelScreen(ename, 450*x, 0*y, false, 20, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(ename, 10*x, 500*y, false, 20, "#00FF71"); txt1 = LabelMgr.labelScreen(ename, 10*x, 500*y, false, 20, "#00FF71");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Julian Date:", 700*x, 635*y, false, 15, "#00FF 71"); txt1 = LabelMgr.labelScreen("Julian Date:", 700*x, 635*y, false, 15, "#00FF 71");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(core.getJDay().toFixed(3), 775*x, 635*y, false, 15, "#00FF71"); txt1 = LabelMgr.labelScreen(core.getJDay().toFixed(3), 790*x, 635*y, false, 15, "#00FF71");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
// Wait for Keypress // Wait for Keypress
d = Math.floor(core.getJDay()); d = Math.floor(core.getJDay());
r = d; r = d;
pak = 0 pak = 0
if (ss ==1) if (ss ==1)
 End of changes. 18 change blocks. 
138 lines changed or deleted 16 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/