Comments (3)
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.
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.
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)
- TypeError: can't pickle _thread.RLock objects - when pickling InterpolatedSnapshotRZPotential
- Problem with jeans.py when integrating orbit in king potential HOT 2
- TypeError: cannot deepcopy this pattern object after importing galpy HOT 2
- Make ``quasiisothermaldf`` documentation consistent with the latest version of the code
- dop853_c integrator not working when integration doesn't start from 0 HOT 1
- Unpredictable behaviour in galpy.utils.coords
- Attempting to use other unit systems with galpy breaks silently HOT 2
- Local installation with `pip` does not seem to work
- list of array without astropy unit as vxvv to Orbit have no useful error msg HOT 2
- Birth location of an object changes with different time ranges HOT 1
- negative mass returned from galpy.potential.mass HOT 1
- Use System's PaulMcMillan-Astro/Torus where it's posible HOT 2
- keyword parameter t in galpy.orbit.Orbits.Orbit._call_internal will be ignored in some cases HOT 3
- Remove ignoring of `'xdrlib' is deprecated and slated for removal in Python 3.13` in test CI once it's no longer necessary
- `plotPotentials` and `Potential.plot` Lz input should be able to be a Quantity
- `plotPotentials` and `Potential.plot`: cannot use `effective` and `xy` at the same time
- Remove deprecated features in v1.9 HOT 1
- Cannot access galpy.util.coords HOT 1
- Minor inconsistency with the `vcirc` output for a re-scaled, non-MWPotential2014 potential instance HOT 3
- Wrapper potentials silently fail when applied to DissipativeForces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from galpy.