hhgalpy.df.diskdf.sampleLOS

diskdf.sampleLOS(los, n=1, deg=True, maxd=None, nsigma=None, targetSurfmass=True, targetSigma2=True)[source]

Sample along a given LOS

Parameters:
  • los (float or Quantity) – Line of sight Galactic longitude.

  • n (int, optional) – Number of distances to sample.

  • deg (bool, optional) – If False, los is in radians.

  • maxd (float or Quantity, optional) – Maximum distance to consider (for the rejection sampling).

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

  • targetSurfmass (bool, optional) – If True, use target surface mass (default=True).

  • targetSigma2 (bool, optional) – If True, use target sigma_R^2 (default=True).

Returns:

List of Orbits sampled.

Return type:

list

Notes

  • target=False uses target distribution for derivatives (this is a detail)

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