Abt. Wann und wo gehen die Planeten auf?
===========================
Auf der genialen Homepage von Dr. Jean Pierre Moreau findet sich zu dieser Frage ein Programm aus der Zeit vor 1982, dessen Gütligkeit wegen der angewendeten Genauigkeit vermutlich auch 32 Jahre später noch gute Ergebnisse liefert. Ich konnte zwei sinnstörende Fehler im Basic-Originaltext erkennen und beheben, da ich aber leider kein Äquatorial-montiertes Teleskop besitze, kann ich die Ergebnisse derzeit nicht verifizieren. Für entsprechende Kommentare wäre ich natürlich dankbar.
Gruss
WindowTitle upper$(" P o s i t i o n d e r P l a n e t e n b e s t i m m e n ")+" - Achtung, Daten aus 1980!"
' Source: http://jean-pierre.moreau.pagesperso-orange.fr/Basic/planets_bas.txt
' Translated to XProfan-11 (CL) CopyLeft 2014-08 by P. Specht, Vienna
' No warranty whatsoever! Keine wie auch immer geartete Gewähr!
' Bahndaten aus der Zeit vor 1982, zu verifizieren!
'
'*****************************************************
'* Position der Planeten *
'* ------------------------------------------------- *
'* This program calculates the ephemeris of a planet *
'* in our solar system to adjust an equatorial tele- *
'* scope (Pgm für aequatorial-montierte Teleskope *
'* ------------------------------------------------- *
'* Ref.: "Mathematiques par l'informatique indivi- *
'* duelle - Programmes en BASIC, MASSON, *
'* Paris, 1982, p 100 - 105" . *
'* ------------------------------------------------- *
'* Inputs: *
'* Date: day,month,year *
'* Hour UT: hour *
'* Planet number: 1 to 8 *
'* (Mercury: 1 Venus : 2 Mars : 4 Jupiter: 5 *
'* Saturn : 6 Uranus: 7 Neptune: 8) *
'* Outputs: *
'* Ascent in hours (0 to 24) *
'* Declination in deg. (-90 to 90 North or South) *
'* *
'* SAMPLE RUN: *
'* (Find ascent and declination of planet Mars on *
'* March 10th, 1982 at 6h UT) *
' *
' Hinweis von P.Specht:
' Am 10. März 1982 standen Merkur, Venus, Erde,
' Mars, Jupiter, Saturn und Pluto alle in einer Linie
' und auf der selben Seite der Sonne innerhalb eines
' Winkel von 95 Grad. Die prophezeiten Katastrophen,
' etwa Erdbeben in Kalifornien sind gsd ausgeblieben.
' http://www.borderlands.de/net_pdf/NET1107S30-34.pdf
'
'* Date (D,M,Y): 10,3,1982 *
'* Hour UT: 6 *
'* Mercury: 1 Venus : 2 Mars : 4 Jupiter: 5 *
'* Saturn : 6 Uranus: 7 Neptune: 8 *
'* Planet number: 4 *
'* *
'* Ascent : 13 H 8 MN *
'* Declination: 3 ø 45 MN S *
'* *
'* This program allows building the following table: *
'* *
'* Date: March 10th, 1982 at 6H UT. *
'* *
'* Planet Ascent Declination *
'* Mercury 21 H 51 14 ø 45 mn S *
'* Venus 20 H 26 14 ø 57 mn S *
'* Mars 13 H 08 3 ø 45 mn S *
'* Jupiter 14 H 32 13 ø 30 mn S *
'* Saturn 13 H 22 5 ø 42 mn S *
'* *
'* English Version By J-P Moreau, Paris. *
'* (www.jpmoreau.fr) *
'*****************************************************
WindowStyle 24:Window 0,0-%maxx,%maxy:font 2
declare i&,j&,jj&,n&,m&,mm&,aa!,h!,t!,xl!,o!,p!,e!,xi!,xa!,xm!
declare u!,r!,v!,q!,xj!,x!,y!,z!,G!,pi!,xx!,yy!,zz!,d!,b!,c!
declare A![9,8],B![12],A$,data$
'Init planetary constants (fill table A by columns)
data$="4.01166, 0.071425454, 1.32493, 0.000000742289, 0.823045, "+\
"0.000000566185, 0.205615, 0.122225, 0.387099, "+\
"3.60861, 0.027963119, 2.271616, 0.00000065572, 1.32291,"+\
"0.000000436681, 0.006816, 0.0592301, 0.723332,"+\
"1.72727, 0.0172028, 1.76688, 0.000000818559, 0,"+\
"0, 0.016751, 0, 1,"+\
"2.17756, 0.0091467658, 5.83378, 0.000000879297, 0.851616, "+\
"0.000000371232, 0.093309, 0.0322939, 1.5236,"+\
"4.68279, 0.00145099, 0.2289, 0.000000857, 1.73578,"+\
"0.000000482933, 0.048376, 0.0228418, 5.202799,"+\
"4.8567, 0.00058484, 1.5974, 0.000000412, 1.96856,"+\
"0.000000417308, 0.054311, 0.0435026, 9.552098, "+\
"4.3224, 0.000205424, 2.9523, 0.000000762, 1.2825, "+\
"0.000000238237, 0.047319, 0.013482, 19.21694, "+\
"1.5223, 0.000105061, 0.7637, 0.000000393, 2.28102,"+\
"0.00000052517, 0.008262, 0.0310536, 30.12912"
'=Spaltenweise! Schnell (=in der inneren Schleife) läuft daher der ZEILEN-Index i&!)
whileloop 8:j&=&Loop:whileLoop 9:i&=&loop
A![i&,j&]=val(substr$(data$,(i&+(j&-1)*9),","))
' print i&;",";j&;"=",int(1+(i&-1)+(j&-1)*9);":",format$("%g",a![i&,j&])," ",:waitinput
endwhile :endwhile ' Basis [1,1] wird hier beibehalten
'Calendar constants (Ermittlung der Tagesnummer im Jahr)
'Sinnstörender Komma-Fehler im Originaltext!
'Schaltjahre sind hier aufgeteilt: Die Erde selbst schaltet ja nicht ;-)
whileloop 12 :B![&Loop]=\
val(substr$("0,31,59.25,90.25,120.25,151.25,181.25,212.25,243.25,273.25,304.25,334.25",&Loop,","))
endwhile
print "\n\n\n "
'print " Please input date (DD, MM, YYYY) and hour (GMT) of interest:"
print " Bitte das interessierende Datum (DD, MM, YYYY) und die UTC-Stunde (GMT) eingeben:"
print "\n Tag xx:",:input j&
print " Monat xx:",:input mm&
print " Jahr xxxx:",:input aa!
print "\n Stunde UT = GMT(Greenwich): ",:input h!
'Calculate time t
t!=365.25*(aa!-1901)+B![mm&]+j& 'Tagesnummer seit 1901
t!=INT(t!)+h!/24 'Stunden in Dezimalform dazu
'calculate earth coordinates
j&=3 : gosub "S1000" 'planet #3 coordinates
g!=x! : h!=y! 'save earth coordinates
Nochmal:
print
print " Merkur/y=1, Venus=2,((Earth=3)), Mars=4, Jupiter=5, Saturn=6, Uranus=7, Neptun=8"
print " Please Input Planet Number: ", :input n&
print
'calculate coordinates of planet #n
j&=n& : gosub "S1000"
'calculate geocentric equatorial coordinates
x!=x!-g! : y!=y!-h!
t!=y!*0.917484-z!*0.397772
z!=y!*0.397772+z!*0.917484 : y!=t!
'calculate ascent and declination
pi!=pi() '=4*arctan(1)
xx!=x! : yy!=y! : gosub "S2000" 'aa=ATN2(y,x) ' Simuliert echte Atn2( , )-Funktion
aa!=zz!
yy!=z! : xx!=SQRT(x!*x!+y!*y!) : gosub "S2000" ' d=ATN2(z, SQR(x*x+y*y) )
d!=zz!
'conversion
aa!=aa!*12/pi!
case aa!<0 :aa!=24+aa!
h!=INT(aa!) : m&=INT(60*(aa!-h!))
d!=d!*180/pi!
A$="N":case d!<0:A$="S"
d!=ABS(d!) : b!=INT(d!) : c!=INT(60*(d!-b!))
'print results
print
print "\n Ascension (Aufgangszeit): ";format$("00",h!);" Uhr ";format$("00",m&);" min"
print "\n bei Deklination (Fusspunkt-Winkel): ";
print format$("#00",b!);"° ";format$("00",c!);" ";A$
waitinput
' Auf Grund der unglücklichen Zweitverwendung von Variablen im Original stets Neustart erforderlich!
END
S1000:
'planet coordinates
'calculate planetary constants
XL!=A![1,j&] + A![2,j&] * t!
O! =A![3,j&] + A![4,j&] * t!
P! =A![5,j&] + A![6,j&] * t!
E! =A![7,j&]
XI!=A![8,j&]
XA!=A![9,j&]
'solve Kepler's equation
xm! = XL!-O! : u!=xm!
whileloop 100:j&=&Loop
u! = xm! + E! * sin(u!)
endwhile
'formula (3) of reference book
r!=XA!*(cos(u!)-E!)
v!=XA!*SQRT(1-E!*E!)*sin(u!)
O!=O!-P! : xm!=sin(O!) : O!=cos(O!)
q!=sin(P!) : P!=cos(P!)
xj!=sin(XI!) : XI!=cos(XI!)
x!=(P!*O!-XI!*q!*xm!)*r!+(-P!*xm!-XI!*q!*O!)*v!
y!=(q!*O!+XI!*P!*xm!)*r!+(-q!*xm!+XI!*P!*O!)*v!
z!=xj!*xm!*r!+xj!*O!*v!
return
S2000:
'calculate zz = ATN2(yy,xx)
if ABS(xx!)<val("1e-12")
if yy!>0 : zz!=Pi!/2
elseif ABS(yy!)<val("1e-12"): zz!=-PI!/2
else : zz!=0
endif
else
zz!=Arctan(yy!/xx!)
case xx!<0 :zz!=zz!+Pi!
endif
return
'end of file planets.prf
Alles anzeigen