galpy.df.diskdf.surfacemassLOS

diskdf.surfacemassLOS(d, l, deg=True, target=True, romberg=False, nsigma=None, relative=None)[source]

NAME:

surfacemassLOS

PURPOSE:

evaluate the surface mass along the LOS given l and d

INPUT:

d - distance along the line of sight (can be Quantity)

l - Galactic longitude (in deg, unless deg=False; can be Quantity)

OPTIONAL INPUT:

nsigma - number of sigma to integrate the velocities over

KEYWORDS:

target= if True, use target surfacemass (default)

romberg - if True, use a romberg integrator (default: False)

deg= if False, l is in radians

OUTPUT:

Sigma(d,l) x d

HISTORY:

2011-03-24 - Written - Bovy (NYU)