brandon-rhodes / python-jplephem

Python version of NASA DE4xx ephemerides, the basis for the Astronomical Alamanac
MIT License
108 stars 28 forks source link

JPLEphem2.0 with Skyfield #8

Closed cnwangfeng closed 8 years ago

cnwangfeng commented 9 years ago

How skyfield supports new DE430? Or I have to use DE421?

astrojuanlu commented 9 years ago

This belongs to python-skyfield instead but you can use the Kernel class to load de430 in the same way you would do with python-jplephem.

https://github.com/brandon-rhodes/python-skyfield/blob/master/skyfield/jpllib.py#L15

Other than that, @brandon-rhodes will correct me if I am wrong but I think Skyfield relies on the legacy API.

brandon-rhodes commented 9 years ago

I am working on a new Skyfield release, which should emerge by the end of the month, that will encourage the use of SPICE kernels instead of the ad-hoc Python-packaged ephemerides. I am currently, when I have moments to work on the project, working out a few last problems with the new API that SPICE kernels will require.

brandon-rhodes commented 8 years ago

The new version Skyfield 0.5 is now out, and supports DE430! You can check out the documentation for ephemerides at:

http://rhodesmill.org/skyfield/planets.html

Enjoy! :)

astrojuanlu commented 8 years ago

Awesome, thanks! :)