Skip to content
Advertisement

Orbit integration in galpy without specifying the time steps array

I just discovered galpy and went all day through documentation and examples but I am still a little confused about the possibility to integrate an orbit without specifying the set of times.

A simple example present in the documentation reads:

JavaScript

but I ask if it’s possible to use the integrate method without specifying the whole array of times but only the amount of time in the appropriate units. For example:

JavaScript

Thank you.

Advertisement

Answer

If the documentation doesn’t say such an interface exists, you can probably assume it doesn’t, though a quick look at the code confirms this. In any case, even if such a shortcut existed the integrator functions themselves still require an array of time steps to integrate over, so this would be just a shortcut.

Even if you just wanted to specify “an amount of time” you would still need to also provide a time step, though you could also have a default time step. You could write your own shortcut function like:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement