Help calculating planetary postions

netojose

New Member
Joined
Aug 8, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
I am searching help to make an excel table that will calculate planetary positions with hourly precision. I need something similar to the printscreen bellow. Input for: start date, number of days, planets, geo or helio. The result first big column: first planet (Sun), second column (Moon), third column pair (Sun and Moon). On each we have the date, the current position of the planet or the pair (in the case of the third column) and how far they moved from the starting date.

What is missing is the precision I need: instead of a line for a day, I need 24 lines for a day, each for an hour. So I need the degrees and the minutes.

Let me know if you can help me.

Thanks,

Jose
 

Attachments

  • planet-angles.JPG
    planet-angles.JPG
    115.1 KB · Views: 301

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I am quite illiterate on these calculations. Thanks!
 
Last edited by a moderator:
Upvote 0
The most detailed version for Excel about Planets, and all kind of calculations, positions and similar, are in the Link below. It needs a bit of knowledge of what's going on in the outer Space!
 
Upvote 0
An example on calculations, with positions. Details for Moon and Sun!
astroexcel_v20170611.xls
ABCDEFGHIJKLMNOPQRSTU
1
2
3PositionTimeTwilightdegreesdecimal hourshhmm
4°'"decimalYYYYMMDDhhmmsstrue night ends11,611140,774076206046
5Latitude547054,11667UT20208919200astronomical twilight ends31,471142,098075792206
6Longitude (west is negative)1194711,16306Julian Day2459071,3nautical twilight ends45,567683,037845086302
7metersJ20007526,305556sunrise56,070053,738003137344
8Altitude1Greenwich Siderial Time16:35sunset283,970218,931349351856
9Local meridian259,9069391°nautical twilight begins294,397919,626527991938
10Local Siderial Time1719,6277565Astronomical twilight begins308,331820,555452182033
11true night begins327,603921,840259922150
12
13Sun Positiondistance (AU)RA degreesDEC degreesCarrington Rotation number2233
141,013705140,09615,541Sun's True Longitude137,6581773
15Sun's Apparent Longitude137,6477162
16RA HRSRA minutesRA SecondsDec DegreesDec MinutesDec Secondsangular size of sun (arc Sec)18931392000
1792023,0105153226,72429
18
19
20
21HourSun AltMoon Altsun RASun Decmoon RAmoon DecCalculate the geocentric position of the sun using 'sun' and the topo centric position of the moon using 'tmoon', the use 'altaz' to calculate the altitude, repeat calculation for every hour of the day then plot on a graph
220-3,64376-16,014140,115,5427,084915,441782
231-10,4294-8,3431140,1415,5327,607735,648067
242-15,74660,01561140,1715,5228,099635,856136
253-19,17658,69499140,2115,528,558116,065255
264-20,391217,3411140,2515,4928,982766,274522
275-19,261225,5642140,2915,4829,375446,482923
286-15,908132,8834140,3315,4729,740156,689402
297-10,654938,6851140,3715,4630,082856,892939
308-3,9197742,2618140,4115,4430,411057,092638
3193,87350243,0286140,4515,4330,733347,28781
321012,3318540,8529140,4915,4231,058787,478036
331121,0839536,1512140,5315,4131,396237,663217
341229,7399929,6243140,5715,3931,753757,843586
351337,8253121,9573140,6115,3832,138038,019705
361444,692913,7047140,6515,3732,553978,192417
371549,46985,30667140,6915,3633,004368,362796
381651,22785-2,85796140,7315,3433,489768,532063
391749,52532-10,4208140,7715,3334,008548,701508use the RA and DEC positions of the sun calculate the Azimuth using 'altaz' convert this measurement (in degrees) to minutes this is he equation of time
401844,7884-16,9872140,8115,3234,557028,8724
411937,94107-22,1255140,8515,3135,129759,045914Equation of Time-297,8(time to add or subtract from sundial)
422029,85908-25,4024140,8915,335,719889,223051
432121,19255-26,477140,9215,2836,319549,404575
442212,41773-25,2192140,9615,2736,920379,590967
45233,924524-21,764914115,2637,513989,782377
46
47
48Calculate Sun's RA and DEC for each day at mid day (UT) using 'sun' convert to ALT/AZ using 'altaz' , plot the Altitude
49Sun ALTSun AzminutesyearmonthDayJ2000Sun RASun Dec
5001-08-202052,95845195,23260,932020817518132,137856517,82014
5102-08-202052,70129195,19260,7692020827519133,105133517,56242
5203-08-202052,43904195,15560,6212020837520134,069885717,29996
5304-08-202052,17177195,12160,4852020847521135,032122517,03282
5405-08-202051,89957195,09160,3622020857522135,991856116,76109
5506-08-202051,62252195,06360,2522020867523136,949101916,48486
5607-08-202051,34072195,03860,1542020877524137,903878216,20421
5708-08-202051,05426195,01760,0682020887525138,856205815,91922
5809-08-202050,76321194,99859,9942020897526139,806108715,62997
5910-08-202050,46766194,98359,93220208107527140,753613315,33656
6011-08-202050,16772194,9759,88120208117528141,698748815,03906
6112-08-202049,86346194,9659,84220208127529142,64154714,73757
6213-08-202049,55498194,95359,81320208137530143,582042214,43217
6314-08-202049,24237194,94959,79620208147531144,52027114,12294
6415-08-202048,92573194,94759,78920208157532145,456272813,80998
6516-08-202048,60513194,94859,79220208167533146,390088813,49336
6617-08-202048,28068194,95159,80520208177534147,321762813,17319
6718-08-202047,95247194,95759,82720208187535148,251340812,84953
6819-08-202047,62059194,96559,85820208197536149,178870712,52249
6920-08-202047,28514194,97559,89920208207537150,104402712,19215Calculate Sun's RA and DEC for each day at mid day (UT) using 'sun' convert to ALT/AZ using 'altaz' , plot the Azimuth
7021-08-202046,94621194,98759,94720208217538151,027988711,8586
7122-08-202046,6039195,00160,00420208227539151,949682911,52192
7223-08-202046,2583195,01760,06920208237540152,86954111,18221
7324-08-202045,9095195,03560,14120208247541153,787620710,83955
7425-08-202045,55761195,05560,2220208257542154,703981410,49403
7526-08-202045,20271195,07660,30520208267543155,618684110,14574
7627-08-202044,84491195,09960,39720208277544156,53179159,794774
7728-08-202044,4843195,12460,49520208287545157,44336779,441214
7829-08-202044,12099195,14960,59820208297546158,35347849,08515
7930-08-202043,75506195,17660,70620208307547159,26219078,726673
8031-08-202043,38661195,20560,81820208317548160,16957318,365872
8101-09-202043,01576195,23460,9352020917549161,07569528,002835
8202-09-202042,64258195,26461,0562020927550161,98062827,637654
8303-09-202042,26718195,29561,1812020937551162,88444417,270416
8404-09-202041,88967195,32761,3082020947552163,78721626,901213
8505-09-202041,51014195,3661,4382020957553164,68901916,530133
8606-09-202041,12869195,39361,5712020967554165,5899286,157268
8707-09-202040,74543195,42661,7052020977555166,49001955,782706
8808-09-202040,36045195,4661,8412020987556167,38937075,406539
8909-09-202039,97385195,49561,9782020997557168,28805995,028857
9010-09-202039,58574195,52962,11620209107558169,18616614,649751Calculate Sun's RA and DEC for each day at mid day (UT) using 'sun' convert to ALT/AZ using 'altaz' , then calculate how many minutes past or to go for the Sun to be at the local meridian
9111-09-202039,19623195,56462,25520209117559170,08376914,269312
9212-09-202038,8054195,59862,39320209127560170,98094933,88763
9313-09-202038,41337195,63362,53120209137561171,87778793,504798
9414-09-202038,02024195,66762,66920209147562172,77436663,120906
9515-09-202037,62611195,70162,80520209157563173,67076792,736046
9616-09-202037,2311195,73562,9420209167564174,56707462,350311
9717-09-202036,83529195,76863,07320209177565175,46337011,963793
9818-09-202036,43881195,80163,20520209187566176,35973821,576584
9919-09-202036,04175195,83363,33320209197567177,25626291,188777
10020-09-202035,64422195,86563,4620209207568178,15302880,800466
e.g. Solar
Cell Formulas
RangeFormula
R4R4=Sunrise(J7,DegDecimal(D5,E5,F5),DegDecimal(D6,E6,F6),1,-18)
S4:S11S4=R4/360*24
T4:T11T4=INT(R4/360*24)
U4:U11U4=(S4-T4)*60
R5R5=Sunrise(J7,DegDecimal(D5,E5,F5),DegDecimal(D6,E6,F6),1,-12)
R6R6=Sunrise(J7,DegDecimal(D5,E5,F5),DegDecimal(D6,E6,F6),1,-6)
R7R7=Sunrise(J7,DegDecimal(D5,E5,F5),DegDecimal(D6,E6,F6),1)
R8R8=Sunrise(J7,DegDecimal(D5,E5,F5),DegDecimal(D6,E6,F6),0)
R9R9=Sunrise(J7,DegDecimal(D5,E5,F5),DegDecimal(D6,E6,F6),5,-6)
R10R10=Sunrise(J7,DegDecimal(D5,E5,F5),DegDecimal(D6,E6,F6),0,-12)
R11R11=Sunrise(J7,DegDecimal(D5,E5,F5),DegDecimal(D6,E6,F6),0,-18)
G5:G6G5=DegDecimal(D5,E5,F5)
J6J6=jday(J5,K5,L5,M5,N5,O5,1)
J7J7=Days2000(J5,K5,L5,M5,N5,O5,1)
J8J8=INT(gst(J7)/360*24)&":"&FIXED((gst(J7)/360*24-INT(gst(J7)/360*24))*60,0)
J9J9=gst(J7)+DegDecimal(D6,E6,F6)
M10M10=INT(J9/360*24)
N10N10=(J9/360*24-M10)*60
C14C14=sun(J7,1)
D14D14=sun(J7,3)
E14E14=sun(J7,2)
J13J13=INT(CarringtonRotation(J7))
J14J14= SunLongitude(J7,1)
J15J15=SunLongitude(J7,2)
J16J16=SunSize($J$7)
L16L16=696000*2
B17B17=INT(D14/15)
C17C17=INT((D14/15-B17)*60)
D17D17=(D14/15-B17-C17/60)*3600
E17E17=INT(E14)
F17F17=INT((E14-E17)*60)
G17G17=(E14-E17-F17/60)*3600
C22:C45C22=altaz($J$7+($B22/24),$F22,$E22,$D$5+$E$5/60,$D$6+$E$6/60,1)
D22:D45D22=altaz($J$7+($B22/24),$H22,$G22,$D$5+$E$5/60,$D$6+$E$6/60,1)
E22:E45E22=sun($J$7+($B22/24),3)
F22:F45F22=sun($J$7+($B22/24),2)
G22:G45G22=tmoon($J$7+($B22/24),$G$5,$G$6,3)
H22:H45H22=tmoon($J$7+($B22/24),$G$5,$G$6,2)
J41J41=(altaz($J$7+($B34/24),$F34,$E34,$D$5+$E$5/60,$D$6+$E$6/60,2)-180)*4
C50:C100C50=altaz(I50,K50,J50,$D$5+$E$5/60,$D$6+$E$6/60,1)
D50:D100D50=altaz(I50,K50,J50,$D$5+$E$5/60,$D$6+$E$6/60,2)
E50:E100E50=(D50-180)*4
F50:F100F50=YEAR(B50)
G50:G100G50=MONTH(B50)
H50:H100H50=DAY(B50)
I50:I100I50=Days2000(F50,G50,H50,12,0,0,1)
J50:J100J50=sun(I50,3)
K50:K100K50=sun(I50,2)
B51:B100B51=B50+1
 
Upvote 0
As the example above, can't show Graphs, I upload an image, showing the missing Graph, which are generated in the example.
sun-moon.png
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,438
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top