question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make coordinates.solar_system_ephemeris accept local ephemeris file

See original GitHub issue

astropy.coordinates.solar_system_ephemeris.set() currently (version 3.1) has the possibility of accepting one of the presets (e.g. ‘builtin’, ‘de430’) or an URL pointing to another ephemeris to use. But if I have an ephemeris already downloaded to a local file, it does not allow me to pass the path to this local file to use.

It doesn’t work to specify the local file in URL format either i.e. “file://path/to/file.bsp”.

My suggestion would be to either make it possible to specify a local file either using the URL format specified above or allowing to pass the path to the local file directly.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rhandbergcommented, May 28, 2019

@mhvk - I’ll give it a try… PR coming soon!

1reaction
Cadaircommented, May 24, 2019

or just run python -m http.server in the directory it is in so you can put in a localhost:8000 url?!

Read more comments on GitHub >

github_iconTop Results From Across the Web

solar_system_ephemeris — Astropy v5.2
Default ephemerides for calculating positions of Solar-System bodies. ... The version number must correspond to an ephemeris file available at: ...
Read more >
Representations of time coordinates in FITS
In order to provide a complete description, TOPOCENTER requires the observatory's coordinates to be specified. We offer three options: the ITRS Cartesian  ......
Read more >
Representations of Time Coordinates in FITS
Planetary and Solar System ephemeris used (if applica-. ble). – Time Unit. – Corrections, errors, etc.: – Time offsets. – Absolute error.
Read more >
Representations of Time Coordinates in FITS - arXiv
its representation in FITS files as great as those met by the previ- ... Solar System ephemeris used (if applicable). – Time unit....
Read more >
Reading STEREO Ephemerides as SPICE Kernels - Caltech
GET STEREO COORD: Returns the x, y, z (and vx,vy,vz) coordinates of one of the two. STEREO spacecraft in one of the supported...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found