bd-j / prospector

Python code for Stellar Population Inference from Spectra and SEDs
http://prospect.readthedocs.io
MIT License
156 stars 73 forks source link

Setting the gas phase metallicity identical to the stellar metallicity #279

Closed steveschulze closed 1 year ago

steveschulze commented 1 year ago

Hi,

When one fits photometry and spectroscopy, how does one force the gas phase metallicity to be identical to the stellar metallicity?

Cheers,

Steve

bd-j commented 1 year ago

You can add a dependency to the gas_logz parameter (see https://prospect.readthedocs.io/en/latest/models.html#transformations) that will set it to the value of logzsol. The transform that you would want to use for the dependency is https://github.com/bd-j/prospector/blob/main/prospect/models/transforms.py#L30

steveschulze commented 1 year ago

Great. Thanks a lot! :)