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

Inconsistent amplitudes in stitched light curves #1420

Closed
panjiashu opened this issue Apr 25, 2024 · 3 comments
Closed

Inconsistent amplitudes in stitched light curves #1420

panjiashu opened this issue Apr 25, 2024 · 3 comments

Comments

@panjiashu
Copy link

Problem description

This is a data problem rather than a software problem. I downloaded all Kepler long cadence data of KIC 9845323 and stitched them, but found that the amplitudes of some quarters, e.g. Q7 (810-900 BKJD day) are significantly smaller than those of other quarters. I've looked up the asteroseismic logg of KIC 9845323 to be 1.6, which corresponds to the larger amplitudes in the plot. What could be the reason for the significantly compressed amplitudes of those quarters like Q7? Any advice would be appreciated.

Example

import lightkurve as lk
search_result = lk.search_lightcurve('KIC 9845323',
                    cadence='long',
                    author='Kepler',)
lc = search_result.download_all().stitch()
lc.plot()

stitch_err

Expected behavior

I expect the stitch function would give me a stitched light curve with consistent amplitudes across quarters.

Environment

  • platform (e.g. Linux, OSX, Windows): Linux
  • lightkurve version (e.g. 1.0b6): 2.4.2
  • installation method (e.g. pip, conda, source): pip
@panjiashu panjiashu changed the title Inconsistent amplitudes in some specific light curves Inconsistent amplitudes in stitched light curves Apr 25, 2024
Copy link

Hi there! 👋 Thank you for opening your first Lightkurve issue! 🙏 One of our maintainers will get back to you as soon as possible. 👩‍🚀 You can expect a response within 7 days. 📅 If you haven’t heard anything by then, feel free to ping this thread. 🛎️ We love that you are using Lightkurve and appreciate your feedback. 👍

@Nschanche
Copy link
Collaborator

Nschanche commented May 1, 2024

Hi @panjiashu, the stitch function by default will normalize each individual lightcurve in the collection, so each sector is normalized separately. I looked at each sector separately and can see there are a few issues.

for ii in range(len(search_result)):
    search_result[ii].download().plot()

This target is bright and near the saturation limit for Kepler. In sector 1 for example, you can see there are some unusual jumps in the lightcurve. If you download the target pixel file and plot it with the pipeline aperture, you can see that the pipeline is only the two 2 brightest pixels.
Screenshot 2024-05-01 at 2 36 12 PM

When these pixels saturate, the aperture mask does not capture the flux that bleeds to the surrounding pixels, leading to the strange behavior. I would recommend you remake the light curves using a larger aperture so that the total flux is captured. You can check out this tutorial if you are unfamiliar with that process.

@panjiashu
Copy link
Author

Hi @panjiashu, the stitch function by default will normalize each individual lightcurve in the collection, so each sector is normalized separately. I looked at each sector separately and can see there are a few issues.

for ii in range(len(search_result)):
    search_result[ii].download().plot()

This target is bright and near the saturation limit for Kepler. In sector 1 for example, you can see there are some unusual jumps in the lightcurve. If you download the target pixel file and plot it with the pipeline aperture, you can see that the pipeline is only the two 2 brightest pixels. Screenshot 2024-05-01 at 2 36 12 PM

When these pixels saturate, the aperture mask does not capture the flux that bleeds to the surrounding pixels, leading to the strange behavior. I would recommend you remake the light curves using a larger aperture so that the total flux is captured. You can check out this tutorial if you are unfamiliar with that process.

This clears my problem. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants