Closed rodluger closed 5 years ago
Actually, increasing oversample
improves the behavior, so perhaps this isn't really a bug. I find that I need to go to oversample > 25
in this particular case before the wiggles disappear. I wonder if there's a more efficient integration method for these cases, but perhaps I should just suck it up :)
I bet #11 will help this, but it's a bit of a pain to get it working properly within theano. I've been working on it and this will be a great use case to demonstrate how useful it is!
I've gone back and forth on this for a while and I've found that adding in the contact points doesn't help too much. We can solve this by using an adaptive algorithm and some sort of polynomial approximation to the orbit, but I find that that breaks down pretty badly for long exposure times like this. I'm going to punt on this for now and say that you're just going to have to use a "large" number for oversample
when you want to have a long exposure time compared to the ingress and egress.
When the exposure time is comparable to the duration of the transit (which can occur for ultra-short period planets), the integration algorithm in
exoplanet
produces spurious wiggles. The code below compares a light curve integrated with exoplanet (orange line in plot) and one using a simple moving average (green line in plot). This occurs (with varying degrees) for all three integrationorder
values and is not related to the boundary effects: even though I'm plotting the light curve only in the vicinity of transit, I'm computing it on a much wider time grid. Note that settinguse_in_transit = False
does not fix this issue.