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.

Extract date range of a bsp

See original GitHub issue

I have used jplephem excerpt to create a smaller version of de438.bsp, specifically, to truncate the date range from today’s date (whatever that is) to one year from now. I found by accident that when I called:

t, y = almanac.find_discrete( t0, t1, almanac.seasons( ephemerisPlanets ) )

I got an exception which I determined was triggered by not having a long enough date range in the ephemeris.

Is it possible please to add an option tojplephem or maybe an API call to SpiceKernel which gives back the start/end date ranges?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
brandon-rhodescommented, Sep 3, 2020

Thanks to:

e93f5db346588381ba6cf0923141206bf103de36

— it will now be easy to inspect and print ephemeris epoch times in the next version of Skyfield. You can try it out now with:

pip install https://github.com/skyfielders/python-skyfield/archive/master.zip

Enjoy!

1reaction
brandon-rhodescommented, Sep 3, 2020

This function:

from .timelib import calendar_date

— should give you a quick way to convert that date into something in the Gregorian calendar. For the future, I’ll try adding functions (maybe .initial_epoch and final_epoch, to match the SPK documentation?) that can produce a Skyfield date directly from those values. Thanks for the idea!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extract end_date from date range prompt
I am trying to extract the start date & end date from a date range prompt. I am dragging in a date prompt...
Read more >
extraction by range date - Microsoft Power BI Community
Solved: hi, I need to extract data allowing the user to select a specific day or a range. My table has a "start...
Read more >
How to extract date from text strings in Excel? - ExtendOffice
In Excel worksheet, how could you extract the date from text strings as ... Layout (easily read and edit large numbers of cells);...
Read more >
Users Can Now Extract Report Outputs With MetaManager
Content Extractor gives users the ability to quickly and easily identify report outputs that fall into a date range and delete them from...
Read more >
Date functions in HANA SQLScript explained - NextLytics AG
To get the current date, you can use the CURRENT_DATE function. It returns the current local system date. Here is an example: OUTTAB...
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