-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formed vs Surviving stellar mass #233
Comments
You can obtain the ratio of the surviving stellar mass to the formed stellar mass from a call to predict, e.g. spec, phot, mfrac = model.predict(parameter_vector, obs=obs, sps=sps)
surviving_mass = np.sum(model.params["mass"]) * mfrac where I should add this to the FAQ. |
Thanks! But this way if I want the full posterior for the surviving stellar mass I need to run 'model.predict(..)' in a for loop for every sample in the chain, which seems to take quite some time! Is there a way to make the prospector result itself to be in surviving stellar mass? |
Sorry, not in general; the problem is that the ratio of surviving to formed mass is not known until the model is generated (it depends on the stellar age and metallicity distribution, as well as the IMF) and this makes sampling from the surviving mass itself a bit tricky. If you are using model_params["mass_units"]=dict(init="mstar", isfree=False, N=1) to your model specification to get sampling in surviving stellar mass, but this is no longer an actively supported feature. |
Also to note a future update to prospector will store the ratio of the surviving to formed mass in the output. |
The output mass on the prospector is the ever-formed stellar mass, right?
How can this be changed? so that the output is the surviving stellar mass? I think I should pass add_stellar_remnants = False to fsps, but I was not able to do so.
Or even, it is possible to calculate the surviving mass from a fitted formed mass?
thanks!
The text was updated successfully, but these errors were encountered: