Skip to content

Modified Stardust - SED fitting code for UV-optical and FIR (Tsukui et al. 2023)

License

Notifications You must be signed in to change notification settings

takafumi291/Modified-stardust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modified Version of "Stardust": Composite Template Fitting Software

For the original version, please see here and Kokorev et al. 2021.


This Modified stardust code allows AGN fluxes as additional constraints.

The original code fit the model SED Fmodel=F1+F2+F3 to the data SED Ftot by minimizing ||Ftot - Fmodel||2, where

  F1=UV/Optical stellar light templates or Shen et al. 2016 quasar temperates
  F2=AGN heated dust in the MIR
  F3=IR dust reprocessed stellar light in the NIR-FIR

When total flux Ftot is decomposed into the point source (AGN) FAGN and rest Fhost galaxy by image decomposition, this modified code can include this additional constraint by providing FAGN as AGN_EXTRA_BANDS_FILE and setting AGN_EXTRA_BANDS=1 in the config file (similar to setting EXTRA_BANDS_FILE and EXTRA_BANDS=1).

  When the stellar light templates are chosen, the code minimizes ||(Ftot-Fmodel)+(FAGN - F2)||2.

  When the quasar templates are chosen, the code minimizes ||(Ftot-Fmodel)+(FAGN - F1 - F2)||2.

See descriptions: Tsukui, Wisnioski, Krumholz and Battisti, 2023

Usage

See here, for a quick example of how to use it and reproduce the result of Tsukui et al. 2023.

Contacts

Takafumi Tsukui: tsukuitk23@gmail.com

README of the original code below (The same requirements and installation apply)


Stardust is a Python package designed to extract galaxy properties by fitting their multiwavelength data to a set of linearly combined templates.

This algorithm brings together three different families of templates:

  1. UV+Optical emission from dust unobscured stellar light
  2. AGN heated dust in the MIR
  3. IR dust reprocessed stellar light in the NIR-FIR

One of the features of Stardust is that the template fitting does not rely on energy balance. As a result, the total luminosity of dust obscured and dust unobscured stellar light do not rely on each other, and it is possible to fit objects (e.g. SMGs) where the energy balance approach might not be necessarily applicable. A detailed description of Stardust and its first application is presented in Kokorev et al. 2021.

Requirements

python
python>=3.9.0
numpy
scipy
matplotlib
astropy
multiprocess
tqdm

Installation

For MacOS users, it is recommended to create a separate Python 3.6.10 environment with miniconda. See instructions here.

You can then pull Stardust and install it with pip.

$ git clone https://github.com/VasilyKokorev/stardust.git
$ cd stardust
$ pip install .

Usage

The primary use of this code is to extract the parameters from the infrared photometry. The program also has the ability to fit AGN and Stellar emission templates if the user desires to do so. It is recommended to use this code within a Jupyter notebook.

See here for a quick example of how to fit a catalogue.

An example dataset, a subset from the COSMOS Super-Deblended Catalogue 2 (Jin+18) along with the example configuration files are provided in the example folder.

See the quickstart guide and docs folder for more detailed instructions.

Acknowledgements

Filter curves are adopted from eazy-py by Gabe Brammer.

Troubleshooting

1. The module does not install: If you are on Linux, try using Python 3.9.1 instead.

Contacts

Vasily Kokorev: vasily.kokorev.astro@gmail.com / kokorev@astro.rug.nl

About

Modified Stardust - SED fitting code for UV-optical and FIR (Tsukui et al. 2023)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 82.4%
  • Python 17.6%