-
Notifications
You must be signed in to change notification settings - Fork 158
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
"det_flux" error #1412
Comments
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. 👍 |
Hi Sree, thanks for reaching out! This sounds like a pipeline change, we'll look into it. Currently the QLP lightcurve reader uses SAP flux as the default, which is why we can read in the files. I’m sure you’ve already tried this, but in the meantime you should be able to create a light curve collection with the flux set to kspasp for sectors 1-55 and det_flux in sector 56 if you so choose by doing something like this:
|
To access QLP detrended lightcurves across sectors 1-55 and 56+, I'm afraid one needs One possibility that # use det_flux. It the column does not exist, use kspsap_flux
lc.select_flux(["det_flux", "kspsap_flux"]) For reference, changes in QLP starting from sector 56: |
Thanks for referencing the other issue @orionlee, I had missed that before. The QLP reader currently does use different flags before/after sector 56 for flux_err, but it uses sap_flux as flux by default. We can update this to use kspsap_flux or det_flux depending on sector. |
I recalled there was some reason sap_flux instead of detrended flux was deliberately used as the default for QLP, but I do not remember the specifics. Changing the default to detrended flux will be a breaking change. The name change is because QLP team changed the detrending algorithm. From Glen Petitpas when I first asked him about the changes:
Considerations if we change QLP reader to make column names consistent.
One possibility is to make the renaming an option that users need to explicitly opt-in, e.g., add a new lcc = sr.download_all(rename_ksp_to_det=True)
lc = lcc.stitch()
lc = lc.select_flux("det_flux") |
Hi all,The problem is related to depreciated label ("kspsap_flux") for the QLP de-trended flux.
I tried to download all available the light curves for KIC 12690461, keeping the "kspsap_flux" as the required flux column. But found that such a column is not there in the headers. I found that this is due to change of label from "kspsap_flux" (untill sector 55) to "det_flux" (from sector 56).
Example
The text was updated successfully, but these errors were encountered: