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
  • 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

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.
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now