HeloiseS / hoki

Bridging the gap between observation and theory
https://heloises.github.io/hoki/intro.html
BSD 3-Clause "New" or "Revised" License
47 stars 8 forks source link

Complex Stellar Populations #64

Closed maxbriel closed 4 years ago

maxbriel commented 4 years ago

This submodule introduces the possibility to create Complex Stellar Populations with BPASS data.

The two main modules are csp.eventrate and csp.spectra csp.eventrate contains the CSPEventRate class, which can be used to calculate event rates from a given Stellar Formation History and Metallicity evolution.

The following methods are available in this class:

csp.spectra contains the CSPSpectra class, which can be used to calculate synthetic spectra for the given population. The same methods are available in this class as CSPEventRate, but provide spectra rather than even rates.

csp.sfh contains a class with which a Stellar Formation History (SFH) can be made. A collection of common parametric SFH are available (see documentation), but a custom one can also be given.

As support for these high level functions, a collection of utility and helper functions has been added. These can be found in csp.utils. Some these are optimised for performance (numba JIT compiled) and are not user friendly.