sphere_coords

clustertools.util.coordinates.sphere_coords(cluster)[source]

Get the spherical coordinates of every star in the cluster

Parameters:
clusterclass

StarCluster

Returns:
r,theta,phi,vr,vtheta,vphifloat

stellar positions and velocities in spherical coordinates