Link to home
Start Free TrialLog in
Avatar of giann
giann

asked on

moon-rise calculation

I have written a calendar programm in VB4.
Now I want to add the moonrise and moonset function for any date.
To do this for a certain date, one must know basically 3 figures:
Latitude, longitude and the Time zone of the place.
All theese are of course easily known.
Now, does anyone know the algorithms or the way to computate the moonrise/set times?
(Or at least the Right Ascension and Declination of the moon?)
 
Avatar of appari
appari
Flag of India image

goto this page and you can find many bas files related to calculations in astronamy.

for your purpose see moonup.bas
http://www.skypub.com/resources/software/basic/basic.html#list

hope this helps you.
all these programs are in basic, i hope it is not that much difficulty to convert them to VB

ASKER CERTIFIED SOLUTION
Avatar of Otana
Otana

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of giann
giann

ASKER

1. Moonup.bas is in Basic. I have already tryied to convert it without success.

2.In http://aa.usno.navy.mil/data/docs/RS_OneDay.html there is not the computation algorithm.
This link seems to have the formulas you need:

http://hotel04.ausys.se/pausch/comp/riset.html#4

It is not code, just formulas.
Avatar of giann

ASKER

Answer to Otana:
I have already look in http://hotel04.ausys.se/pausch/comp/riset.html#4
No success!
Thanks.
Avatar of giann

ASKER

As appari wrote above, in the site:
http://www.skypub.com/resources/software/basic/basic.html#list
exists the file that interests me - MOONUP.BAS - but it is in Basic. Can somebody please convert it to VB4 code?
:ping: