MOON


Name:

MOON

Purpose:

Learn about Lunar Phases...entertainment.

Author:

Greg Spears with due credit/big thanks to Christopher Osburn, Lunar Outreach Services, for the lunar phase calculation engine.

License:

Freeware (pls see MIT License, below)

Notes:

Compiled in MS VC++

First project in C ... a big transition from assembly language (ASM).  C became more mandatory than optional as astrophysics calculations in ASM became a little overwhelming. C is much more friendly for this.

Prior to Chris Osburn's generous provision of the perpetual lunar phase calculation engine, I was calculating Lunar Phase @ 29.53059 days per Lunar Cycle (synodic month), and using the Farmer's Almanac for a start date.  Using the PC's system time, graphical appearance was generally close enough to actual lunar phase, but the lack of precision always bugged me.  A synodic month is actually anywhere from ~29 - 30 days, and gradually varies over months & years.  Chris's code closed this precision gap, and now the graphical display is as accurate as any professional software tool, I reckon.

Moon.exe internal lunar image by courtesy and permission of NASA, with grateful thanks.

Disclaimer:

Tested - Use at your own risk!


 


 

The Moon executable is distributed under the MIT License:

 

Copyright ã 1992 - 2006 Greg Spears.

 

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to utilize the Software without restriction, including -- without limitation -- the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

 

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL GREG SPEARS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ACTIVITIES CONCERNING THE SOFTWARE.

 


 

 


Home