Table Of Contents

Next topic

gencmd

This Page

The classes

class gencmd.SSP(age, met, mf='kroupa', **kwargs)
_getiso(group='padova12', filterset='des')

Find the corresponding isochrone for a given age and metallicity

_interpolate()

This method can be generalized to interpolate any quantity given in the isochrone table.

NOTES:
  • higher order interpolation are broken. Scipy.interpolate.interp1d does not provide a good solution. Why?
class gencmd.df.Kroupa(a=[1.3, 2.35, 2.3], mlim=[0.08, 0.5, 2.0, 120.0])

An powerlaw mass function f(x) ~ x^-a

Args:
a (list): the powerlaw exponents for each piece mlim (list): the mass ranges for each exponent
Returns:
Object
sample(n)

Samples n times from the mass function.

>>> len(t.sample(10))
10
Args:
n (int): number of samples
Return:
array (numpy.ndarray): array containing the mass values sampled.

Indices and tables