galpy.df.diskdf.surfacemassLOS¶
- diskdf.surfacemassLOS(d, l, deg=True, target=True, romberg=False, nsigma=None, relative=None)[source]¶
Evaluate the surface mass along the line of sight (LOS) given Galactic longitude and distance.
- Parameters:
d (float or Quantity) – Distance along the line of sight.
l (float or Quantity) – Galactic longitude (in deg, unless deg=False).
nsigma (float, optional) – Number of sigma to integrate the velocities over.
target (bool, optional) – If True, use target surfacemass (default).
romberg (bool, optional) – If True, use a romberg integrator (default: False).
deg (bool, optional) – If False, l is in radians.
relative (bool, optional) – If True, return d.
- Returns:
Sigma(d,l) x d
- Return type:
float
Notes
2011-03-24 - Written - Bovy (NYU)