Giter Club home page Giter Club logo

Comments (3)

jobovy avatar jobovy commented on June 20, 2024

Yes, this is expected. Flipping the velocities flips them in the Galactocentric frame, so you suddenly have your stars moving in the opposite way of the Sun (so you effectively add ~2x vcirc ~ 450 km/s). Flipping an orbit is mainly useful as an alternative way to integrate an orbit backwards (flip, integrate, flip back), but there's little reason to do this ever instead of just integrating towards smaller times (e.g., ts= numpy.linspace(0.,-100.,,5)*u.Myr).

from galpy.

smeingast avatar smeingast commented on June 20, 2024

Ah! Alright then, thanks for the tip (and the quick reply). Is it possible that integrating with negative times has only become possible recently with galpy? I feel like I tried this a few years ago and needed to flip the orbit to make the backward integration work. 🤔
In any case, this not only fixes my problem, it also makes writing my script far easier!! :D

from galpy.

jobovy avatar jobovy commented on June 20, 2024

Is it possible that integrating with negative times has only become possible recently with galpy? I feel like I tried this a few years ago and needed to flip the orbit to make the backward integration work. 🤔

I don't quite remember, but I think there used to be issues with integrating backward with negative times. I don't remember what they were though... Anyway, it should now work and please open an issue if it doesn't!

from galpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.