geoparticle.utils.spacing_ring

spacing_ring(r, n, phi_ring=6.283185307179586) ndarray[source]

Compute the spacing between points on a ring given the number of points.

Shortest import: from geoparticle import spacing_ring

Parameters:
  • r (float or np.ndarray) – Radius of the ring(s).

  • n (int or np.ndarray) – Number of points on the ring(s).

  • phi_ring (float) – Total angle of the ring in radians (default is 2π for a full circle).

Returns:

Spacing between neighboring points on the ring.

Return type:

np.ndarray