eta_prof

clustertools.analysis.profiles.eta_prof(cluster, mmin=None, mmax=None, nmass=10, rmin=None, rmax=None, nrad=20, vmin=None, vmax=None, emin=None, emax=None, kwmin=0, kwmax=15, npop=None, indx=None, bins=None, projected=False, normalize=False, plot=False, meq=False, **kwargs)[source]

Measure the radial variation in eta

Parameters:
clusterclass

StarCluster

mmin/mmaxfloat

minimum and maximum stellar mass

nmassint

number of mass bins (default: 10)

rmin/rmaxfloat

minimum and maximum stellar radii

nradint

number of radial bins

vmin/vmaxfloat

minimum and maximum stellar velocity

emin/emaxfloat

minimum and maximum stellar energy

kwmin/kwmaxfloat

minimum and maximum stellar type (kw)

npopint

population number

indxfloat

user defined boolean array from which to extract the subset

binsfloat

User defined bins in the form of (rlower,rmean,rupper) (default: None)

projectedbool

use projected values and constraints (default:False)

normalizebool

normalize radial bins by cluster’s half-mass radius (default: True)

plotbool

plot the alpha profile (default: False)

Returns:
rprofnfloat

natural log of each radius bin (normalized by half-mass radius)

eproffloat

slope of the sigma_v-mass function

detafloat

radial variation in eta calculated as deta = d(eta)/d(ln(r/rm)

edetafloat

error in deta

ydetafloat

y-intercept in fit to eta vs ln(r/rm)

eydetafloat

error in ydeta

Other Parameters:
kwragsstr

key word arguments for plotting