New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ephemerides #4

Closed
Juanlu001 opened this Issue Jul 6, 2013 · 7 comments

Comments

1 participant
@Juanlu001
Member

Juanlu001 commented Jul 6, 2013

@Juanlu001 Juanlu001 referenced this issue Dec 27, 2013

Merged

Refactor #14

4 of 5 tasks complete

@Juanlu001 Juanlu001 removed this from the 0.2.0 milestone Apr 15, 2014

@Juanlu001 Juanlu001 changed the title from JPL ephemerides to Ephemerides May 16, 2014

@Juanlu001 Juanlu001 added this to the 0.3.0 milestone Aug 17, 2014

@Juanlu001

This comment has been minimized.

Member

Juanlu001 commented Apr 4, 2015

It would be nice to modify the mass parameters of the planets when loading an ephemeris, see brandon-rhodes/python-jplephem#9.

@Juanlu001

This comment has been minimized.

Member

Juanlu001 commented Apr 4, 2015

Other than that, this is how the ephemeris can be loaded using jplephem and astropy:

>>> from datetime import datetime
>>> from astropy import time
>>> from jplephem.spk import SPK
>>> kernel = SPK.open('de421.bsp')
>>> t = time.Time(datetime.today())
>>> t.jd
2457117.0397053314
>>> kernel[0, 4].compute(t.jd)
array([  1.54722791e+08,   1.42346197e+08,   6.11033174e+07])
>>> kernel[0, 4].compute(t.jd1, t.jd2)
array([  1.54722791e+08,   1.42346197e+08,   6.11033174e+07])

jplephem.spk is very low level so perhaps I will have to build a slightly higher level API.

@Juanlu001

This comment has been minimized.

Member

Juanlu001 commented Apr 29, 2015

Ideas to handle ephemeris data: https://github.com/jaberg/skdata/wiki/Managing-Data

@Juanlu001

This comment has been minimized.

Member

Juanlu001 commented Apr 29, 2015

Another idea: spacepy copies required files on import: http://sourceforge.net/p/spacepy/code/ci/master/tree/spacepy/__init__.py

May I provide some kind of script instead?

@Juanlu001

This comment has been minimized.

Member

Juanlu001 commented Apr 29, 2015

In case I go the script way, now that I have setuptools I can use entry points. See also conda-build: http://conda.pydata.org/docs/build.html

Juanlu001 added a commit that referenced this issue May 6, 2015

Merge pull request #42 from Juanlu001/ephemerides
Added ephemerides computation, closing #4
@Juanlu001

This comment has been minimized.

Member

Juanlu001 commented May 6, 2015

Closed on 2404de7 🎉

@Juanlu001 Juanlu001 closed this May 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment