galpy.df.diskdf.targetSurfacemassLOS

diskdf.targetSurfacemassLOS(d, l, log=False, deg=True)[source]

Evaluate the target surface mass along the line of sight given Galactic longitude and distance.

Parameters:
  • d (float or Quantity) – Distance along the line of sight.

  • l (float or Quantity) – Galactic longitude in degrees, unless deg=False.

  • deg (bool, optional) – If False, l is in radians. Default is True.

  • log (bool, optional) – If True, return the logarithm of the surface mass. Default is False.

Returns:

Surface mass times distance.

Return type:

float or Quantity

Notes

  • 2011-03-23 - Written - Bovy (NYU)