A PHP Astronomy Programming Kit For
The Sun, Moon, Planets, Pluto and 15 Major Asteroids
===========================================================================
===========================================================================

A PHP 5 ASTRONOMY 102 PROGRAMMING KIT PACKAGE
FOR THE SUN, MOON, PLANETS, PLUTO AND 15 MAJOR ASTEROIDS

DESIGNED FOR USE WITH THE PHP ASTRONOMY 102 MODULE.
PH5 5.4.7

Package created by Jay Tanner
Revised: 2015 JUL 13

LICENSE: Creative Commons Attribution-ShareAlike 3.0
https://creativecommons.org/licenses/by-sa/3.0/us/legalcode

===========================================================================
===========================================================================

Any or all of these programs can be customized or extended as needed.

These programs are intended to be a starting point for the development of
custom astronomical ephemerides.  Most of the hardest work has already
been done in the creation of the data tables and functions to perform
some common astronomical computation tasks contained in the main
Astronomy 102 module.

===========================================================================
The solar, lunar and planetary ephemerides are based on the NASA/JPL DE405
(Development Ephemeris). SPAN: 1600 to 2200

The asteroid ephemerides are based on the U.S. Naval Observatory Asteroid
Ephemeris, 1998 (USNO AE98). SPAN: 1800 to 2099

NOTE:
Since the release of the AE98 and DE405, both the asteroid Ceres and the
planet Pluto have been reclassified as dwarf planets.

===========================================================================
MAIN MODULE

Astronomy_102.php

This is the main module containing the astronomy building blocks used to
compute the ephemerides.  It contains a variety of functions for astronom-
ical computations and you can always add more of your own according to
your programming expertise and needs.

The astronomical coordinates are referred to the true equinox and equator
of the date.  These are the same positional coordinates that are listed
in the standard astronomical almanacs.

===========================================================================
CURRENT TIME (UT/TT) SOLAR SYSTEM EPHEMERIDES FOR THE SUN, MOON, PLANETS,
PLUTO AND 15 MAJOR ASTEROIDS.

These programs compute the current astronomical ephemeris statistics for
the listed bodies on both the UT and TT time scales.  Given the UT, the
corresponding TT is computed by applying the Delta T according to the
NASA polynomial expressions for Delta T.  This TT value is then used to
compute the corresponding ephemeris statistics for the given date/UT.

Sun.php
Moon.php
Moon2.php
Mercury.php
Venus.php
Mars.php
Jupiter.php
Saturn.php
Uranus.php
Neptune.php
Pluto.php

Ceres.php
Pallas.php
Juno.php
Vesta.php
Hebe.php
Iris.php
Flora.php
Metis.php
Hygiea.php
Eunomia.php
Psyche.php
Europa.php
Cybele.php
Davida.php
Interamnia.php

===========================================================================
INTERACTIVE EPHEMERIDES FOR ANY LOCAL DATE/TIME/ZONE/LOCATION

These interactive programs compute general ephemerides for the sun, moon,
planets, Pluto and 15 major asteroids.

They also include a shared local date/time/zone/location interface.

DE405_Sun.php
DE405_Moon.php
DE405_Mercury.php
DE405_Venus.php
DE405_Mars.php
DE405_Jupiter.php
DE405_Saturn.php
DE405_Uranus.php
DE405_Neptune.php
DE405_Pluto.php

AE98_Ceres.php
AE98_Pallas.php
AE98_Juno.php
AE98_Vesta.php
AE98_Hebe.php
AE98_Iris.php
AE98_Flora.php
AE98_Metis.php
AE98_Hygiea.php
AE98_Eunomia.php
AE98_Psyche.php
AE98_Europa.php
AE98_Cybele.php
AE98_Davida.php
AE98_Interamnia.php

===========================================================================
DATA FILES FOR THE SUN, MOON, PLANETS AND PLUTO (NASA/JPL DE405)

geocen_equ_Sun_1600_to_2200.data          8,122,104 bytes
geocen_equ_Moon_1600_to_2200.data         9,439,728
geocen_equ_Mercury_1600_to_2200.data      8,780,643
geocen_equ_Venus_1600_to_2200.data        8,780,639
geocen_equ_Mars_1600_to_2200.data         8,780,638
geocen_equ_Jupiter_1600_to_2200.data      8,780,641
geocen_equ_Saturn_1600_to_2200.data       8,780,640
geocen_equ_Uranus_1600_to_2200.data       8,780,640
geocen_equ_Neptune_1600_to_2200.data      8,780,641
geocen_equ_Pluto_1600_to_2200.data        9,000,150

===========================================================================
DATA FILES FOR 15 MAJOR ASTEROIDS (USNO AE98)

geocen_equ_Ceres_1800_to_2099.data        4,383,803 bytes
geocen_equ_Pallas_1800_to_2099.data       4,421,281
geocen_equ_Juno_1800_to_2099.data         4,457,117
geocen_equ_Vesta_1800_to_2099.data        4,383,803
geocen_equ_Hebe_1800_to_2099.data         4,465,793
geocen_equ_Iris_1800_to_2099.data         4,452,718
geocen_equ_Flora_1800_to_2099.data        4,474,224
geocen_equ_Metis_1800_to_2099.data        4,479,069
geocen_equ_Hygiea_1800_to_2099.data       4,486,991
geocen_equ_Eunomia_1800_to_2099.data      4,461,124
geocen_equ_Psyche_1800_to_2099.data       4,487,078
geocen_equ_Europa_1800_to_2099.data       4,493,334
geocen_equ_Cybele_1800_to_2099.data       4,493,394
geocen_equ_Davida_1800_to_2099.data       4,492,691
geocen_equ_Interamnia_1800_to_2099.data   4,492,430

===========================================================================
ALSO INCLUDES ONE SET OF 361 LUNAR PHASE PNG IMAGES AT 1-DEGREE INTERVALS
ON A TRANSPARENT 320x240-PIXEL BACKGROUND.  THE NUMERIC FILE NAMES EQUATE
TO THE PHASE ANGLES OF THE LUNAR IMAGES, IN DERGEES.

000.png, 001.png, 002.png, ..., 358.png, 359.png, 360.png

These images are used by the Moon2.php and DE405_Moon.php programs.

361 PNG IMAGES TOTAL APPROX. 25.1 MEG

===========================================================================
===========================================================================
Jay Tanner - 2017