rcore¶
- clustertools.analysis.functions.rcore(cluster, method='casertano', nneighbour=6, mfrac=0.1, projected=False, plot=False, **kwargs)[source]¶
Calculate core radius of the cluster – The default method (method=’casertano’) follows Casertano, S., Hut, P. 1985, ApJ, 298, 80 to find the core – An alternative metrhod (method==’isothermal’) assumes the cluster is an isothermal sphere the core radius is where density drops to 1/3 central value — For projected core radius, the core radius is where the surface density profile drops to 1/2 the central value — Note that the inner mass fraction of stars used to calculate central density is set by mfrac (default 0.1 = 10%)
- Parameters:
- clusterclass
StarCluster instance
- methodstring
method of calculating the core radius of a star cluster (default ‘casertano’)
- if method ==’casertano’:
- nneighbourint
number of neighbours for calculation local densities
- if method==’isothermal’:
- mfracfloat
inner mass fraction to be used to establish the central density
- projectedbool
use projected values (default: False)
- plotbool
plot the density profile and mark the core radius of the cluster (default: False)
- Returns
- ——-
- rcfloat
core radius
- Other Parameters:
- None