Skip to content

Seeking a worked example for downloading a non-KIC target's data #1

@SimonJMurphy

Description

@SimonJMurphy

If one reads in the catalogue...
hdul = fits.open("hlsp_kbonus-bkg_kepler_kepler_source-catalog_kepler_v1.0_cat.fits")
it can be seen that some targets in the table do not have KIC numbers, e.g. they have
fname==gaia-dr3-2049135051630824064.

I'd like to retrieve the light curve for this target. So far I've tried
a = lk.search_lightcurve("gaia-dr3-2049135051630824064", cadence="long", mission="Kepler", author="KBONUS-BKG").download()
and
a = lk.search_lightcurve("Gaia DR3 2049135051630824064", cadence="long", mission="Kepler", author="KBONUS-BKG").download()
But these don't work. They return, e.g.

Could not resolve gaia-dr3-2049135051630824064 to a sky position.
/Users/sjm/Developer/lib/python3.11/site-packages/lightkurve/search.py:418: LightkurveWarning: Cannot download from an empty search result.
warnings.warn(

It would be useful to have a worked example that doesn't rely on the target already having a KIC number. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions