-
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
Using prospector #166
Comments
Hi @steveschulze,
|
Hi Ben, Thanks for your detailed answer.
Cheers, Steve |
Hi Steve, sorry for the delay but (gestures broadly at everything)
|
Hi Ben, |
you could do something like import numpy as np
from scipy.special import gamma, gammainc
tage, tau, mass = 2.83, 0.51, 10**10.34
# for delay tau this function gives the (unnormalized) SFR
# for any t, tau combo in M_sun/Gyr
sfr = lambda t,tau: return (t/tau) * np.exp(-t/tau)
# now we numerically integrate this SFH from 0 to tage to get the mass formed
times = np.linspace(0, tage, 1000)
A = np.trapz(sfr(times, tau), times)
# But this could also be done using an incomplete gamma function (integral of xe^{-x})
A = tau * gamma(2) * gammainc(2, tage/tau)
# and now we renormalize the formed mass to the actual mass value
# to get the the SFR in M_sun per Gyr
psi = mass * sfr(tage, tau) / A
# if we want SFR in Msun/year
psi /= 1e9 or, in one line psi = mass * (tage/tau**2) * np.exp(-tage/tau) / (gamma(2) * gammainc(2, tage/tau)) * 1e-9 |
Hi Ben, I have a few more questions.
Thanks a lot. :) Steve |
|
Thanks a lot Ben. |
Going back to the templates. Are there low-res templates is FSPS? |
you could use the older BaSeL theoretical stellar library; this is something like 1000 wavelength points instead of 7000 for MILES. See the FSPS documentation for how to do this (once you recompile FSPS you have to reinstall python-FSPS) |
Thanks. |
I would like to piggyback on Steve's question regarding SFR calculation (I am also happy to move this to a new issue/question). I am a little confused in the usage of tage vs sf_start for the tau/delayed-tau models here. a) While fitting SFHs to a galaxy spectrum to calculate galaxy ages and/or star formation start times, should tage be a free parameter, or sf_start? e.g. For calculations of the SFR in the time-step here (#166 (comment)): times = np.linspace(0, tage, 1000) Is this indicating that sf_start=0 (as is the case by default)? Should sf_start always be 0 while using prospector's parametric models? b) If tage is fixed to the age of the universe at the epoch of observation and sf_start is a free parameter, wouldn't tage - sf_start technically be the age of the galaxy at the epoch of observation? |
It's (almost?) never necessary to set |
Is it possible to output the total stellar-mass formed and the mass locked into the living stars, simultaneously? Do any of the mass estimate take into account how the mass returned to the ISM? |
The formed stellar mass is an input parameter. The ratio of the mass locked into stars (and remnants) to the formed mass is returned by |
Thanks. :) For instance, BEAGLE includes a correction term for material returned to the ISM, in addition to computing the total mass formed and mass locked in living stars. These are only tiny details but important for comparing results of different SED fitting codes. |
Hi, I'd like to join in on the discussion here :) Thanks! tau – (default: 1.0) Defines e-folding time for the SFH, in Gyr. Only used if sfh=1 or sfh=4. The range is 0.1<τ<1020.1<τ<102. |
Parameters which aren't specified in Prospector will be set automatically to their default python-fsps / FSPS values (I believe in that order, though I'm not sure of any meaningful conflicts). For the SFH=4 option, most of the 6 components have defaults which mean they do not affect the SFH. If the user does not modify If you do modify any of these parameters, you'll have to adjust the calculation of SFR accordingly. |
Hi,
I have a few questions in using prospector.
In the file
demo_params.py
in the directorydemo
is written that prospector uses the WMAP9 cosmology. Can the user change that?Galaxy mass: I would like to extract the mass currently locked in stars. There are instructions here, but I don't understand them. Could you explain in more detail how I can extract the mass locked in stars for parametric and non-parametric SFHs after the SED fitted?
SFR: Is it possible to extract the SFR averaged over the past 100 years from the SED model or have the SFR as a free parameter in the fit?
Attenuation: The Kriek & Conroy (2013) attenuation curve is determined by
dust_index
. However, the fsps manual says thatdust_index
is only used whendust_type = 0
. If I would like to compute an EBV value from this model how would I have to proceed?Confidence intervals for best SEDs? The figure here shows contours of fits. How does one extract those from the final result file?
Does the
writer
module have the option to overwrite hdf5 files?I want to change the labels of the corner plots. Is it possible to change the labels in
reader.subcorner
routine?The text was updated successfully, but these errors were encountered: