lightkurve / lightkurve

A friendly package for Kepler & TESS time series analysis in Python.
https://docs.lightkurve.org
MIT License
396 stars 159 forks source link

OSError in 'query_solar_system_objects' function #1417

Open Roseane19 opened 3 months ago

Roseane19 commented 3 months ago

OSError in 'query_solar_system_objects' function

Problem description

I've tried to get a list of asteroids or comets which could affect the light curve of the TIC 401945077 sector 5 but I've got this error:

OSError: SkyBot Solar System query failed.
URL used:
http://vo.imcce.fr/webservices/skybot/skybotconesearch_query.php?-mime=text&-ra=57.7501981106468&-dec=-0.879246830830049&-bd=0.0875&-loc=C57&EPOCH=2458438.1302161794
Response received:
# Flag: -1
# Ticket: 179533222487779135
SkyBoT asteroid conesearch -> numIntAstromJ2000_para[1]: computeEphemeris: *** Error: epoch of computation not covered by the orbit:
*** ... requested epoch ...: 2458438.1318176612              
*** ... available time span: 2018-03-21T00:47:31.000 (UTC) - 2018-03-28T01:59:00.000 (UTC)
*** ... available time span: 2018-04-18T23:41:03.177 (UTC) - 2018-05-04T08:04:55.301 (UTC)
*** ... available time span: 2018-05-04T08:05:55.301 (UTC) - 2018-05-13T11:30:01.272 (UTC)
*** ... available time span: 2018-05-13T11:31:01.272 (UTC) - 2018-05-30T00:33:13.680 (UTC)
*** ... available time span: 2018-05-30T00:34:13.680 (UTC) - 2018-06-12T19:43:48.752 (UTC)
*** ... available time span: 2018-06-24T16:44:59.999 (UTC) - 2018-07-05T16:35:59.999 (UTC)
*** ... available time span: 2018-07-07T04:08:59.999 (UTC) - 2018-11-15T11:33:59.999 (UTC)
*** ... available time span: 2018-12-18T01:20:59.999 (UTC) - 2023-11-30T13:00:00.000 (UTC)  

The code that I've used in my Jupyter Notebook:

import lightkurve as lk
TIC = 'TIC 401945077'
sector5 = lk.search_lightcurve (TIC, author='SPOC', sector=5, exptime=120).download()
df_sso = sector5.query_solar_system_objects(cadence_mask='all', show_progress=True)

Expected behavior

I don't know what this result means. The documentation says if no objects were found the returns should be 'None'. The standard radius is 15 pixel in this function. What is the best radius can I consider in the TESS TPFs? Someone could help with these inquiries please?

Environment

Nschanche commented 2 months ago

Hi @Roseane19 , thanks for reporting this issue. It looks like the returned error " Error: epoch of computation not covered by the orbit." indicates that Skybot does not have information for the time specified in this case: ... available time span: 2018-07-07T04:08:59.999 (UTC) - 2018-11-15T11:33:59.999 (UTC) ... available time span: 2018-12-18T01:20:59.999 (UTC) - 2023-11-30T13:00:00.000 (UTC)

I will look into this further to see how we can handle this case more cleanly.