Closed safonova closed 7 years ago
If tage
is not given or is zero the masses are returned for every age in the sp.ssp_ages
array. Also since you have sfh=0
, the tburst
and fburst
parameters are ignored - please see the "SFH Parameters" section of the FSPS manual for a description of how the SFH parameters work.
With sfh=0
and not specifying tage
, what you are getting is the surviving stellar mass (including remnants) of an SSP with the default zmet
metallicity, at each of the ages given by sp.ssp_ages
, for 1 solar mass formed initially.
If what you want is the stellar mass of a solar metallicity SSP at 2.1 Gyr, you could do the following
sp = fsps.StellarPopulation(compute_vega_mags=False, zcontinuous=1, add_stellar_remnants=True)
sp.params['logzsol'] = 0.0
sp.params['sfh'] = 0
sp.params['tage'] = 2.1
mass = sp.stellar_mass
Note that the logzsol
parameter only works if you set zcontinuous at instantiation.
Hello FSPS team! I hope you're doing well. I've been exploring various SPSs, and I noticed that in FSPS, the sp.stellar_mass parameter shows some variation in the mass fraction between logage 5 to 6.3. I was wondering if you could provide some insights into this. For comparison, I observed a decreasing behaviour in the mass fractions of the Bruzual & Charlot SPS. Also, does fsps.get_remnant_mass_fraction() exist? Thanks in advance for your guidance!
Hi! I suspect this is due to some numerical issues in the interaction of the IMF upper limit with the sampling of the high mass end of the isochrones at very early ages, but it might have to do with how remnants are computed. Can you reopen this issue on the core FSPS repo (https://github.com/cconroy20/fsps), noting the output of sp.libraries
? Thanks.
There is no StellarPopulation().get_remnant_mass_fraction
, but I think you can set sp.params["add_stellar_remnants"] = False
and then take the difference.
Thank you, @bd-j! I just opened an issue.
I need to find galaxy stellar mass for a set of stellar formation parameters. Could you please clarify the legend for stellar_mass? All the permutations I've tried return an array of length 107. See example below.