moon-rise calculation

Posted on 2001-08-24
Last Modified: 2007-11-27
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?)
Question by:giann
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 39

Expert Comment

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

for your purpose see moonup.bas

hope this helps you.
LVL 39

Expert Comment

ID: 6421139
all these programs are in basic, i hope it is not that much difficulty to convert them to VB

LVL 11

Accepted Solution

Otana earned 300 total points
ID: 6421146
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.


Author Comment

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

2.In there is not the computation algorithm.
LVL 11

Expert Comment

ID: 6421241
This link seems to have the formulas you need:

It is not code, just formulas.

Author Comment

ID: 6421335
Answer to Otana:
I have already look in
No success!

Author Comment

ID: 6423070
As appari wrote above, in the site:
exists the file that interests me - MOONUP.BAS - but it is in Basic. Can somebody please convert it to VB4 code?

Expert Comment

ID: 6423826

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question