Commit Graph

33 Commits

Author SHA1 Message Date
Brandon Rhodes 31549ce716 Prevent myself from running with old Python
Since I use an `ELLIPSIS` option that appears to not work under 2.7.
2019-01-03 23:31:26 -05:00
Brandon Rhodes 32a51f52c2 Change main computation routine to a generator
This is kind of magic.  Because it is now a generator, you have the
option of asking for position, then only proceeding to the velocity if
you need it, without having to repeat the work of getting to that point
again.
2015-02-08 14:31:07 -05:00
Brandon Rhodes 2f7dfefd43 Further document the new API, in code and README 2015-02-08 14:04:49 -05:00
Brandon Rhodes 19248ff89e Fix D''ARREST so that it becomes D'ARREST 2015-02-08 11:58:35 -05:00
Brandon Rhodes 95199b0114 Start documenting new SPK capabilities 2015-02-08 05:32:37 -05:00
Brandon Rhodes e9896e4c9d Quick benchmark script to test new performance 2015-02-08 04:27:09 -05:00
Brandon Rhodes 9447048a25 Have segments, when printed, include object names 2015-02-08 03:15:45 -05:00
Brandon Rhodes bc8192f66a Quick awk script to parse target names 2015-02-08 02:19:00 -05:00
Brandon Rhodes a56040b044 Move old Python-format ephemerides to "legacy"
Because bare directories with *.py files inside are now considered
packages to Python 3, these directories were being grabbed by the
"import" statement during certain tests, instead of letting Python find
the actual installed ephemerides packages.  Bumping them down a level
solves the problem, and also unclutters the top level.
2015-02-08 00:32:11 -05:00
Brandon Rhodes 8b26d8ac08 Make "refetch.sh" survive "./tmp" already existing 2014-06-11 11:52:58 -04:00
Brandon Rhodes 92eb548996 Avoid truncating ephemerides with repeated blocks
Before, an ephemeris that (a) had a repeated block of coefficients,
where (b) some of the coefficients did not match, would be silently
truncated at that block instead of getting completely compiled to numpy
arrays.  I have rebuilt DE421 since the earlier version of it that I
posted was accidentally truncated by this code.
2013-07-10 15:32:25 -04:00
Brandon Rhodes 2efb2e5c9c Have build.py generate setup.py, __init__.py files 2013-06-11 23:03:16 -04:00
Brandon Rhodes 27a301dcac Add a command to re-fetch build ephemerides
This ability allows development to re-commence on a machine after a
quick download of the ephemeris files, instead of having to rebuild
the ephemerides over again from their JPL data sets (that take quite
a long time to download!).
2013-01-13 07:37:18 -05:00
Brandon Rhodes 2fbb85ca7c Created a command to upload sdists to S3 since PyPI refuses packages this big. 2012-04-02 16:15:14 -04:00
Brandon Rhodes d48bd6287e Added DE421 to the mix, and tried to give them all reasonable docstrings. 2012-03-30 01:19:44 -04:00
Brandon Rhodes 569f3ca4c5 Started writing a setup.py to enable distribution of the ephemerides on PyPI, and gave de405 an __init__.py as a first step in that direction. 2012-03-29 21:26:52 -04:00
Brandon Rhodes 3c0626a6e5 Got the last of the four major ephemera, DE406, passing its tests by working around a discrepancy between what DE406's header says is the last date in the polynomials, and the actual last date. 2012-03-29 20:28:36 -04:00
Brandon Rhodes e1105df039 Skip creating empty libration or nutation files when no coefficients are there. 2012-03-29 18:04:32 -04:00
Brandon Rhodes 18e95c919d Switched to useful filenames: jpl-earthmoon.npy instead of jpl-03.npy, etc. 2012-03-29 17:06:40 -04:00
Brandon Rhodes fbd1951f03 Made the build script more memory-efficient so I can build DE422 on my laptop. 2012-03-29 12:28:57 -04:00
Brandon Rhodes 799d6ee382 Expanded list of ephemera we build by default to include 423 (which runs my laptop out of RAM, but, one thing at at time!). 2012-03-23 10:39:39 -04:00
Brandon Rhodes 997b424e1f Split the experimental "poke.py" into two real modules in a real package. 2012-03-23 09:05:30 -04:00
Brandon Rhodes 7b0457c802 Script build.py now saves numpy arrays to directories with names like "de405". 2012-03-23 07:47:08 -04:00
Brandon Rhodes daea979537 Renamed the data files to "jpl-*" to give credit where credit is due. 2012-03-21 22:08:35 -04:00
Brandon Rhodes 932e1dda16 Got nutations working! The build script needed to know that nutation only has two components, not three. 2012-03-21 14:12:41 -04:00
Brandon Rhodes 4f8638f961 Bugfix: the build.py script was pulling the first set of coefficients N times, instead of pulling all N sets of coefficients. 2012-03-21 10:58:25 -04:00
Brandon Rhodes c2961de518 Renamed my fake constants to lowercase, so they are clearly different than the real JPL constants from the header file. And, gave them cooler names. 2012-03-21 04:42:13 -04:00
Brandon Rhodes c0ebde5a52 Improved build.py so that it creates arrays built from all files that compose an ephemeris set. 2012-03-21 03:51:23 -04:00
Brandon Rhodes 327d4865b6 Added a synthetic pair of constants that represent the start and end times of the entire ephemeris. 2012-03-21 03:31:43 -04:00
Brandon Rhodes 85624d1894 The build script now reads the 1600 file and generates a .npy for each planet. 2012-03-21 03:27:18 -04:00
Brandon Rhodes d0b5546301 Wrote a script that opens a DE directory and, so far, saves all of the named constants defined in its header file. 2012-03-21 02:30:46 -04:00
Brandon Rhodes 656793fc04 Renamed the shell script that fetches NASA data with wget to "fetch.sh". 2012-03-21 01:43:37 -04:00
Brandon Rhodes e3029ec70c Wrote a quick script to download the NASA ephemeris files over FTP with wget. 2012-03-20 02:07:28 -04:00