-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.html
35 lines (18 loc) · 2.8 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<h1 id="astronomylibraries">Astronomy Libraries</h1>
<p>This repository contains PHP and Javascript libraries useful for astronomical calculations. Since the Earth is an astronomical body too (surprise!) and many astronomical calculations require geographical parameters, a good amount of geographical libraries are included as well.</p>
<p>PHP libraries are stored in the libs-php directory, Javascript libraries in the libs-js directory. There are examples how to use each of the libraries in the corresponding examples-xxx directories. This is built in the form of a little website, the entry point being index.html in the root directory. A live version can be found at <a href="https://astronomy-libs.mpopp.net">https://astronomy-libs.mpopp.net</a></p>
<p>In most cases, PHP and Javascript libraries with the same name (e.g. Coordinates.php and coordinates.js) are (mostly) equivalents of each other, but there may be exceptions.</p>
<h2 id="requirementssupport">Requirements, support</h2>
<p>These libraries deliberately support only recent technology. For PHP libraries and examples, Apache 2.2+ and PHP 5.3+ are required. Supported browsers are Firefox, Google Chrome, Internet Explorer and Opera in their current versions on Linux, Windows and Android (as available).</p>
<h2 id="contributions">Contributions</h2>
<p>Contributions are very welcome. Feel free to fork, fix bugs, improve libraries and examples, write new libraries and examples, redesign, do whatever comes to mind. Pull requests are appreciated.</p>
<h2 id="libraries">Libraries</h2>
<h3 id="coordinatesphpjs">Coordinates (PHP & JS)</h3>
<p>Coordinates contains functions to convert float coordinates (geographical latitude/longitude or astronomical RE/DE coordinates) to text representation and vice versa.</p>
<h3 id="distancesphpjs">Distances (PHP & JS)</h3>
<p>Distances contains functions to convert distance units, like kilometers, miles, astronomical units, light years and parsecs. Another function calculates the geographical distance between 2 latitude/longitude pairs (on Earth), yet another function calculates the distance between 2 points while the distance to each of the points and the angle separating is given.</p>
<h3 id="locationphpjs">Location (PHP & JS)</h3>
<p>Location (geographical latitude & longitude) contains a wrapper to provide a uniform format to be used by other libraries.</p>
<p>The Javascript version also contains a function to obtain the geographical location using the <a href="http://dev.w3.org/geo/api/spec-source.html">Geolocation API</a></p>
<h3 id="simbadphp">Simbad (PHP)</h3>
<p>Simbard provides methods to query the SIMBAD Astronomical Database (<a href="http://simbad.u-strasbg.fr/simbad/">http://simbad.u-strasbg.fr/simbad/</a>) using their web services at http://cdsws.u-strasbg.fr/axis/services/Sesame?wsdl</p>