Previous topic

galpy.df.streamdf.ptdAngle

Next topic

galpy.df.streamdf.sigangledAngle

This Page

galpy.df.streamdf.sample

streamdf.sample(n, returnaAdt=False, returndt=False, interp=None, xy=False, lb=False, Vnorm=None, Rnorm=None, R0=None, Zsun=None, vsun=None)

NAME:

sample

PURPOSE:

sample from the DF

INPUT:

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

+Coordinate transformation inputs (all default to the instance-wide values):

Vnorm= circular velocity to normalize velocities with

Rnorm= Galactocentric radius to normalize positions with

R0= Galactocentric radius of the Sun (kpc)

Zsun= Sun’s height above the plane (kpc)

vsun= Sun’s motion in cylindrical coordinates (vR positive away from center)

OUTPUT:

(R,vR,vT,z,vz,phi) of points on the stream in 6,N array

HISTORY:

2013-12-22 - Written - Bovy (IAS)