This submodule introduces the possibility to create Complex Stellar Populations with BPASS data.
The two main modules are csp.eventrate and csp.spectracsp.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:
at_time: calculates the event rates at a given lookback time.
over_time: calculates the event rates over a lookback time (binned).
grid_at_time: alternative input. Takes a grid of points instead of a function. Does the same as at_time.
grid_over_time: alternative input. Takes a grid of points instead of a function. Does the same as over_time.
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.
This submodule introduces the possibility to create Complex Stellar Populations with BPASS data.
The two main modules are
csp.eventrate
andcsp.spectra
csp.eventrate
contains theCSPEventRate
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:
at_time
: calculates the event rates at a given lookback time.over_time
: calculates the event rates over a lookback time (binned).grid_at_time
: alternative input. Takes a grid of points instead of a function. Does the same asat_time
.grid_over_time
: alternative input. Takes a grid of points instead of a function. Does the same asover_time
.csp.spectra
contains theCSPSpectra
class, which can be used to calculate synthetic spectra for the given population. The same methods are available in this class asCSPEventRate
, 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.