Home

Awesome

The project of fitting SLED with PyRADEX+emcee

Why use RADEX+emcee rather than using RADEX grids?

How do you know the code is doing the right calculations?

This is a very valid concern. Nevertheless, it is always the first practice to test your code on well-studied sources (and you can also test the code yourself by comparing with literatures). That's what has been done:

Installation & usage:

Dependence:

How to produce resulting plots:

Change number of walkers and iterations:

Change the solver of the radiation transfer

To use myradex (which may be more stable as mentioned in Ginsberg et al. 2016) instead of RADEX, please uncomment the following line:

import pyradex.fjdu

You may also need to change pyradex.Radex to pyradex.fjdu.Fjdu , and remove validate_colliders=False.

Directory structure:

Fitting example:

A full example of a two-component fitting, the SLED plot and the corner plots:

Here gives an example of the updated plot style (see notes on How to produce resulting plots):

Citation

Please cite our paper if you find this code useful. The paper also includes CO SLED data for 16 high-redshift submillimeter galaxies: C. Yang, A. Omont, A. Beelen et al. 2017, A&A, 608, A144.

Bibtex:

@ARTICLE{2017A&A...608A.144Y,
       author = {{Yang}, C. and {Omont}, A. and {Beelen}, A. and {Gao}, Y. and
         {van der Werf}, P. and {Gavazzi}, R. and {Zhang}, Z. -Y. and
         {Ivison}, R. and {Lehnert}, M. and {Liu}, D. and {Oteo}, I. and
         {Gonz{\'a}lez-Alfonso}, E. and {Dannerbauer}, H. and {Cox}, P. and
         {Krips}, M. and {Neri}, R. and {Riechers}, D. and {Baker}, A.~J. and
         {Micha{\l}owski}, M.~J. and {Cooray}, A. and {Smail}, I.},
        title = "{Molecular gas in the Herschel-selected strongly lensed submillimeter galaxies at z   2-4 as probed by multi-J CO lines}",
      journal = {\aap},
     keywords = {galaxies: high-redshift, galaxies: ISM, infrared: galaxies, submillimeter: galaxies, radio lines: ISM, ISM: molecules, Astrophysics - Astrophysics of Galaxies},
         year = 2017,
        month = dec,
       volume = {608},
          eid = {A144},
        pages = {A144},
          doi = {10.1051/0004-6361/201731391},
archivePrefix = {arXiv},
       eprint = {1709.04740},
 primaryClass = {astro-ph.GA},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2017A&A...608A.144Y},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

Authors of the code

Alexandre Beelen (ORCID: 0000-0003-3201-0185); Chentao Yang (ORCID: 0000-0002-8117-9991).