GalSBI-SPS: Overview of the model

In this tutorial, we will give an overview of the stellar population synthesis-based galaxy population model GalSBI-SPS that is used in the galsbi package when using Tortorelli+25 in the model definition. We will explain how galaxy catalogs are generated and how the model can be customized. As in the phenomenological model, we assume that galaxies are split into two populations: star-forming (or blue) galaxies and quiescent (or red) galaxies, with a scatter that allows the two populations to overlap, reflecting the observed continuum of galaxy properties, in terms of both SEDs and global physical characteristics. More details for each component can be found in Tortorelli+25.

Galaxy stellar mass function

The first step GalSBI-SPS performs to generate a galaxy catalogue is to sample logarithmic formed stellar masses \(\log{\mathcal{M}}\) (in solar mass units \(M_{\odot}\)) and redshifts \(z\) from a redshift-evolving galaxy stellar mass function (GSMF). We model the GSMF as the sum of two Schechter functions, a low-mass component (l subscript) and a high-mass component (h subscript), with different parameter values for the populations of blue and red galaxies. The functional form is as follows:

\[\begin{split}\Phi(\log{\mathcal{M}}, z) = &\mathrm{ln}(10) e^{-10^{\log{\mathcal{M}} - \log{\mathcal{M}^*(z)}}} \\ & \times \left [ \phi_{l}^*(z) \left( 10^{\log{\mathcal{M}} - \log{\mathcal{M}^*(z)}} \right)^{\alpha_{l}+1} \right. \\ & \left. \qquad + \phi_{h}^*(z) \left( 10^{\log{\mathcal{M}} - \log{\mathcal{M}^*(z)}} \right)^{\alpha_{h}+1} \right].\end{split}\]

The parameters \(\alpha_{l}\) and \(\alpha_{h}\) are the low and high-mass component faint-end slopes, respectively. \(\log{\mathcal{M}^*(z)}\) is the characteristic stellar mass, assumed to be the same for the low and high-mass components. \(\phi_{\mathrm{l}}^*(z)\) and \(\phi_{\mathrm{h}}^*(z)\) represents the low and high-mass number density of galaxies at the characteristic stellar mass.

\(\alpha_{l}\) and \(\alpha_{h}\) can be modified in GalSBI-SPS with the parameters sm_fct_alpha_*_lowmass and sm_fct_alpha_*_highmass, where * can be either blue or red depending on the specific galaxy population.

In the current implementation, for \(\log{\mathcal{M}^*(z)}\) and \(\phi^*(z)\), GalSBI-SPS offers only a single parametrization:

  • sm_fct_parametrization = “logquadratic_power”:
    \[\begin{split}\log{\mathcal{M^*}}(z) &= \log{\mathcal{M^*}}_0 + \log{\mathcal{M^*}}_1 \times \log{(1+z)} + \log{\mathcal{M^*}}_2 \times \log{(1+z)}^2, \\ \phi^*_{\mathrm{l,h}}(z) &= \phi^*_{\mathrm{amp},\mathrm{l,h}} \times (1 + z)^{\phi^*_{\mathrm{exp},\mathrm{l,h}}}\end{split}\]

Each of the parameters \(\log{\mathcal{M^*}}_0\), \(\log{\mathcal{M^*}}_1\), \(\log{\mathcal{M^*}}_2\) has the same value for the low and high-mass component, but different values for the blue and the red populations. They can be defined as follows:

  • \(\log{\mathcal{M^*}}_{0}\): sm_fct_m_star_*_0_lowmass, where * can be either blue or red.

  • \(\log{\mathcal{M^*}}_{1}\): sm_fct_m_star_*_1_lowmass, where * can be either blue or red.

  • \(\log{\mathcal{M^*}}_{2}\): sm_fct_m_star_*_2_lowmass, where * can be either blue or red.

\(\phi^*_{\mathrm{amp}}\) and \(\phi^*_{\mathrm{exp}}\) have different values for the low and high-mass components and for the blue and red populations. They can be defined using the following parameters:

  • \(\phi^*_{\mathrm{amp},\mathrm{l}}\): sm_fct_phi_star_*_amp_lowmass, where * can be either blue or red.

  • \(\phi^*_{\mathrm{amp},\mathrm{h}}\): sm_fct_phi_star_*_amp_highmass, where * can be either blue or red.

  • \(\phi^*_{\mathrm{exp},\mathrm{l}}\): sm_fct_phi_star_*_exp_lowmass, where * can be either blue or red.

  • \(\phi^*_{\mathrm{exp},\mathrm{h}}\): sm_fct_phi_star_*_exp_highmass, where * can be either blue or red.

Sampling galaxies from the GSMF creates a catalogue of galaxies with redshifts and formed stellar masses. Changing the parameters of the GSMF therefore changes the number of galaxies, the redshift distribution and the formed stellar mass distribution. The impact of the different parameters on the GSMF is illustrated in the interactive figure below.

This interactive figure shows the GSMF for blue and red galaxies color-coded by redshifts. The sliders allow you to change the parameters of the GSMF and evaluate their impact on the number density of galaxies as function of formed stellar mass.

Galaxy star formation history

GalSBI-SPS models galaxy star formation histories (SFHs) in units of \(M_{\odot}\,\mathrm{yr}^{-1}\) using the truncated skewed-normal massfunc_snorm_trunc family introduced by Robotham+20. Its functional form is

\[\mathrm{SFR}(t) = \mathrm{mSFR}\, \exp\left[-\frac{X(t)^2}{2}\right] \left[1-\Phi\left(t;\mu_{\mathrm{trunc}}, \sigma_{\mathrm{trunc}}\right)\right],\]

where

\[\begin{split}\mu_{\mathrm{trunc}} &= \mathrm{mpeak} + \frac{|\mathrm{magemax}-\mathrm{mpeak}|}{\mathrm{mtrunc}}, \\ \sigma_{\mathrm{trunc}} &= \frac{|\mathrm{magemax}-\mathrm{mpeak}|}{2\,\mathrm{mtrunc}}, \\ X(t) &= \left(\frac{t-\mathrm{mpeak}}{\mathrm{mperiod}}\right) \left(e^{\mathrm{mskew}}\right)^{ \operatorname{asinh}\left[(t-\mathrm{mpeak})/\mathrm{mperiod}\right]}.\end{split}\]

\(\Phi(t;\mu,\sigma)\) is the Normal cumulative distribution function. \(\mathrm{magemax}\) is the maximum stellar age at the galaxy redshift, \(\mathrm{mtrunc}\) controls the early-time truncation, \(\mathrm{mSFR}\) is the untruncated peak amplitude, \(\mathrm{mpeak}\) is the look-back time of that peak in Gyr, \(\mathrm{mperiod}\) is the SFH duration in Gyr, and \(\mathrm{mskew}\) controls its asymmetry. GalSBI-SPS normally fixes mtrunc=2 and computes

\[\mathrm{magemax}(z) = \mathrm{magemax}_{z=0} - t_{\mathrm{lb}}(z),\]

where magemax_z0=13.4 Gyr by default and \(t_{\mathrm{lb}}\) is the observer-frame look-back time.

The impact of the different parameters on the SFH and the resulting galaxy spectra is illustrated in the interactive figure below.

The sliders allow you to change the parameters of the truncated skewed Normal distribution and evaluate their impact on the predicted star formation history and spectrum of the galaxy. The spectra have been normalized to the median flux in the [5500, 5550] Å range of the \(\mathrm{mSFR}=50\), \(\mathrm{mpeak}=13\), \(\mathrm{mperiod}=1\), and \(\mathrm{mskew}=0\) galaxy.

The SFH is shown for a galaxy at \(z=0\) on the common look-back-time grid used by GalSBI-SPS. Here \(t=0\) denotes the epoch at which the galaxy is observed, not the observer’s present day. The SFH is set to zero for \(t>\mathrm{magemax}(z)\), allowing every galaxy to share one stored time grid without forming stars before its allowed formation epoch.

SFH population models

The SFH shape is described by mpeak, mperiod, and mskew. Its normalization mSFR is derived rather than independently sampled: GalSBI-SPS requires the time integral of the complete SFH to equal the formed stellar mass \(\mathcal{M}_{\mathrm{formed}}\) drawn from the GSMF. Three SFH population models are defined in galaxy_star_formation_history.py:

tortorelli25_snorm_trunc

The published GalSBI-SPS model. It samples the three smooth-shape parameters jointly from a truncated multivariate Normal distribution.

conditional_snorm_trunc

A galaxy-property-conditioned smooth model in which SFH peak time, duration, and skew depend on formed stellar mass, redshift, galaxy population, and the previously sampled SFH properties.

conditional_snorm_burst_trunc

The same smooth model plus stochastic recent-burst occurrence and a conditional burst formed-mass fraction.

The catalogue physical-property workflow selects these models through sfh_population_model. The published Tortorelli+25 model remains the default. The conditional models use the fiducial peak, duration, skew, and burst coefficients in common_sps.py unless they are overridden by a model configuration or user-supplied keyword arguments. The function sample_conditional_sfh_parameters reads these coefficients from the GalSBI parameter object and returns mpeak, mperiod, mskew, has_burst, and fburst arrays. Selecting the appropriate ProMage and ProSpect model is handled galaxy by galaxy from has_burst and fburst, as described in Saving Galaxy Spectra.

A minimal run with the conditional recent-burst SFH, optional two-population diffuse-dust prescription, and Miller+26 size relation is:

from galsbi import GalSBI

model = GalSBI("Tortorelli+25")
model(
    file_name="GalSBI_SPS_conditional_burst",
    sfh_population_model="conditional_snorm_burst_trunc",
    dust_attenuation_population_model="two_population_diffuse_dust",
    size_model="miller2026",
)

Use sfh_population_model="conditional_snorm_trunc" for the corresponding smooth-only population. The dust and size choices are independent of the SFH choice: use dust_attenuation_population_model="tortorelli25" for the published dust model and size_model="nedkova21_binned" for the binned Nedkova+21 relation. These keyword arguments override the published Tortorelli+25 defaults for this run; all other configuration values are unchanged.

SFH time grids and formed-mass normalization

The published tortorelli25_snorm_trunc workflow evaluates every SFH on the common, uniformly spaced time_grid and uses trapezoidal integration. This path remains unchanged. The conditional models also provide a separate SSP-grid evaluator, evaluate_sfh_on_ssp_grid, for use by the new physical-property and photometry calculations. load_ssp_time_grid loads and caches the Age, AgeBins, and AgeWeights arrays from the configured ProSpect SSP FITS library. Ages are look-back times from the epoch at which each galaxy is observed.

When ProSpect is called with intSFR=FALSE, the formed mass represented by a sampled SFH is

\[\mathcal{M}_{\mathrm{formed}} = \sum_i \mathrm{SFR}(\mathrm{Age}_i)\, \mathrm{AgeWeights}_i.\]

GalSBI-SPS uses this same weighted sum for SSP-grid normalization. For an object with burst fraction \(f_{\mathrm{burst}}\), the requested component masses are

\[\begin{split}\mathcal{M}_{\mathrm{smooth}} &= (1-f_{\mathrm{burst}})\mathcal{M}_{\mathrm{formed}}, \\ \mathcal{M}_{\mathrm{burst}} &= f_{\mathrm{burst}}\mathcal{M}_{\mathrm{formed}}.\end{split}\]

Let \(U_{\mathrm{smooth},i}\) and \(U_{\mathrm{burst},i}\) denote the SSP-grid responses for unit mSFR and unit mburst, respectively. The amplitudes passed to ProSpect are

\[\begin{split}\mathrm{mSFR} &= \frac{\mathcal{M}_{\mathrm{smooth}}} {\sum_i U_{\mathrm{smooth},i}\mathrm{AgeWeights}_i}, \\ \mathrm{mburst} &= \frac{\mathcal{M}_{\mathrm{burst}}} {\sum_i U_{\mathrm{burst},i}\mathrm{AgeWeights}_i}.\end{split}\]

The burst response is constant before truncation for SSP ages younger than mburstage=0.1 Gyr. The same Normal-CDF early-time truncation is then applied to the smooth and burst components, exactly as in ProSpect’s massfunc_snorm_burst_trunc. Consequently, mburst is not generally equal to \(\mathcal{M}_{\mathrm{burst}}/(10^8\,\mathrm{yr})\).

GalSBI-SPS reports SFRs averaged over both the most recent 10 Myr and 100 Myr as star_formation_rate_10_myr and star_formation_rate, respectively. For the conditional models, each is the formed mass in SSP bins with Age below the corresponding time limit, divided by 10 Myr or 100 Myr. The shorter average is more sensitive to recent bursts, while the 100 Myr average remains the quantity used by the gas-metallicity relation. The published model’s uniform grid has 100 Myr spacing and therefore cannot resolve a 10 Myr average; its star_formation_rate_10_myr values are NaN. Metallicity histories use the same weighted formed mass, define the remaining mass fraction at AgeBins, and interpolate it to Age. This is the deterministic discrete metallicity prescription used to create the ProMage training data. Both calculations operate in bounded-memory chunks and are used by the catalogue physical-property workflow for both conditional SFH models.

The catalogue context records the active look-back-time grid as ctx.sfh_time_grid. It is equal to par.time_grid for the published Tortorelli+25 model and to the cached SSP Age array for either conditional model. The physical catalogue contains has_burst and fburst for every mode. They are respectively False and zero in the published and conditional smooth-only models.

By default, star_formation_history and metallicity_history are retained on that active grid. Setting retain_sfh_histories=False omits these two two-dimensional columns to reduce memory use when only ProMage magnitudes and scalar physical properties are required. The active time grid and scalar SFR, SFH-shape, metallicity, and burst columns remain available.

Surviving stellar mass

The stellar mass drawn from the GSMF is interpreted as total formed stellar mass. The published Tortorelli+25 model retains its original surviving-mass emulator and output definition. The conditional models use versioned TorchScript emulators trained to predict

\[r_{\star} = \log_{10}\left( \frac{\mathcal{M}_{\mathrm{surviving}}} {\mathcal{M}_{\mathrm{formed}}} \right).\]

Galaxies without a recent burst use the massfunc_snorm_trunc emulator. Galaxies with has_burst=True use the massfunc_snorm_burst_trunc emulator, whose additional input is log10(fburst). GalSBI-SPS restores the original galaxy order after this split and computes the absolute surviving mass as

\[\log_{10}\mathcal{M}_{\mathrm{surviving}} = \log_{10}\mathcal{M}_{\mathrm{formed}} + r_{\star}.\]

The model metadata, version, SFH family, physical-property order, and training support are validated before inference. The default emulator locations are configured by surviv_stellar_mass_emulator_smooth_directory and surviv_stellar_mass_emulator_burst_directory.

Published Tortorelli+25 SFH population model

Define the normalized Tortorelli+25 peak coordinate as

\[q = \frac{\mathrm{magemax}-\mathrm{mpeak}}{\mathrm{magemax}}, \qquad \mathrm{mpeak}=\mathrm{magemax}(1-q).\]

The Tortorelli+25 model parametrizes \(\log_{10}q\) for blue and red galaxies as

\[\begin{split} \log_{10}q =& \ a_0(z) +a_M(z)\log_{10}\left(\frac{\mathcal{M}_{\mathrm{formed}}}{M_{\odot}}\right) \end{split}\]

with slope and intercept linearly evolving with redshift as

\[\begin{split}a_0(z) &= a_{0,0}+a_{0,z}\log_{10}(1+z), \\ a_M(z) &= a_{M,0}+a_{M,z}\log_{10}(1+z).\end{split}\]

The four coefficients have different values for blue and red populations and map to the existing configuration names as follows:

  • \(a_{0,0}\): logmpeak_massevo_intcpt_zevo_intcpt_*.

  • \(a_{0,z}\): logmpeak_massevo_intcpt_zevo_slope_*.

  • \(a_{M,0}\): logmpeak_massevo_slope_zevo_intcpt_*.

  • \(a_{M,z}\): logmpeak_massevo_slope_zevo_slope_*.

In each name, * is either blue or red.

\(\mathrm{mperiod}\) and \(\mathrm{mskew}\) are instead parametrised as function of stellar mass as

\[\begin{split}\log{(\mathrm{mperiod})} =& \log{(\mathrm{mperiod})}_{\mathrm{mass,evo,intcpt}} + \\ & \log{(\mathrm{mperiod})}_{\mathrm{mass,evo,slope}} \times \log{\mathcal{M}} \ , \\ \mathrm{mskew} =& \mathrm{mskew}_{\mathrm{mass,evo,intcpt}} + \\ & \mathrm{mskew}_{\mathrm{mass,evo,slope}} \times \log{\mathcal{M}} \ .\end{split}\]

\(\log{(\mathrm{mperiod})}_{\mathrm{mass,evo,intcpt}}\), \(\log{(\mathrm{mperiod})}_{\mathrm{mass,evo,slope}}\), \(\mathrm{mskew}_{\mathrm{mass,evo,intcpt}}\), and \(\mathrm{mskew}_{\mathrm{mass,evo,slope}}\) have different values for the blue and red populations. They can be defined using the following parameters:

  • \(\log{(\mathrm{mperiod})}_{\mathrm{mass,evo,intcpt}}\): logmperiod_massevo_intcpt_*, where * can be either blue or red.

  • \(\log{(\mathrm{mperiod})}_{\mathrm{mass,evo,slope}}\): logmperiod_massevo_slope_*, where * can be either blue or red.

  • \(\mathrm{mskew}_{\mathrm{mass,evo,intcpt}}\): mskew_massevo_intcpt_*, where * can be either blue or red.

  • \(\mathrm{mskew}_{\mathrm{mass,evo,slope}}\): mskew_massevo_slope_*, where * can be either blue or red.

The type-specific covariance is stored in sfh_shape_params_cov_* and all three dimensions are truncated to their configured *_min_* and *_max_* bounds. The physical peak time is reconstructed from \(q\) and the galaxy-specific magemax before evaluating the SFH.

Galaxy-property-conditioned smooth SFHs

The new model conditions on

\[x_M = \log_{10}\left(\frac{\mathcal{M}_{\mathrm{formed}}}{M_{\odot}}\right)-10, \qquad \zeta=\ln(1+z),\]

and on galaxy type \(T\in\{\mathrm{blue},\mathrm{red}\}\). First it samples the dimensionless peak coordinate \(p\):

\[\begin{split}\operatorname{logit}(\mu_p) &= a_{0,T}+a_Mx_M+a_z\zeta, \\ p &\sim \operatorname{Beta}\left(\mu_p\kappa_{p,T}, (1-\mu_p)\kappa_{p,T}\right), \\ \mathrm{mpeak} &= \mathrm{mpeak}_{\min} +p\left(\mathrm{magemax}-\mathrm{mpeak}_{\min}\right).\end{split}\]

The plus sign in the final expression is part of the model definition. It maps \(p=0\) to \(\mathrm{mpeak}_{\min}\) and \(p=1\) to the maximum stellar age. The default lower bound is \(\mathrm{mpeak}_{\min}=-2\) Gyr; negative mpeak values describe a formal peak after observation and permit a still-rising SFH.

Next define the log-relative duration \(w=\ln(\mathrm{mperiod}/\mathrm{magemax})\) and sample

\[\begin{split}\mu_w &= d_{0,T}+d_Mx_M+d_z\zeta+d_p\operatorname{logit}(p), \\ w &\sim \operatorname{TruncatedStudentT}_{\nu=5} \left(\mu_w,\sigma_{w,T};w_{\min},w_{\max}\right), \\ w_{\min} &= \ln\left(\frac{\mathrm{mperiod}_{\min}} {\mathrm{magemax}}\right), \qquad w_{\max}=\ln\left(\frac{\mathrm{mperiod}_{\max}} {\mathrm{magemax}}\right), \\ \mathrm{mperiod} &= \mathrm{magemax}\,e^w.\end{split}\]

The Student-t is sampled directly inside its finite interval; an unbounded draw is never clipped onto an emulator boundary.

Finally, the skew coordinate \(s\) is conditional on both preceding draws:

\[\begin{split}\operatorname{logit}(\mu_s) &= e_{0,T}+e_Mx_M+e_z\zeta +e_p\operatorname{logit}(p)+e_w\,w, \\ s &\sim \operatorname{Beta}\left(\mu_s\kappa_{s,T}, (1-\mu_s)\kappa_{s,T}\right), \\ \mathrm{mskew} &= \mathrm{mskew}_{\min} +s(\mathrm{mskew}_{\max}-\mathrm{mskew}_{\min}).\end{split}\]

Peak, duration, and skew are redrawn together in the rare case where their combination produces no representable smooth star formation at the youngest SSP age. This conditions the joint SFH population on having nonzero formed stellar mass before the galaxy is observed; it does not alter the individual parameter limits.

Thus the smooth-shape factorization is

\[P(p,w,s\mid\mathcal{M}_{\mathrm{formed}},z,T) =P(p\mid\mathcal{M}_{\mathrm{formed}},z,T) P(w\mid p,\mathcal{M}_{\mathrm{formed}},z,T) P(s\mid p,w,\mathcal{M}_{\mathrm{formed}},z,T).\]

The complete coefficients are attributes of the GalSBI parameter object. Their default values are direct fits to mass-complete observational samples and can be overridden by a model configuration or user-supplied keyword arguments. The same smooth-SFH values are used by both conditional modes. Peak uses peak_intercept_*, peak_mass_slope, peak_redshift_slope, and peak_concentration_*. Duration uses duration_intercept_*, duration_mass_slope, duration_redshift_slope, duration_peak_slope, and duration_scale_*. Skew uses skew_intercept_*, skew_mass_slope, skew_redshift_slope, skew_peak_slope, skew_duration_slope, and skew_concentration_*. Asterisks denote separate blue and red values.

Stochastic recent-burst component

The burst model retains the same smooth-shape factorization and adds a binary recent-burst occurrence indicator \(B\):

\[\operatorname{logit}(P(B=1)) = b_{0,T}+b_Mx_M+b_z\zeta.\]

If \(B=0\), fburst is exactly zero and the smooth SFH and photometry models must be used. If \(B=1\), a burst-fraction coordinate \(y\) is sampled:

\[\begin{split}\operatorname{logit}(\mu_f) &= c_{0,T}+c_Mx_M+c_z\zeta, \\ y &\sim \operatorname{Beta}\left(\mu_f\kappa_{f,T}, (1-\mu_f)\kappa_{f,T}\right), \\ f_{\mathrm{burst}} &= f_{\min}+y(f_{\max}-f_{\min}).\end{split}\]

Here

\[f_{\mathrm{burst}} = \frac{\mathcal{M}_{\mathrm{burst}}} {\mathcal{M}_{\mathrm{smooth}}+\mathcal{M}_{\mathrm{burst}}}\]

is the fraction of total formed stellar mass assigned to the burst. It is not the fraction of mass surviving at observation and not the fraction formed in the most recent 100 Myr. The burst-probability coefficients are named burst_intercept_*, burst_mass_slope, and burst_redshift_slope. The burst-fraction coefficients are fburst_intercept_*, fburst_mass_slope, fburst_redshift_slope, and fburst_concentration_*.

The default recent-burst parameters are physically motivated fiducial values, not direct observational constraints from the smooth-SFH catalogues used to fit the peak, duration, and skew relations. At \(\log_{10}(\mathcal{M}_{\mathrm{formed}}/\mathrm{M}_\odot)=10\) and \(z=0\), the defaults give recent-burst probabilities of 0.08 and 0.035 and mean active burst fractions of 0.03 and 0.01 for blue and red galaxies, respectively. No mass or redshift dependence is assumed for these initial burst values.

The structural supports are:

  • conditional_snorm_trunc: mperiod in [0.3, 100] Gyr.

  • conditional_snorm_burst_trunc: mperiod in [0.3, 10] Gyr for both galaxies with and without a recent burst.

  • Both conditional modes: mpeak in [-2 Gyr, magemax] and mskew in [-0.5, 1].

  • Galaxies with a recent burst: fburst in [1e-4, 0.2]; galaxies without one have exactly zero.

Metallicity history

We linearly map the stellar mass evolution of each galaxy on to the shape of the gas-phase metallicity evolution. The metal enrichment is thus following a 1-to-1 relation with the mass-build, such that e.g. when half of the stellar mass of a galaxy has been assembled, half of the metal enrichment has occurred:

\[Z_{\mathrm{gas}} (t) = Z_{\mathrm{gas,init}} + (Z_{\mathrm{gas,final}} - Z_{\mathrm{gas,init}}) \frac{1}{\mathcal{M}} \int_{0}^{t'} SFR(t) \mathrm{d}t\]

\(\mathcal{M}\) is stellar mass in units of $M_{odot}$ drawn from the SMF. \(Z_{\mathrm{gas,init}}\) is the initial metallicity for the earliest phases of star-formation and can be modified with the parameter Zgas_init. We also impose a maximum metallicity given by \(Z_{\mathrm{gas,max}}\) governed by the parameter Zgas_max. \(Z_{\mathrm{gas,final}}\) is the present-day gas-phase metallicity of the object that is sampled, in terms of gas-phase oxygen abundance \(\log{(O/H)}\), from:

\[\begin{split}\left[ 12 + \log{(O/H)} \right] =& \ \alpha(t_{\mathrm{lb}}) \log{\left( \frac{SFR}{M_{\odot} yr^{-1} } \right)} + \\ &\beta(t_{\mathrm{lb}}) \log{\left(\frac{\mathcal{M}}{M_{\odot}} \right)} + \gamma(t_{\mathrm{lb}})\end{split}\]

\(\alpha(t_{\mathrm{lb}})\), \(\beta(t_{\mathrm{lb}})\), \(\gamma(t_{\mathrm{lb}})\) and the scatter around this mean relation \(\sigma_{\mathrm{FMR}}(t_{\mathrm{lb}})\) evolve quadratically with lookback time:

\[\begin{split}\alpha(t_{\mathrm{lb}}) &= \alpha_0 + \alpha_1 t_{\mathrm{lb}} + \alpha_2 t_{\mathrm{lb}}^2 \\ \beta(t_{\mathrm{lb}}) &= \beta_0 + \beta_1 t_{\mathrm{lb}} + \beta_2 t_{\mathrm{lb}}^2 \\ \gamma(t_{\mathrm{lb}}) &= \gamma_0 + \gamma_1 t_{\mathrm{lb}} + \gamma_2 t_{\mathrm{lb}}^2 \\ \sigma_{\mathrm{FMR}}(t_{\mathrm{lb}}) &= \sigma_{\mathrm{FMR},0} + \sigma_{\mathrm{FMR},1} t_{\mathrm{lb}} + \sigma_{\mathrm{FMR},2} t_{\mathrm{lb}}^2\end{split}\]

\(\alpha_i, \beta_i, \gamma_i\) can be modified in GalSBI-SPS with the parameters gas_metallicity_alphai_*, gas_metallicity_betai_*, and gas_metallicity_gammai_*, respectively, while \(\sigma_{\mathrm{FMR},i}\) with gas_metallicity_scatteri_*, where * can be either blue or red.

\(Z_{\mathrm{gas,final}}\) and \(\log{(O/H)}\) are related through:

\[Z_{\mathrm{gas,final}} = Z_{\odot} \times 10^{\left[ 12 + \log{(O/H)} \right] - \left[ 12 + \log{(O/H)} \right]_{\odot}}\]

where \(Z_{\odot}\) and \(\left[ 12 + \log{(O/H)} \right]_{\odot}\) can be varied through the parameters SOLAR_GAS_METALLICITY and SOLAR_LOG_OH_PLUS12, respectively.

Gas ionisation

We sample the gas ionisation parameter \(logU\) from a truncated Normal distribution with mean given by:

\[\log{U} = \upsilon_0 + \upsilon_1 (\log{(O/H)} + 4) + \upsilon_2 \log{n_e} + \upsilon_3 (\log{(sSFR)} + 9)\]

where \(\log{(O/H)}\) and \(\log{(sSFR)}\) are obtained from the physical properties sampled in the SMF, SFH and metallicity history. The stellar mass for the sSFR computation is the surviving stellar mass. The values of \(\upsilon_i\) can be modified in GalSBI-SPS with the parameters gas_ionization_upsiloni. The same values hold for the blue and the red population. The scatter around this relation can be varied with the parameter gas_ionization_scatter. We limit the sampled gas ionisation parameter values to the range set by the parameters logUmin and logUmax.

Dust component

We model the effect of dust in GalSBI-SPS using the Charlot & Fall (2000) two-phase dust attenuation model. Older stars are solely attenuated by a dust screen, regulated by the \(\tau_{\mathrm{ISM}}\) parameter, which represents the dust in the diffuse ISM. Young stars are instead attenuated by the dust screen and by an additional birth cloud component that adds extra attenuation towards young stars, simulating their embedding in molecular clouds and HII regions. The birth cloud component is regulated by the \(\tau_{\mathrm{BC}}\) parameter.

We sample \(\log{\tau_{\mathrm{BC}}}\) from a Normal distribution with mean \(\mu_{\log{(\tau_{\mathrm{BC,\{ b,r \}}})}}\) and scatter \(\sigma_{\log{(\tau_{\mathrm{BC,\{b,r\}}})}}\) governed in GalSBI-SPS by the parameters logtaubirth_mean_* and logtaubirth_scatter_*, where * can be either blue or red. We limit the sampled \(\log{\tau_{\mathrm{BC}}}\) values to the range set by the parameters logtaubirth_min and logtaubirth_max.

The diffuse-screen population is selected with dust_attenuation_population_model. The default value, tortorelli25, preserves the published model. It samples \(\log_{10}(\tau_\mathrm{ISM})\) from a Normal distribution around

\[\begin{split}\log_{10}(\tau_\mathrm{ISM}) =& \tau_{\mathrm{ISM},0} + \tau_{\mathrm{ISM},1}\log_{10}(1+z) + \\ &\tau_{\mathrm{ISM},2}\log_{10}\left(\frac{\mathcal{M}_\mathrm{formed}} {M_{\odot}}\right) + \tau_{\mathrm{ISM},3}\log_{10}(\mathrm{sSFR}).\end{split}\]

The values of \(\tau_{\mathrm{ISM},i}\) can be changed in GalSBI-SPS with the parameters logtauscreen_a0_*, while the scatter around the relation with logtauscreen_scatter_*, where * can be either blue or red. We limit the sampled \(\log{\tau_{\mathrm{ISM}}}\) values to the range set by the parameters logtauscreen_min and logtauscreen_max.

The optional two_population_diffuse_dust model describes the low-attenuation tail and the main dust-rich diffuse-screen population separately. It uses surviving stellar mass and the star formation rate averaged over the latest 100 Myr,

\[\log_{10}(\mathrm{sSFR}_{100}) = \log_{10}\left(\frac{\mathrm{SFR}_{100}} {\mathcal{M}_\mathrm{surviving}}\right).\]

Values below dust_logssfr_floor are set to that lower limit. GalSBI-SPS already generates separate blue and red galaxy populations, so the existing galaxy type selects the corresponding attenuation coefficients. The sSFR does not redefine a galaxy’s type. Define \(s_\mathrm{ref}=\mathtt{dust\_logssfr\_reference}\), whose default is \(-10.5\). For either population,

\[\boldsymbol{x} = \left[1,\ \log_{10}(1+z),\ \log_{10}\left(\frac{\mathcal{M}_\mathrm{surviving}}{M_\odot}\right)-10,\ \max(\log_{10}(\mathrm{sSFR}_{100}),-13) -s_\mathrm{ref}\right].\]

The probability of drawing from the diffuse-dust-poor population and the two component means are

\[\begin{split}P(\mathrm{dust\mbox{-}poor}\mid\boldsymbol{x}) &= \frac{1}{1+\exp(-\boldsymbol{p}\cdot\boldsymbol{x})}, \\ \mu_\mathrm{dust\mbox{-}poor} &= \boldsymbol{a}\cdot\boldsymbol{x}, \\ \mu_\mathrm{dust\mbox{-}rich} &= \boldsymbol{b}\cdot\boldsymbol{x}.\end{split}\]

The vectors \(\boldsymbol{p}\), \(\boldsymbol{a}\), and \(\boldsymbol{b}\) are set by logtauscreen_dustpoor_probability_a0_* through logtauscreen_dustpoor_probability_a3_*, logtauscreen_dustpoor_a0_* through logtauscreen_dustpoor_a3_*, and logtauscreen_dustrich_a0_* through logtauscreen_dustrich_a3_*. Each population has its own scatter, logtauscreen_dustpoor_scatter_* or logtauscreen_dustrich_scatter_*. Both Normal distributions are sampled directly between logtauscreen_min and logtauscreen_max.

The birth-cloud distribution is unchanged and is sampled independently of the selected diffuse-screen population. Selecting this dust model is independent of selecting a smooth or recent-burst SFH model.

Velocity dispersion

We model the velocity dispersion \(\sigma_{\mathrm{disp}}\) following the stellar mass-velocity dispersion relation:

\[\begin{split}\sigma_{\mathrm{disp}}(\mathcal{M}) &= \sigma_b \left ( \frac{\mathcal{M}}{M_b} \right)^{s_1} \ \mathrm{for} \ \mathcal{M} \le M_b \\ \sigma_{\mathrm{disp}}(\mathcal{M}) &= \sigma_b \left ( \frac{\mathcal{M}}{M_b} \right)^{s_2} \ \mathrm{for} \ \mathcal{M} > M_b\end{split}\]

where \(\mathcal{M}\) is the surviving stellar mass. The values for \(\log{\sigma_b}\), \(\log{M_b}\), \(s_1\), \(s_2\), and the scatter around the relation can be varied in GalSBI-SPS through the parameters vel_disp_logsigma_b, vel_disp_logM_b, vel_disp_s_1, vel_disp_s_2 and vel_disp_std, respectively. The same values hold for the blue and the red population.

Active galactic nuclei

In GalSBI-SPS, the probability of a galaxy hosting an AGN as function of redshift and stellar mass is given by the ration between the redshift-evolving GSMFs of blue and red galaxies and the AGN host galaxy mass function (HGMF) derived in Bongiorno+16. Following López-López+24, we statistically assign an AGN to a host galaxy with a Bernoulli trial proportional to the computed probability. To assign the AGN spectral contribution, we use the Temple+21 templates, which cover u-band to W2-band wavelengths. These parametric templates are governed by a single parameter, namely the AGN bolometric luminosity. In GalSBI-SPS, the AGN luminosity is expressed as a fraction \(f_{\mathrm{AGN}}\) of the galaxy bolometric luminosity, \(f_{\mathrm{AGN}} = L_{\mathrm{bol,AGN}} / L_{\mathrm{bol,galaxy}}\).

We model \(\log{f_{\mathrm{AGN}}}\) as a two component mixture of Normal distributions We then assign AGN flux contributions to all galaxies, regardless of whether they are classified as AGN hosts. However, \(\log{f_{\mathrm{AGN}}}\) is sampled from different distributions depending on the AGN classification. Galaxies hosting AGNs draw from the high \(\log{f_{\mathrm{AGN}}}\) distribution, while non-AGN galaxies draw from the low \(\log{f_{\mathrm{AGN}}}\) one. We adopt a threshold of \(\log{f_{\mathrm{AGN}}} = -1\) to separate these two regimes.

The parameters of the two component mixture of Normal distributions are:

  • \(\mu_{f_{\mathrm{AGN,1}}}\): logfagn_mu1_*, where * can be either blue or red.

  • \(\sigma_{f_{\mathrm{AGN,1}}}\): logfagn_sigma1_*, where * can be either blue or red.

  • \(\mu_{f_{\mathrm{AGN,2}}}\): logfagn_mu2_*, where * can be either blue or red.

  • \(\sigma_{f_{\mathrm{AGN,2}}}\): logfagn_sigma2_*, where * can be either blue or red.

The user should set the parameter add_agn_component to True in the model definition to enable the spectral contribution of AGNs and define the absolute path to the folder containing the Temple+21 model with the parameter abs_path_temple2021.

Galaxy Morphology

The last step in generating a galaxy catalogue is to assign a morphological parameters to each galaxy. In GalSBI-SPS, we assume that the galaxy light profile is described by a single Sersic component. Therefore, the morphological parameters we sample are those used to describe the Sersic profile, meaning the effective radius, proxy of the galaxy size, the ellipticity and the Sersic index.

Size

In GalSBI-SPS, we sample the effective radius \(r_{50}\) (containing 50% of the total light from the model) from a lognormal distribution whose mean depends on the surviving stellar mass \(\mathcal{M}\) of the galaxy. The parameter size_model selects one of three prescriptions:

  • "tortorelli25" is the original published GalSBI-SPS model and remains the default.

  • "nedkova21_binned" interpolates the complete relations measured by Nedkova et al. (2021), rather than extrapolating their individual parameters.

  • "miller2026" uses the continuous relations measured by Miller et al. (2026), with local relations supplying the redshift range below their data.

All three prescriptions use surviving stellar mass and return a rest-frame optical, major-axis half-light radius in kpc.

Published Tortorelli+25 model

The published model follows two different functional forms for blue and red galaxies. For blue galaxies, the dependence is a single power law:

\[r_{50} = A \left( \frac{\mathcal{M}}{5 \times 10^{10} M_{\odot}} \right)^B\]

where \(\log{A}\) and \(B\) are assumed to evolve linearly with redshift:

\[\begin{split}\log{A} &= \log{A}_{\mathrm{intcpt}} + \log{A}_{\mathrm{slope}} \times z \ , \\ B &= B_{\mathrm{intcpt}} + B_{\mathrm{slope}} \times z\end{split}\]

\(\log{A}_{\mathrm{intcpt}}\), \(\log{A}_{\mathrm{slope}}\), \(B_{\mathrm{intcpt}}\), and \(B_{\mathrm{slope}}\) are controlled in GalSBI-SPS by the parameters r50_stellar_mass_logA_blue_intcpt, r50_stellar_mass_logA_blue_slope, r50_stellar_mass_B_blue_intcpt, and r50_stellar_mass_B_blue_slope, respectively. The scatter around the log-normal distribution for blue galaxy sizes is instead controlled by the parameter logr50_stellar_mass_std_blue.

For red galaxies, we model the dependence as a double power-law:

\[r_{50} = \zeta (\mathcal{M})^{\eta} \left( 1 + \frac{\mathcal{M}}{10^{\delta}} \right)^{\theta - \eta}\]

where \(\eta\) and \(\theta\) are the slope at the low and high mass end, \(\zeta\) is the normalisation, while \(10^{\delta}\) is the stellar mass at which the second derivative of the function is at a maximum. All these parameters also evolve linearly with redshift:

\[\begin{split}\eta &= \eta_{\mathrm{intcpt}} + \eta_{\mathrm{slope}} \times z \ , \\ \theta &= \theta_{\mathrm{intcpt}} + \theta_{\mathrm{slope}} \times z \ , \\ \log{\zeta} &= \log{\zeta}_{\mathrm{intcpt}} + \log{\zeta}_{\mathrm{slope}} \times z \ , \\ \delta & = \delta_{\mathrm{intcpt}} + \delta_{\mathrm{slope}} \times z \ .\end{split}\]

\(\eta_{\mathrm{intcpt}},\eta_{\mathrm{slope}},\theta_{\mathrm{intcpt}},\theta_{\mathrm{slope}},\log{\zeta}_{\mathrm{intcpt}},\log{\zeta}_{\mathrm{slope}},\delta_{\mathrm{intcpt}},\delta_{\mathrm{slope}}\) are controlled in GalSBI-SPS by the parameters r50_stellar_mass_eta_red_intcpt, r50_stellar_mass_eta_red_slope, r50_stellar_mass_theta_red_intcpt, r50_stellar_mass_theta_red_slope, r50_stellar_mass_logzeta_red_intcpt, r50_stellar_mass_logzeta_red_slope, r50_stellar_mass_delta_red_intcpt, and r50_stellar_mass_delta_red_slope. The scatter around the log-normal distribution for red galaxy sizes is instead controlled by the parameter logr50_stellar_mass_std_red.

This prescription evolves all coefficients linearly with redshift and is retained for exact reproducibility of the published model. It should not be extrapolated physically to high-redshift, low-mass red galaxies. The scatter parameters are standard deviations in natural logarithm, as in the original implementation.

Binned Nedkova+21 model

For size_model="nedkova21_binned", the blue-galaxy relation is

\[r_{50} = A_i \left(\frac{\mathcal{M}}{5\times10^{10}\,M_\odot}\right)^{B_i},\]

and the red-galaxy relation is

\[r_{50} = \gamma_i\mathcal{M}^{\alpha_i} \left(1+\frac{\mathcal{M}}{10^{\delta_i}}\right)^{\beta_i-\alpha_i}.\]

The index \(i\) identifies the four measured intervals \(0.2\leq z\leq0.5\), \(0.5<z\leq1\), \(1<z\leq1.5\), and \(1.5<z\leq2\). GalSBI-SPS evaluates the complete relation in each bin and interpolates \(\log_{10}(r_{50})\) between the bin centres. This retains the covariance between the double-power-law parameters. Below \(z=0.1\), the local rest-frame g-band Lange et al. (2015) relation is used, with blue and red populations defined by their dust-corrected \((u-r)_\mathrm{stars}=1.5\) colour division. The Lange and first Nedkova relations are joined over \(0.1<z<0.2\). Above \(z=2\), the final measured Nedkova relation is held fixed instead of being extrapolated.

The logarithmic scatter is interpolated from the Nedkova measurements and is expressed in dex. The measured values are \([0.22,0.22,0.22,0.23]\) for blue galaxies and \([0.19,0.18,0.20,0.25]\) for red galaxies. Below the first Nedkova bin centre, the corresponding first-bin scatter is retained while the mean relation approaches the Lange relation.

Miller+26 model

For size_model="miller2026", blue galaxies follow

\[\log_{10}(r_{50}) = m(z)\left(\log_{10}(\mathcal{M}/M_\odot)-8.5\right)+b(z),\]

where

\[\begin{split}b(z) &= \left[-0.0074+\exp(-1.88z)\right](z^2+0.16),\\ m(z) &= \left[-0.042z^{3/2}\exp(-z)-0.013z^{1/2}+0.079\right]^{1/2}.\end{split}\]

Red galaxies follow the pivoted double power law

\[r_{50} = r_p(z)\left(\frac{\mathcal{M}}{M_p}\right)^{\alpha(z)} \left[\frac{1+(\mathcal{M}/M_p)^6}{2}\right]^{[\beta-\alpha(z)]/6},\]

with

\[\begin{split}\alpha(z) &= -0.20+0.67\exp(-z),\\ \log_{10}(r_p/\mathrm{kpc}) &= z[-0.95\exp(-z)-0.32]+0.82,\\ \log_{10}(M_p/M_\odot) &= 10.36,\\ \beta &= 0.53.\end{split}\]

The positive sign of the exponential term in \(\alpha(z)\) follows the redshift trend and symbolic-regression table in Miller et al. (2026); Equation 12 of the first arXiv version contains an inconsistent negative sign. Miller et al. constrain blue galaxies over \(0.5<z<8\) and red galaxies over \(0.5<z<3\). Therefore, the red relation above \(z=3\) is an explicit extrapolation. Below \(z=0.4\), GalSBI-SPS uses the local Lange and binned Nedkova relations described above, and interpolates to Miller over \(0.4<z<0.6\).

The Miller red-galaxy scatter is \(0.20\) dex. For blue galaxies it is

\[\sigma_{\log_{10}r} = \left[1+\exp\left(-X\right)\right]^{-1},\qquad X=-0.06\left(\log_{10}(\mathcal{M}/M_\odot)-8.5\right)-1.30.\]

For both new models the final size sampling is

\[\log_{10}(r_{50})\sim \mathcal{N}\left(\log_{10}(\overline{r}_{50}),\sigma_{\log_{10}r}\right).\]

Ellipticity

See phenomenological GalSBI page.

Light Profile

The light profile of galaxies is defined by the Sersic profile:

\[I(R) = I_0 \exp\left(-b_n \left(\left(\frac{R}{R_e}\right)^{1/n} - 1\right)\right),\]

where \(I_0\) is the intensity at the center, \(R_e\) is the effective radius, \(n\) is the Sersic index, and \(b_n\) is a constant that depends on \(n\).

In GalSBI-SPS, the Sersic index depends on the surviving stellar mass \(\mathcal{M}\). The relation between the two is modelled as follows:

\[n = n_0 + n_1 \times \left( \frac{\log{\mathcal{M}}}{\log{(10^{10.5} M_{\odot})}} \right)^{n_2}\]

The values for \(n_i\) are controlled by the parameters sersic_n_i_*, where * can be either blue or red. This relation provides the mean of the truncated Normal distribution from which we sample $n$. The standard deviation is controlled by the parameter sersic_n_scatter_*. We limit the sampled \(n\) values to the range set by the parameters sersic_n_min and sersic_n_max.

Do I need to set all these configurations and parameters when using the galsbi package?

No, if a specific model is passed to the GalSBI class, all the configurations and parameter values are set automatically based on the model. For example, the following code snippet will

from galsbi import GalSBI
model = GalSBI(model="Tortorelli+25")

sets all the parametrizations and parameter values to the fiducial model of Tortorelli et al. (2025).

References

GalSBI-SPS is based on the following papers:

References used for the parametrizations are: