Basic astronomical functions
C++ C Makefile HTML
Switch branches/tags
Nothing to show
Latest commit cebade6 Jun 22, 2017 @Bill-Gray In Windows, attempts to update integrated elements fell afoul of the …
…CR/LF vs. LF-only line endings. That difference should be ignored when determining if a line has changed. Before, it wasn't ignored. Now, it is.
Permalink
Failed to load latest commit information.
.gitignore Realized limiting visual magnitude code didn't get compiled in *nix, … Jan 17, 2017
LICENSE Initial commit Feb 15, 2016
README.md Revised README.md to describe the actual build procedure Jul 26, 2016
afuncs.h Added functions for precise Earth orientation, using EOP (Earth Oct 30, 2016
alt_az.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
astcheck.cpp Now allows for a CGI form-based interface with HTML output. Fixed Jun 15, 2016
astephem.cpp Switched from DOS-style CR/LF endings to LF endings. May 13, 2016
astfuncs.cpp Fixed a convergence fail for highly hyperbolic orbits. In tests, the … Apr 2, 2017
big_vsop.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
big_vsop.txt Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
calendar.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
cgi_func.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
cgicheck.cpp 'environ' isn't available as an external variable on Windows... fortu… Jan 20, 2017
cgicheck.htm Made the explanation in the HTML form slightly clearer Jun 29, 2016
cgicheck.txt Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
changes.txt Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
chinese.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
chinese.dat Initial commit Feb 16, 2016
classel.cpp Corrected my workarounds for MSVC's failure to handle isfinite and as… Feb 15, 2017
colors.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
colors.h Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
colors2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
com_file.cpp Initial commit Feb 16, 2016
comets.h Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
conjunct.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
cospar.cpp Find_Orb needs to be able to reset the path to 'cospar.txt', so I mad… Jun 5, 2017
cospar.txt Updated Ceres to use rotation parameters from Dawn Oct 4, 2016
cospar2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
cosptest.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
date.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
date.h Added a few convenience macros for some decimal day formats Oct 30, 2016
de_plan.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
delta_t.cpp Added January 2017 leap second. See https://datacenter.iers.org/web/g… Jul 9, 2016
dist.cpp Added law of haversines explanation Apr 14, 2017
dist_pa.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
dist_pa2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
disttest.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
eart2000.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
easter.cpp Fixed conditions under which snprintf is replaced Mar 17, 2017
elp82dat.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
eop_prec.cpp Made internal constants 'static' to avoid some nuisance warning messa… Jan 20, 2017
get_out.txt Initial commit Feb 16, 2016
get_test.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
get_test.txt Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
get_time.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
getplane.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
gust86.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
gust86.h Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
gust_ref.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
htc20b.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
integrat.cpp In Windows, attempts to update integrated elements fell afoul of the … Jun 22, 2017
jd.cpp Put year/month/day in correct orders Jan 5, 2017
jevent.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
jpl2b32.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
jsats.cpp Added link to Lieske's paper on E5 Oct 29, 2016
jsattest.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
keptest.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
landgraf.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
license.txt Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
lun_test.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
lun_tran.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
lun_tran.h Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
lunar.def Fixed warnings/errors when compiling on MSVC. Combined static (lunar3… Jan 17, 2017
lunar.h Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
lunar.mak Fixed warnings/errors when compiling on MSVC. Combined static (lunar3… Jan 17, 2017
lunar2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
lunar64.def Converted DOS/Windows-style CR/LF endings to LF-only Jan 20, 2017
makefile Now making use of the '-p' option on 'mkdir' to avoid error messages … Apr 13, 2017
marstime.cpp Modified some constants to incorporate 2015 Jun 30 corrections made at Jul 10, 2016
mini_dll.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
miscell.cpp Cast to avoid new g++ compiler warning Oct 29, 2016
mjd.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
mpcorb.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
mpcorb2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
nutation.cpp Fixed warnings/errors when compiling on MSVC. Combined static (lunar3… Jan 17, 2017
obliqui2.cpp Initial commit Feb 16, 2016
obliquit.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
oblitest.cpp Initial commit Feb 16, 2016
persian.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
phases.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
pluto.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
precess.cpp Added functions for precise Earth orientation, using EOP (Earth Oct 30, 2016
precess2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
prectest.cpp OpenWATCOM can (again) successfully compile the code, for either DOS … Jan 19, 2017
ps_1996.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
rckin.cpp Initial commit Feb 16, 2016
refract.cpp Fixed warnings that came up when compiling the test program Apr 1, 2017
refract4.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
relativi.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
riseset3.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
riseset3.h Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
rocks.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
showelem.cpp P and Q vectors shown in MPC 8-line elements should always be signed Jun 15, 2016
showelem.h elements_in_mpc_format really ought to have been extern 'C' all along Mar 17, 2017
solseqn.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
spline.cpp The cubic spline function was stupid (more complicated than it needed… Sep 26, 2016
ssats.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
ssattest.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
superga2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
tables.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
test_ref.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
testprec.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
triton.cpp 'rocks.cpp' now has a decent orbit for Triton, so this code is now Apr 28, 2016
uranus1.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
uranus2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
utc_algo.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
utc_test.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
vislimit.cpp Added references to original publications May 15, 2017
vislimit.h Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
vsopson.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
watdefs.h Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
watmake OpenWATCOM can (again) successfully compile the code, for either DOS … Jan 19, 2017

README.md

lunar

Basic astronomical functions for solar system ephemerides, time systems, coordinate systems, etc. This includes some utilities based on these functions, such as a calendar computer and a utility to numerically integrate asteroid orbits. The code can be built for Windows, Linux, or BSD, and probably OS/X. Some documentation (in need of updates) is at

http://www.projectpluto.com/source.htm#astrocalc

On Linux, run make to build the library and various test executables. (You can also do this with MinGW under Windows.) In Linux, you can then run make install to put libraries in /usr/local/lib and some include files in /usr/local/include. (You will probably have to make that sudo make install.) For BSD, and probably OS/X, run gmake CLANG=Y (GNU make, with the clang compiler), then sudo gmake install.

On Windows, run nmake -f lunardll.mak with MSVC++. Optionally, add -BITS_32=Y for 32-bit code.