Moon phase


Calculating moon phases accurately is a bit more tricky that it seems.
However, if you don’t need to be extremely precise, you can use the fact that the time from full moon to full moon is 29.53 days or 709 hours average.
If you want to be really accurate, refer to table lookups and additional formulaes.

In my prototype I use only some simple calculations borrowed from this www.nano-reef.com forum entry

I should write some unit tests and verify some random dates against some known moon phase tables.

moon_cal_2014
Calendar 2014 from pcal.sourceforge.net
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s