-
Notifications
You must be signed in to change notification settings - Fork 159
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
New feature request with pull request coming: lc.remove_data(start=start,end=end,col='str') #1353
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. 👍 |
Dear @astromattwood, Thank you very much for posting this issue.
There are also specific ways to mask out data which might contain transits or other phenomena as shown here (https://docs.lightkurve.org/tutorials/3-science-examples/exoplanets-identifying-transiting-planet-signals.html) We however sincerely think you for your interest and will keep this in mind if we ever do move in this direction. We will close this issue now, but please feel free to post again to open it back up. |
Dear Rebekah (et al.)
Well, derp - I don’t know why I didn’t think of that, since that’s essentially what .truncate() is doing as well, and I used that kind of masking all the time! I should have just asked your team instead of plowing ahead, but it was an interesting few hours figuring out how to modify the code and all, so not completely time wasted in my book.
Thanks again for all the effort that’s gone into lightkurve - much appreciated from a community user.
Cheers,
Matt
…--
Matt A. Wood, Ph.D.
Regents Professor of Physics & Astronomy
Texas A&M University-Commerce
Commerce, TX 75429
O: 903.886.5486 M: 903.269.6682
On Aug 8, 2023, at 4:04 PM, Rebekah ***@***.***> wrote:
Dear @astromattwood <https://github.com/astromattwood>,
Thank you very much for posting this issue.
While your code is indeed useful, there are already ways to create boolean masks to block out specific time series data using python and lightkurve e.g.,
lc_n = lc[(lc.time.value < start) | (lc.time.value > end)]
There are also specific ways to mask out data which might contain transits or other phenomena as shown here (https://docs.lightkurve.org/tutorials/3-science-examples/exoplanets-identifying-transiting-planet-signals.html)
As such adding in this function, while useful, would be an unnecessary step and might not represent all functionality that a user may desire.
We however sincerely think you for your interest and will keep this in mind if we ever do move in this direction.
We will close this issue now, but please feel free to post again to open it back up.
—
Reply to this email directly, view it on GitHub <#1353 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACSHPJVXQFYWUQV7OSVLRNLXUKSW5ANCNFSM6AAAAAA3FHXO7Y>.
You are receiving this because you were mentioned.
|
Problem description
For my work it is useful to remove small sections of data. E.g., just before the mid-sector gap the star is in eclipse ingress, but hasn't reached eclipse midpoint. In this case it is better to simply remove those ingress points.
So I'm wanting functionality that is similar to the 'truncate' method, but able to remove data points by time within a light curve object.
I've followed the developer instructions and have tested the code below (inserted just after 'truncate'), and it appears to work. Of course the core developers may want to change the name, argument names, etc.
I did think it should be required that both 'start' and 'end' be passed, and I think this does that.
Example
Expected behavior
N/A
Environment
MacOS
LK 2.4.0
The text was updated successfully, but these errors were encountered: