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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

737 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