Commit Graph

23 Commits

Author SHA1 Message Date
Don Cross
284894c7e1 Updated Windows build process.
Fixed C compiler warnings that show up on Windows but not Linux.
Trim trailing whitespace for target code.
Generate Python documentation.
2019-07-09 16:35:15 -04:00
Don Cross
bae9d45e6f Generate JS iau2000b data from file. 2019-07-06 21:00:57 -04:00
Don Cross
78d43589ff Generate C iau2000b data from file. 2019-07-06 20:49:11 -04:00
Don Cross
463103ef70 JS: Generate AddSol calculations from data file. 2019-07-06 18:15:21 -04:00
Don Cross
f390fc9201 Generate C CalcMoon AddSol statements from data file.
Use the same data file that I generate AddSol for Python
to also generate them in the C source code.
2019-07-06 18:08:07 -04:00
Don Cross
20f87859d8 Moved AddSol data into a data file, so data can be shared across languages. 2019-07-06 17:50:45 -04:00
Don Cross
d750c61337 Python: Moved iau2000b and CalcMoon AddSol data into codegen phase.
Now the code generator knows how to optimize and inject these
two calculations into the Python code.
2019-07-06 17:29:34 -04:00
Don Cross
07ba91ed65 Use same code generator for JavaScript and Python: Chebyshev Pluto model. 2019-06-26 05:25:09 -04:00
Don Cross
027a6af007 Adapted JS vsop code generator to work with Python code too.
Now the Python code and the JavaScript code for VSOP models
are generated by codegen.c using the same $ASTRO_LIST_VSOP macro.
Python functions for calculating from VSOP are not yet implemented.
2019-06-25 21:28:20 -04:00
Don Cross
00dad8be32 Starting to add Python support in source translator. 2019-06-22 21:12:14 -04:00
Don Cross
7d4047429a Fixed #38 - Run C unit tests on Windows. 2019-05-19 21:29:31 -04:00
Don Cross
f41344afd5 Pluto work in progress: implemented Chebyshev code generator.
Not ready to push -- Chebyshev calculation not done yet for Pluto.
2019-05-18 19:57:57 -04:00
Don Cross
475cc122a9 Mostly finished with C version of VSOP calculations.
Still needs unit test.
2019-05-17 15:55:52 -04:00
Don Cross
36141c3d1e Minor changes: use LogError in code generator. 2019-05-16 21:40:05 -04:00
Don Cross
c7074f528e Reworking code generator to handle multiple target languages.
Generating Delta T table in both JavaScript and C.
Work in progress.
2019-05-16 15:24:14 -04:00
Don Cross
929397c8fa Extend the coverage of Delta-T data as far into the future as possible.
Was missing any data from delta_t/predicted.txt that occurred after
the final integer year value. Now include the very last line of data
even when it is not on a year boundary.
2019-05-06 12:19:16 -04:00
Don Cross
ad3bec5f4b Fixed #14 - Linux and Windows JS now match.
The floating point constants emitted for the Pluto Chebyshev
model did not quite match between Linux and Windows.
I suspect the real problem is not the operating system
but that I'm using different versions of Node on both:
Windows: v10.15.3
Linux: v8.15.1

Now I print only 12 place after the decimal instead of 18.
This makes no difference in the unit test output,
and reduces the JS code size significantly.
2019-04-15 13:32:12 -04:00
Don Cross
e87ccfc044 Eliminating JD: CalcChebyshev 2019-04-15 10:28:28 -04:00
Don Cross
c5ed0a3c3d Reduced delta_t data by 19339 bytes. 2019-04-14 17:24:48 -04:00
Don Cross
36643fc47a Fixed #2 - use finer-grained delta-t values without discontinuities.
Using historic, recent, and predicted values of TT-UT instead of
UTC leap seconds.  With linear interpolation, there are no longer
discrete jumps in the calculated TT values. Hopefully, this will
make event solvers (rise, set, etc) more well-behaved.
2019-04-14 16:42:50 -04:00
Don Cross
8dbe1d1f28 Renamed VSOP data types to lower case and to end with '_t'. 2019-04-09 13:42:32 -04:00
Don Cross
e90a3006b6 Updated license comments in source code. 2019-04-09 12:43:08 -04:00
Don Cross
2decdbc685 Generating JavaScript code. 2019-04-09 12:23:35 -04:00