question about obs argument in Orbit methods #523
-
I am trying to create lists of dists/ras/decs for an orbit in the following way: o_forward = Orbit( o_forward.integrate( o_backward = Orbit( o_backward.integrate( x_unit = u.kpc #TODO: FIGURE OUT WHAT NEEDS TO GET PASSED IN dist_values_orbit = np.concatenate( ra_values_orbit = np.concatenate( dec_values_orbit = np.concatenate( where the [R, vR, vT, z, vz, phi] values are from a particular object of interest and the two Orbit objects are meant to find its past/future trajectories. I see in line 3565 of the Orbits.py script that the dec method accepts an optional (keyword?) argument that defines the position of the observer. I get my Solar phase values from schonrich2010 and leung2022. I followed the stack trace of the ra()/dec()/dist() methods to https://github.com/jobovy/galpy/blob/v1.8.1/galpy/util/coords.py and I'm having a hard time with the following things: determining when the obs list elements needs Astropy units attached to them, and when obs is [x,y,z,vx,vy,vz] vs. [ro,vo,zo,U,V,W]. Any guidance would be appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Apologies for the slow reply, busy day... There are two answers to this question:
Hope this helps! I'm happy to follow-up with more explanation if necessary. It's generally easiest for me if you can send a full example that I can directly run (so has all imports and values specified). |
Beta Was this translation helpful? Give feedback.
Apologies for the slow reply, busy day... There are two answers to this question:
I think what you are trying to do is to determine the (ra,dec.dist) along the forward and backward path of an orbit started at a given point? That you could do simply as