galpy.df.streamdf.callMarg¶
- streamdf.callMarg(xy, **kwargs)[source]¶
Evaluate the distribution function (DF), marginalizing over some directions, in Galactocentric rectangular coordinates (or in observed l,b,D,vlos,pmll,pmbb) coordinates)
- Parameters:
xy (numpy.ndarray) – Phase-space point [X,Y,Z,vX,vY,vZ]; the distribution of the dimensions set to None is returned.
interp (bool, optional) – If True, use the interpolated stream track. Default is True.
cindx (int, optional) – Index of the closest point on the (interpolated) stream track if not given, determined from the dimensions given.
nsigma (int, optional) – Number of sigma to marginalize the DF over (approximate sigma). Default is 3.
ngl (int, optional) – Order of Gauss-Legendre integration. Default is 5.
lb (bool, optional) – If True, xy contains [l,b,D,vlos,pmll,pmbb] in [deg,deg,kpc,km/s,mas/yr,mas/yr] and the marginalized PDF in these coordinates is returned. Default is False.
ro (float or Quantity, optional) – Distance scale for translation into internal units (object-wide default).
vo (float or Quantity, optional) – Velocity scale for translation into internal units (object-wide default).
R0 (float or Quantity, optional) – Distance to the Galactic center (object-wide default).
Zsun (float or Quantity, optional) – Sun’s height above the plane (object-wide default).
vsun (float or Quantity, optional) – Sun’s motion in cylindrical coordinates (object-wide default).
- Returns:
Value of DF.
- Return type:
ndarray
Notes
2013-12-16 - Written - Bovy (IAS)