Go to file
Edward d'Auvergne 76ebd569d5 Calculation and exposure of the moon's age and phase.
To obtain the sun's true longitude, the Star::getlonEcl() function has been
created.  The moon's age is then calculated as the difference between the moon's
and sun's true longitudes.  The phase is then simply half of one minus the
cosine of the age.  Hence these calculations are very cheap compared to the rest
of the moon position calculations.  The algorithm is from:

    Duffett-Smith, Peter. Practical Astronomy With Your Calculator. 3rd ed.
Cambridge: Cambridge University Press, 1981. ISBN 0-521-28411-2.

The code can replicate the example in the book of Feb 26, 1979 at 16h UT, with
an age of -0.4767 degrees a phase of 0.0:

$ fgfs --aircraft=UFO --start-date-gmt=1979:02:26:16:00:00 --airport=EGLL \
--altitude=50000 --enable-hud

The calculated phase is 1.459e-5 and the age is -6.2908 (which is -0.43628
degrees).  For a recent full moon:

$ fgfs --aircraft=UFO --start-date-gmt=2015:11:25:22:44:00 --airport=EGLL \
--altitude=50000 --enable-hud

The calculated age is -3.1413 and the phase is 0.9999999778.
2016-11-08 09:49:57 +01:00
3rdparty Fix VS2015 compilation 2016-05-31 13:40:32 +01:00
CMakeModules Fix the header location 2016-08-06 11:26:47 +02:00
package Remove plib reference 2012-08-28 13:04:25 +02:00
simgear Calculation and exposure of the moon's age and phase. 2016-11-08 09:49:57 +01:00
.gitignore Remove temporary file and add to .gitignore 2013-09-07 14:28:46 +02:00
AUTHORS Added Curt to empty Authors file as CVS test. 2001-12-11 22:23:25 +00:00
ChangeLog Let the version number reflect the current state of the release process. 2010-01-21 06:15:18 +01:00
CMakeLists.txt Cmake export fixes. 2016-11-02 13:59:43 +00:00
COPYING Fix rpmlint/Linux packager complaints 2012-05-05 00:30:16 +02:00
Doxyfile Lots of (mostly) doxygen fixes/cleanup. 2014-08-01 00:13:25 +02:00
DoxygenMain.cxx - Tweaks to doxygen main page. 2003-06-11 18:55:36 +00:00
INSTALL Remove plib dep references from documentation files 2012-08-29 12:08:27 +02:00
NEWS Attempt to sort out the version number mess in preparation for a 1.9.0 release. 2008-12-19 20:39:59 +00:00
README Update README/INSTALL documentation. 2012-06-26 22:43:48 +02:00
README.cmake Remove plib dep references from documentation files 2012-08-29 12:08:27 +02:00
README.OpenAL Remove a couple of lingering alut references. 2012-08-21 19:25:33 +01:00
README.OSG Update README/INSTALL documentation. 2012-06-26 22:43:48 +02:00
README.zlib Updates to remove unneeded and old version of zlib source. 2006-03-23 21:59:59 +00:00
SimGear.spec.in For building redhat packages. 2000-03-29 00:00:46 +00:00
SimGearConfig.cmake.in Work on CMake export of targets. 2016-01-29 23:15:07 +00:00
Thanks SimGear: Typo in Thanks file 2007-07-23 22:00:31 +00:00
version new version: 2016.4.0 2016-09-06 12:50:55 +02:00

SimGear - Simulator Construction Tools
======================================
http://www.flightgear.org

SimGear is a set of open-source libraries designed to be used as building
blocks for quickly assembling 3d simulations, games, and visualization
applications.

SimGear is developed by the FlightGear project and also provides the base
for the FlightGear Flight Simulator.

Source code for SimGear is released under the GNU Library General Public
License (LGPL) - see COPYING for license details.

See INSTALL file for help on building SimGear.