galpy.df.diskdf.sigma2surfacemass¶
- diskdf.sigma2surfacemass(R, romberg=False, nsigma=None, relative=False)[source]¶
Calculate the product sigma_R^2 x surface-mass at R by marginalizing over velocity.
- Parameters:
R (float or Quantity) – Radius at which to calculate the sigma_R^2 x 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 density (default: False).
- Returns:
Sigma_R^2 x surface-mass at R.
- Return type:
float
Notes
2010-03-XX - Written - Bovy (NYU).