calculate_starformation_rate module
File containing a selection of functions to calculate the star formation rates.
TODO: reconsider if this whole padding is really necessary
- syntheticstellarpopconvolve.calculate_starformation_rate.calculate_digitized_sfr_rates_binned_data_for_backward_convolution(config, convolution_instruction, convolution_time_bin_center, data_dict, sfr_dict, delay_time_data_bin_info_dict)[source]
Function to handle convolving binned data
This function performs the following steps: - sets up the shifted data-bin edges - loops over each left-right edge pair and determines which SFR bins that
edge-pair spans/overlaps with, the fractional overlap etc. for each
left-right edge pair, loops over the overlapping SFR bins
NOTE: does not support redshift-based convolution
- syntheticstellarpopconvolve.calculate_starformation_rate.calculate_digitized_sfr_rates_for_forward_convolution(config, convolution_instruction, sfr_dict, data_dict, time_bin_info_dict)[source]
Function to calculate the total starformation occuring in a particular time bin
if metallicity information is not required, this yields a scalar value
if it is required, this yields a vector with values matching total_star_formation_mass * (dP/dZ_{j})*dZ_{j} where Z_{j} is the metallicity-bin in which the system falls
TODO: abstract the actual SFR rate sampling TODO: move tde docstrings somewhere else
- syntheticstellarpopconvolve.calculate_starformation_rate.calculate_digitized_sfr_rates_non_binned_data_for_backward_convolution(config, convolution_instruction, convolution_time_bin_center, data_dict, sfr_dict)[source]
- syntheticstellarpopconvolve.calculate_starformation_rate.calculate_origin_time_array(config, data_dict, convolution_time_bin_center)[source]
Function to calculate the origin time array