galpy.df.diskdf.surfacemass

diskdf.surfacemass(R, romberg=False, nsigma=None, relative=False)[source]

Calculate the surface-mass at R by marginalizing over velocity

Parameters:
  • R (float or Quantity) – Radius at which to calculate the surfacemass density.

  • romberg (bool, optional) – If True, use a romberg integrator (default: False)

  • nsigma (float, optional) – Number of sigma to integrate the velocities over

  • relative (bool, optional) – If True, return the relative surface mass at R (default: False)

Returns:

Surface mass at R

Return type:

float

Notes

  • 2011-03-XX - Bovy (NYU)