galpy.df.streamdf.sample¶
-
streamdf.
sample
(n, returnaAdt=False, returndt=False, interp=None, xy=False, lb=False)[source]¶ NAME:
samplePURPOSE:
sample from the DFINPUT:
n - number of points to return
returnaAdt= (False) if True, return (Omega,angle,dt)
returndT= (False) if True, also return the time since the star was stripped
interp= (object-wide default) use interpolation of the stream track
xy= (False) if True, return Galactocentric rectangular coordinates
lb= (False) if True, return Galactic l,b,d,vlos,pmll,pmbb coordinates
OUTPUT:
(R,vR,vT,z,vz,phi) of points on the stream in 6,N arrayHISTORY:
2013-12-22 - Written - Bovy (IAS)