Skip to content
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
astrojuanlu opened this issue Jul 6, 2013 · 7 comments
Closed

Ephemerides #4

astrojuanlu opened this issue Jul 6, 2013 · 7 comments
Labels
Milestone

Comments

@astrojuanlu
Copy link
Member

@astrojuanlu astrojuanlu commented Jul 6, 2013

Look into https://github.com/brandon-rhodes/python-jplephem

@astrojuanlu astrojuanlu mentioned this issue Dec 27, 2013
4 of 5 tasks complete
@astrojuanlu astrojuanlu removed this from the 0.2.0 milestone Apr 15, 2014
@astrojuanlu astrojuanlu changed the title JPL ephemerides Ephemerides May 16, 2014
@astrojuanlu astrojuanlu added this to the 0.3.0 milestone Aug 17, 2014
@astrojuanlu
Copy link
Member Author

@astrojuanlu astrojuanlu 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.

@astrojuanlu
Copy link
Member Author

@astrojuanlu astrojuanlu 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.

@astrojuanlu
Copy link
Member Author

@astrojuanlu astrojuanlu commented Apr 29, 2015

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

@astrojuanlu
Copy link
Member Author

@astrojuanlu astrojuanlu 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?

@astrojuanlu
Copy link
Member Author

@astrojuanlu astrojuanlu 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

astrojuanlu added a commit that referenced this issue May 6, 2015
Added ephemerides computation, closing #4
@astrojuanlu
Copy link
Member Author

@astrojuanlu astrojuanlu commented May 6, 2015

Closed on 2404de7 🎉

@astrojuanlu astrojuanlu closed this May 6, 2015
jorgepiloto pushed a commit to jorgepiloto/poliastro that referenced this issue Sep 12, 2019
Correct some tests before merging massive refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant