galpy.df.streamdf.find_closest_trackpointLB¶
-
streamdf.
find_closest_trackpointLB
(l, b, D, vlos, pmll, pmbb, interp=True, usev=False)[source]¶ NAME:
find_closest_trackpointLB- PURPOSE:
- find the closest point on the stream track to a given point in (l,b,…) coordinates
INPUT:
l,b,D,vlos,pmll,pmbb- coordinates in (deg,deg,kpc,km/s,mas/yr,mas/yr)
interp= (True) if True, return the closest index on the interpolated track
usev= (False) if True, also use the velocity components (default is to only use the positions)
OUTPUT:
index of closest track point on the interpolated or not-interpolated trackHISTORY:
2013-12-17- Written - Bovy (IAS)