Basic astronomical functions
Switch branches/tags
Nothing to show
Clone or download
Bill-Gray Returned value for the parallax precision of an MPC code was sometime…
…s off. Fortunately, the only consequence was incorrectly truncated output from the test program.
Latest commit bc72d7b Nov 12, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Should ignore a few executables and data files May 16, 2018
LICENSE Initial commit Feb 15, 2016
README.md Revised README.md to describe the actual build procedure Jul 26, 2016
ades2mpc.cpp Newly-added rmsTime tag in ADES format Sep 23, 2018
adestags.c A small utility to generate the arrays used in 'ades2mpc.cpp'. Apr 26, 2018
adestest.cpp Test driver for ADES translation broken out into a separate program Apr 25, 2018
afuncs.h Made TDB-TDT function 'active' and declared in afuncs.h Feb 24, 2018
alt_az.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
astcheck.cpp Sorted out snprintf() issues in older MSVC. This was a mangled mess, … Aug 19, 2018
astephem.cpp Switched from DOS-style CR/LF endings to LF endings. May 13, 2016
astfuncs.cpp Tolerance was set to a point where it could not, in some cases, be ac… Mar 4, 2018
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 Fixed 'calendar' demo so it'll look for the lunar phase file on my Li… Oct 4, 2018
cgi_func.cpp Added GPL notice to .cpp files that lacked one Mar 4, 2018
cgi_func.h Added GPL notice to .h files that lacked one Mar 4, 2018
cgicheck.cpp Function defs are now in 'cgi_func.h'. This code hadn't caught up. Apr 30, 2018
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 Added GPL notice to .cpp files that lacked one Mar 4, 2018
chinese.dat Initial commit Feb 16, 2016
classel.cpp Fix to roundoff problem with near-parabolic orbits Mar 4, 2018
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 No change to actual behavior, but it persuades scan-build that it nee… Feb 16, 2018
cospar.txt Changed rotation models for some planets/satellites, using the WGCCRE… Jul 23, 2018
cospar2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
cosptest.cpp Added GPL notice to .cpp files that lacked one Mar 4, 2018
date.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
date.h Added ability to suppress colons to get HHMMSS instead of HH:MM:SS Apr 6, 2018
de_plan.cpp Figured out and worked around the optimization issue with elderly MSV… May 1, 2018
delta_t.cpp OpenWATCOM C/C++ lacks this function. Or maybe has it under another n… May 1, 2018
dist.cpp Added GPL notice to .cpp files that lacked one Mar 4, 2018
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 Added GPL notice to .cpp files that lacked one Mar 4, 2018
eart2000.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
easter.cpp Sorted out snprintf() issues in older MSVC. This was a mangled mess, … Aug 19, 2018
elp82dat.cpp Scan-build also objected here (see previous commit). In this case, th… Mar 11, 2018
eop_prec.cpp This didn't need and shouldn't have had global scope; inevitably, it … Sep 19, 2017
get_bin.h Added signed integer variants of the existing unsigned functions May 1, 2018
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 Scan-build had complaints about all three of these. No actual bug was… Mar 11, 2018
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 Added GPL notice to .cpp files that lacked one Mar 4, 2018
integrat.cpp Test for 'jpleph.h' failed with GCC 4.8, which lacks the 'has_include… Nov 5, 2018
jd.cpp Added display of TDB-TDT and some other time systems Feb 24, 2018
jevent.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
jpl2b32.cpp Added GPL notice to .cpp files that lacked one Mar 4, 2018
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 Added GPL notice to .cpp files that lacked one Mar 4, 2018
license.txt Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
lun_test.cpp Added GPL notice to .cpp files that lacked one Mar 4, 2018
lun_tran.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
lun_tran.h Added GPL notice to .h files that lacked one Mar 4, 2018
lunar.def Fixes for issue #2 : 'astcheck' failed to build in current MSVC (rede… Aug 12, 2018
lunar.h Added code to parse MPC astrometry and extract observatory data. (Mos… Feb 26, 2018
lunar.mak Sorted out snprintf() issues in older MSVC. This was a mangled mess, … Aug 19, 2018
lunar2.cpp Fixed byte alignment and signed char problem reported as issue #3. Oct 18, 2018
lunar64.def Made TDB-TDT function 'active' and declared in afuncs.h Feb 24, 2018
makefile Building and installing 'integrat' is now done as a separate procedur… Aug 25, 2018
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 Added ability to suppress colons to get HHMMSS instead of HH:MM:SS Apr 6, 2018
mpc2sof.cpp Some MPCORB.DAT-like data that does not come from MPC _does_ have 'un… Jun 17, 2018
mpc_code.cpp Returned value for the parallax precision of an MPC code was sometime… Nov 12, 2018
mpc_fmt.cpp Some people provide MPC-formatted astrometry with no leading zero for… Oct 13, 2018
mpc_func.h New function to get mixed ADES and MPC observations in a passably tra… Apr 25, 2018
mpcorb.cpp We really should pick the perihelion time nearest the epoch, i.e., pu… Mar 23, 2018
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 Issue #3 caused me to look for instances where assuming chars are sig… Oct 18, 2018
precess.cpp New test routine for ecliptic vs. equatorial precession methods. Sep 29, 2017
precess2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
prectes2.cpp New test routine for ecliptic vs. equatorial precession methods. Sep 29, 2017
prectest.cpp OpenWATCOM can (again) successfully compile the code, for either DOS … Jan 19, 2017
ps_1996.cpp Now using the lat_alt_to_parallax() function from mpc_code.cpp. Mar 9, 2018
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 Added GPL notice to .h files that lacked one Mar 4, 2018
rocks.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
showelem.cpp Fixed problem with perihelion distance in displayed elements being tr… Oct 17, 2018
showelem.h elements_in_mpc_format really ought to have been extern 'C' all along Mar 17, 2017
snprintf.cpp Sorted out snprintf() issues in older MSVC. This was a mangled mess, … Aug 19, 2018
sof.cpp Two-column fields do happen. (One-column fields may someday, and real… Apr 20, 2018
solseqn.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
spline.cpp Added GPL notice to .cpp files that lacked one Mar 4, 2018
ssats.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
ssattest.cpp Added GPL notice to .cpp files that lacked one Mar 4, 2018
superga2.cpp Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
tables.cpp Sorted out snprintf() issues in older MSVC. This was a mangled mess, … Aug 19, 2018
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 Added GPL notice to .cpp files that lacked one Mar 4, 2018
utc_test.cpp Getting close to the end of the originally displayed range Mar 5, 2018
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 Revised 'vsopson.cpp' and 'lunar2.cpp' to work on a Raspberry Pi, whe… Nov 29, 2017
watdefs.h Changed DOS-style CR/LF endings to LF-only line endings Jul 10, 2016
watmake Four new object files. May 1, 2018

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.