You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use astropy.LombScargle in orbital dynamics to find resonances between giant planets and test particles, my orbits are not Keplerian and my integrator has adaptive time steps.
Running a test on an orbit that has a 1/1 resonance I found nothing close to 1/1 on the LS graphs.
Hi @gabiruzo - Depending a bit on the context, LS (or at least the default, single-term LS) might not be the best approach here. Especially since you mention the orbits aren't Keplerian, there will be a few signals with different frequencies present in any cartesian coordinate you look at. So it might be helpful to consider doing something like orbital frequency analysis instead (e.g., http://github.com/adrn/superfreq). But I guess if you have non-uniform timesteps, you would either have to snap/interpolate your timesteps to a uniform grid, or would have to use something like a non-uniform Fourier transform instead (e.g., https://cims.nyu.edu/cmcl/nufft/nufft.html). If the frequency structure is simple, you might be able to get away with doing a multi-term LS...but I wouldn't count on it!
For my case of 3 bodies and I am finding different frequency values for the 1/1 type resonances, what I expected with the ls was to observe the ratio relationship between my test particle and the secondary body, I know that these relations are not they must be exact but for each 1/1 resonance orbit I am getting different values between the second body and the test particle.
I am using a simplification of my integrator to obtain equispaced steps to use fft but the results seem strange just like in ls.
I would like to test SuperFreq but I need to better understand how it works.
Hi,
I am trying to use
astropy.LombScargle
in orbital dynamics to find resonances between giant planets and test particles, my orbits are not Keplerian and my integrator has adaptive time steps.Running a test on an orbit that has a 1/1 resonance I found nothing close to 1/1 on the LS graphs.
Does anyone have any suggestions?
Here is my code:
I expected to see two central peaks very close together. I'm inserting the time and inertial cartesian coordinates for both bodys.
The text was updated successfully, but these errors were encountered: