tag:github.com,2008:https://github.com/astrojohannes/densegastoolbox/releasesRelease notes from densegastoolbox2024-05-21T22:10:19Ztag:github.com,2008:Repository/239014770/v1.72024-05-21T22:16:40ZDense Gas Toolbox<p>All versions DOI: 10.5281/zenodo.3686329<br>
created by Johannes Puschnig<br>
<a href="http://www.jpuschnig.com" rel="nofollow">www.jpuschnig.com</a></p>
<h1>Aim</h1>
<p>Calculate density and temperature from observed molecular emission lines,<br>
using radiative transfer models.</p>
<h1>Method</h1>
<p>Our models assume that the molecular emission lines emerge from a<br>
multi-density medium rather than from a single density alone.<br>
The density distribution is assumed to be log-normal or log-normal with<br>
a power-law tail.<br>
The parameters (density, temperature and the width of density distribution)<br>
are inferred using Bayesian statistics, i.e. Markov chain Monte Carlo (MCMC).</p>
<h1>Results</h1>
<p>Given an ascii table of observed molecular intensities [K km/s],<br>
the results (mass-weighted mean density, temperature and width of the density<br>
distribution) are saved in an output ascii file. Furthermore, diagnostic plots<br>
are created to assess the quality of the fit/derived parameters.</p>
<hr>
<h1>VERSION HISTORY</h1>
<ul>
<li>May 22, 2024 | Version 1.7
<ul>
<li>
<p>This is the latest release that is based on the fixed optical depth models (as used since version 1.3)</p>
</li>
<li>
<p>Updated code to account for deprecation, future and syntax warnings</p>
</li>
<li>
<p>The following molecular transitions are covered:<br>
CO (1-0) CO (2-1) CO (3-2)<br>
HCN (1-0) HCN (2-1) HCN (3-2)<br>
HCOP (1-0) HCOP (2-1) HCOP (3-2)<br>
HNC (1-0) HNC (2-1) HNC (3-2)<br>
13CO (1-0) 13CO (2-1) 13CO (3-2)<br>
C18O (1-0) C18O (2-1) C18O (3-2)<br>
C17O (1-0) C17O (2-1) C17O (3-2)<br>
CS (1-0) CS (2-1) CS (3-2)</p>
</li>
<li>
<p>Temperatures range from 10 to 50 K (in steps of 5K)</p>
</li>
<li>
<p>The widths of the density distributions range from 0.2 to 0.9dex (in steps of 0.1dex)</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>May 21, 2024 | Version 1.6</p>
<ul>
<li>
<p>Bugfixed corner plot axes limits</p>
</li>
<li>
<p>Added debugging statements</p>
</li>
<li>
<p>Added INSTALL file</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>May 23, 2022 | Version 1.5 (minor update):</p>
<ul>
<li>
<p>Update: User may now also enter/change the number of MCMC simulations to run</p>
</li>
<li>
<p>Bugfix: In cases where sampler did not converge (Tau is infinite or log-probability<br>
is neg. infinity) previous versions crashed with "ValueError: cannot convert float<br>
NaN to integer" when trying to produce corner plots. Now, the program continues<br>
execution and shows one of the following Warnings: "Warning: Tau is NaN, corner plot<br>
cannot be created!" or "Warning: MCMC did not converge, you may try to increase the<br>
number of simulations (nsims)!"</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 27, 2021 | Version 1.4 (minor update):</p>
<ul>
<li>
<p>Bugfix: Fixing import of CS model grid</p>
</li>
<li>
<p>Update: Code updated to remove deprecation warnings</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 26, 2021 | Version 1.3 (major update):</p>
<ul>
<li>
<p>New: The user may optionally infer the parameters (density, temperature, width of<br>
density distribution) via application of the MCMC method.</p>
</li>
<li>
<p>New: Diagnosis plots (corner plots) are produced when MCMC method is used.</p>
</li>
<li>
<p>Update: Code updated to Python 3.X</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3), HNC (up to J=3) and CS (up to J=3)</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Mar 31, 2020 | Version 1.2 (major update):</p>
<ul>
<li>
<p>New: An online version is now available at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com"><pre class="notranslate"><code> http://www.densegastoolbox.com
</code></pre></div>
</li>
<li>
<p>New: The models can be explored using an interactive application at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com/explorer"><pre class="notranslate"><code> http://www.densegastoolbox.com/explorer
</code></pre></div>
</li>
<li>
<p>Update: Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature and NOW ALSO WIDTH can be fixed.</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3) and HNC (up to J=3)</p>
</li>
<li>
<p>Update: The one-zone model grids are now more extended with H_2 densities<br>
between 10^-2 and 10^8 cm^-3.</p>
</li>
<li>
<p>Update: Diagnosis plots improved: (n,T) vs. chi2 and (n,width) vs. chi2</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Still needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 28, 2020 | Version 1.1 (minor update):</p>
<ul>
<li>This release now includes the data table ("ascii_galaxy.txt") used by "example.py".</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 25, 2020 | Version 1.0:</p>
<ul>
<li>
<p>The initial release contains models for the following lines:<br>
12CO (1-0), 12CO (2-1), 12CO (3-2), 13CO (1-0), HCN (1-0), HNC (1-0) and<br>
HCO+ (1-0)</p>
</li>
<li>
<p>abundances and optical depths are fixed based on observations of the<br>
EMPIRE survey</p>
</li>
<li>
<p>Two density distributions (PDFs) are available: lognorm and lognorm+power law</p>
</li>
<li>
<p>Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature can be fixed.</p>
</li>
<li>
<p>Emissivities per density bin are calculated using RADEX, i.e. LVG method<br>
for an expanding sphere. These one-zone model grids are limited to H_2<br>
densities between 10 and 10^8 cm^-3.</p>
</li>
<li>
<p>The total line intensity is found from summation of the emissivities per H_2<br>
molecule along the gas density distribution (and multiplication with<br>
column per linewidth and abundance). For some models, at the very low and<br>
very high density ends, the extent of the PDF exceeds the one-zone density grid<br>
limits (10-10^8 cm^-3). In these regimes (where emissivities are very low anyway<br>
for the molecules under consideration), the emissivities are set constant to<br>
the grid limit value.</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
<li>
<p>Depends on the following Python packages:<br>
numpy, matplotlib, pylab, scipy</p>
</li>
</ul>
</li>
</ul>astrojohannestag:github.com,2008:Repository/239014770/v1.62024-05-21T10:47:11ZDense Gas Toolbox<p>DOI: 10.5281/zenodo.3686329</p>
<h1>Aim</h1>
<p>Calculate density and temperature from observed molecular emission lines,<br>
using radiative transfer models.</p>
<h1>Method</h1>
<p>Our models assume that the molecular emission lines emerge from a<br>
multi-density medium rather than from a single density alone.<br>
The density distribution is assumed to be log-normal or log-normal with<br>
a power-law tail.<br>
The parameters (density, temperature and the width of density distribution)<br>
are inferred using Bayesian statistics, i.e. Markov chain Monte Carlo (MCMC).</p>
<h1>Results</h1>
<p>Given an ascii table of observed molecular intensities [K km/s],<br>
the results (mass-weighted mean density, temperature and width of the density<br>
distribution) are saved in an output ascii file. Furthermore, diagnostic plots<br>
are created to assess the quality of the fit/derived parameters.</p>
<hr>
<h1>VERSION HISTORY</h1>
<ul>
<li>May 21, 2024 | Version 1.6 (final v1 release)
<ul>
<li>
<p>This is the final v1.x release that is based on the fixed optical depth models (as used since version 1.3)</p>
</li>
<li>
<p>Updated code to account for deprecation and future warnings</p>
</li>
<li>
<p>The following molecular transitions are covered:<br>
CO (1-0) CO (2-1) CO (3-2)<br>
HCN (1-0) HCN (2-1) HCN (3-2)<br>
HCOP (1-0) HCOP (2-1) HCOP (3-2)<br>
HNC (1-0) HNC (2-1) HNC (3-2)<br>
13CO (1-0) 13CO (2-1) 13CO (3-2)<br>
C18O (1-0) C18O (2-1) C18O (3-2)<br>
C17O (1-0) C17O (2-1) C17O (3-2)<br>
CS (1-0) CS (2-1) CS (3-2)</p>
</li>
<li>
<p>Temperatures range from 10 to 50 K (in steps of 5K)</p>
</li>
<li>
<p>The widths of the density distributions range from 0.2 to 0.9dex (in steps of 0.1dex)</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>May 23, 2022 | Version 1.5 (minor update):</p>
<ul>
<li>
<p>Update: User may now also enter/change the number of MCMC simulations to run</p>
</li>
<li>
<p>Bugfix: In cases where sampler did not converge (Tau is infinite or log-probability<br>
is neg. infinity) previous versions crashed with "ValueError: cannot convert float<br>
NaN to integer" when trying to produce corner plots. Now, the program continues<br>
execution and shows one of the following Warnings: "Warning: Tau is NaN, corner plot<br>
cannot be created!" or "Warning: MCMC did not converge, you may try to increase the<br>
number of simulations (nsims)!"</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 27, 2021 | Version 1.4 (minor update):</p>
<ul>
<li>
<p>Bugfix: Fixing import of CS model grid</p>
</li>
<li>
<p>Update: Code updated to remove deprecation warnings</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 26, 2021 | Version 1.3 (major update):</p>
<ul>
<li>
<p>New: The user may optionally infer the parameters (density, temperature, width of<br>
density distribution) via application of the MCMC method.</p>
</li>
<li>
<p>New: Diagnosis plots (corner plots) are produced when MCMC method is used.</p>
</li>
<li>
<p>Update: Code updated to Python 3.X</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3), HNC (up to J=3) and CS (up to J=3)</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Mar 31, 2020 | Version 1.2 (major update):</p>
<ul>
<li>
<p>New: An online version is now available at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com"><pre class="notranslate"><code> http://www.densegastoolbox.com
</code></pre></div>
</li>
<li>
<p>New: The models can be explored using an interactive application at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com/explorer"><pre class="notranslate"><code> http://www.densegastoolbox.com/explorer
</code></pre></div>
</li>
<li>
<p>Update: Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature and NOW ALSO WIDTH can be fixed.</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3) and HNC (up to J=3)</p>
</li>
<li>
<p>Update: The one-zone model grids are now more extended with H_2 densities<br>
between 10^-2 and 10^8 cm^-3.</p>
</li>
<li>
<p>Update: Diagnosis plots improved: (n,T) vs. chi2 and (n,width) vs. chi2</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Still needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 28, 2020 | Version 1.1 (minor update):</p>
<ul>
<li>This release now includes the data table ("ascii_galaxy.txt") used by "example.py".</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 25, 2020 | Version 1.0:</p>
<ul>
<li>
<p>The initial release contains models for the following lines:<br>
12CO (1-0), 12CO (2-1), 12CO (3-2), 13CO (1-0), HCN (1-0), HNC (1-0) and<br>
HCO+ (1-0)</p>
</li>
<li>
<p>abundances and optical depths are fixed based on observations of the<br>
EMPIRE survey</p>
</li>
<li>
<p>Two density distributions (PDFs) are available: lognorm and lognorm+power law</p>
</li>
<li>
<p>Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature can be fixed.</p>
</li>
<li>
<p>Emissivities per density bin are calculated using RADEX, i.e. LVG method<br>
for an expanding sphere. These one-zone model grids are limited to H_2<br>
densities between 10 and 10^8 cm^-3.</p>
</li>
<li>
<p>The total line intensity is found from summation of the emissivities per H_2<br>
molecule along the gas density distribution (and multiplication with<br>
column per linewidth and abundance). For some models, at the very low and<br>
very high density ends, the extent of the PDF exceeds the one-zone density grid<br>
limits (10-10^8 cm^-3). In these regimes (where emissivities are very low anyway<br>
for the molecules under consideration), the emissivities are set constant to<br>
the grid limit value.</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
<li>
<p>Depends on the following Python packages:<br>
numpy, matplotlib, pylab, scipy</p>
</li>
</ul>
</li>
</ul>astrojohannestag:github.com,2008:Repository/239014770/v1.52022-05-23T12:28:39ZDense Gas Toolbox<h1>Dense Gas Toolbox</h1>
<p>DOI: 10.5281/zenodo.3686329</p>
<h1>Aim</h1>
<p>Calculate density and temperature from observed molecular emission lines,<br>
using radiative transfer models.</p>
<h1>Method</h1>
<p>Our models assume that the molecular emission lines emerge from a<br>
multi-density medium rather than from a single density alone.<br>
The density distribution is assumed to be log-normal or log-normal with<br>
a power-law tail.<br>
The parameters (density, temperature and the width of density distribution)<br>
are inferred using Bayesian statistics, i.e. Markov chain Monte Carlo (MCMC).</p>
<h1>Results</h1>
<p>Given an ascii table of observed molecular intensities [K km/s],<br>
the results (mass-weighted mean density, temperature and width of the density<br>
distribution) are saved in an output ascii file. Furthermore, diagnostic plots<br>
are created to assess the quality of the fit/derived parameters.</p>
<hr>
<h1>VERSION HISTORY</h1>
<ul>
<li>
<p>THIS RELEASE May 23, 2022 | Version 1.5 (minor update):</p>
<ul>
<li>
<p>Update: User may now also enter/change the number of MCMC simulations to run</p>
</li>
<li>
<p>Bugfix: In cases where sampler did not converge (Tau is infinite or log-probability<br>
is neg. infinity) previous versions crashed with "ValueError: cannot convert float<br>
NaN to integer" when trying to produce corner plots. Now, the program continues<br>
execution and shows one of the following Warnings: "Warning: Tau is NaN, corner plot<br>
cannot be created!" or "Warning: MCMC did not converge, you may try to increase the<br>
number of simulations (nsims)!"</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 27, 2021 | Version 1.4 (minor update):</p>
<ul>
<li>
<p>Bugfix: Fixing import of CS model grid</p>
</li>
<li>
<p>Update: Code updated to remove deprecation warnings</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 26, 2021 | Version 1.3 (major update):</p>
<ul>
<li>
<p>New: The user may optionally infer the parameters (density, temperature, width of<br>
density distribution) via application of the MCMC method.</p>
</li>
<li>
<p>New: Diagnosis plots (corner plots) are produced when MCMC method is used.</p>
</li>
<li>
<p>Update: Code updated to Python 3.X</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3), HNC (up to J=3) and CS (up to J=3)</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Mar 31, 2020 | Version 1.2 (major update):</p>
<ul>
<li>
<p>New: An online version is now available at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com"><pre class="notranslate"><code> http://www.densegastoolbox.com
</code></pre></div>
</li>
<li>
<p>New: The models can be explored using an interactive application at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com/explorer"><pre class="notranslate"><code> http://www.densegastoolbox.com/explorer
</code></pre></div>
</li>
<li>
<p>Update: Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature and NOW ALSO WIDTH can be fixed.</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3) and HNC (up to J=3)</p>
</li>
<li>
<p>Update: The one-zone model grids are now more extended with H_2 densities<br>
between 10^-2 and 10^8 cm^-3.</p>
</li>
<li>
<p>Update: Diagnosis plots improved: (n,T) vs. chi2 and (n,width) vs. chi2</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Still needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 28, 2020 | Version 1.1 (minor update):</p>
<ul>
<li>This release now includes the data table ("ascii_galaxy.txt") used by "example.py".</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 25, 2020 | Version 1.0:</p>
<ul>
<li>
<p>The initial release contains models for the following lines:<br>
12CO (1-0), 12CO (2-1), 12CO (3-2), 13CO (1-0), HCN (1-0), HNC (1-0) and<br>
HCO+ (1-0)</p>
</li>
<li>
<p>abundances and optical depths are fixed based on observations of the<br>
EMPIRE survey</p>
</li>
<li>
<p>Two density distributions (PDFs) are available: lognorm and lognorm+power law</p>
</li>
<li>
<p>Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature can be fixed.</p>
</li>
<li>
<p>Emissivities per density bin are calculated using RADEX, i.e. LVG method<br>
for an expanding sphere. These one-zone model grids are limited to H_2<br>
densities between 10 and 10^8 cm^-3.</p>
</li>
<li>
<p>The total line intensity is found from summation of the emissivities per H_2<br>
molecule along the gas density distribution (and multiplication with<br>
column per linewidth and abundance). For some models, at the very low and<br>
very high density ends, the extent of the PDF exceeds the one-zone density grid<br>
limits (10-10^8 cm^-3). In these regimes (where emissivities are very low anyway<br>
for the molecules under consideration), the emissivities are set constant to<br>
the grid limit value.</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
<li>
<p>Depends on the following Python packages:<br>
numpy, matplotlib, pylab, scipy</p>
</li>
</ul>
</li>
</ul>astrojohannestag:github.com,2008:Repository/239014770/v1.42021-02-27T11:27:05ZDense Gas Toolbox v1.4<h1>Dense Gas Toolbox</h1>
<p>DOI: 10.5281/zenodo.3686329</p>
<h1>Aim</h1>
<p>Calculate density and temperature from observed molecular emission lines,<br>
using radiative transfer models.</p>
<h1>Method</h1>
<p>Our models assume that the molecular emission lines emerge from a<br>
multi-density medium rather than from a single density alone.<br>
The density distribution is assumed to be log-normal or log-normal with<br>
a power-law tail.<br>
The parameters (density, temperature and the width of density distribution)<br>
are inferred using Bayesian statistics, i.e. Markov chain Monte Carlo (MCMC).</p>
<h1>Results</h1>
<p>Given an ascii table of observed molecular intensities [K km/s],<br>
the results (mass-weighted mean density, temperature and width of the density<br>
distribution) are saved in an output ascii file. Furthermore, diagnostic plots<br>
are created to assess the quality of the fit/derived parameters.</p>
<hr>
<h1>THIS RELEASE</h1>
<ul>
<li>
<p>Feb 27, 2021 | Version 1.4 (minor update):</p>
<ul>
<li>
<p>Bugfix: Fixing import of CS model grid</p>
</li>
<li>
<p>Update: Code updated to remove deprecation warnings</p>
</li>
</ul>
</li>
</ul>
<h1>VERSION HISTORY</h1>
<ul>
<li>
<p>Feb 26, 2021 | Version 1.3 (major update):</p>
<ul>
<li>
<p>New: The user may optionally infer the parameters (density, temperature, width of<br>
density distribution) via application of the MCMC method.</p>
</li>
<li>
<p>New: Diagnosis plots (corner plots) are produced when MCMC method is used.</p>
</li>
<li>
<p>Update: Code updated to Python 3.X</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3), HNC (up to J=3) and CS (up to J=3)</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Mar 31, 2020 | Version 1.2 (major update):</p>
<ul>
<li>
<p>New: An online version is now available at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com"><pre class="notranslate"><code> http://www.densegastoolbox.com
</code></pre></div>
</li>
<li>
<p>New: The models can be explored using an interactive application at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com/explorer"><pre class="notranslate"><code> http://www.densegastoolbox.com/explorer
</code></pre></div>
</li>
<li>
<p>Update: Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature and NOW ALSO WIDTH can be fixed.</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3) and HNC (up to J=3)</p>
</li>
<li>
<p>Update: The one-zone model grids are now more extended with H_2 densities<br>
between 10^-2 and 10^8 cm^-3.</p>
</li>
<li>
<p>Update: Diagnosis plots improved: (n,T) vs. chi2 and (n,width) vs. chi2</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Still needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 28, 2020 | Version 1.1 (minor update):</p>
<ul>
<li>This release now includes the data table ("ascii_galaxy.txt") used by "example.py".</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>
<p>Feb 25, 2020 | Version 1.0:</p>
<ul>
<li>
<p>The initial release contains models for the following lines:<br>
12CO (1-0), 12CO (2-1), 12CO (3-2), 13CO (1-0), HCN (1-0), HNC (1-0) and<br>
HCO+ (1-0)</p>
</li>
<li>
<p>abundances and optical depths are fixed based on observations of the<br>
EMPIRE survey</p>
</li>
<li>
<p>Two density distributions (PDFs) are available: lognorm and lognorm+power law</p>
</li>
<li>
<p>Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature can be fixed.</p>
</li>
<li>
<p>Emissivities per density bin are calculated using RADEX, i.e. LVG method<br>
for an expanding sphere. These one-zone model grids are limited to H_2<br>
densities between 10 and 10^8 cm^-3.</p>
</li>
<li>
<p>The total line intensity is found from summation of the emissivities per H_2<br>
molecule along the gas density distribution (and multiplication with<br>
column per linewidth and abundance). For some models, at the very low and<br>
very high density ends, the extent of the PDF exceeds the one-zone density grid<br>
limits (10-10^8 cm^-3). In these regimes (where emissivities are very low anyway<br>
for the molecules under consideration), the emissivities are set constant to<br>
the grid limit value.</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
<li>
<p>Depends on the following Python packages:<br>
numpy, matplotlib, pylab, scipy</p>
</li>
</ul>
</li>
</ul>astrojohannestag:github.com,2008:Repository/239014770/v1.32021-02-26T15:39:57ZDense Gas Toolbox v1.3<h1>Dense Gas Toolbox</h1>
<h1>Aim</h1>
<p>Calculate density and temperature from observed molecular emission lines,<br>
using radiative transfer models.</p>
<h1>Method</h1>
<p>Our models assume that the molecular emission lines emerge from a<br>
multi-density medium rather than from a single density alone.<br>
The density distribution is assumed to be log-normal or log-normal with<br>
a power-law tail.<br>
The parameters (density, temperature and the width of density distribution)<br>
are inferred using Bayesian statistics, i.e. Markov chain Monte Carlo (MCMC).</p>
<h1>Results</h1>
<p>Given an ascii table of observed molecular intensities [K km/s],<br>
the results (mass-weighted mean density, temperature and width of the density<br>
distribution) are saved in an output ascii file. Furthermore, diagnostic plots<br>
are created to assess the quality of the fit/derived parameters.</p>
<hr>
<h1>THIS RELEASE</h1>
<ul>
<li>
<p>New: The user may optionally infer the parameters (density, temperature, width of<br>
density distribution) via application of the MCMC method.</p>
</li>
<li>
<p>New: Diagnosis plots (corner plots) are produced when MCMC method is used.</p>
</li>
<li>
<p>Update: Code updated to Python 3.X</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3), HNC (up to J=3) and CS (up to J=3)</p>
</li>
</ul>astrojohannestag:github.com,2008:Repository/239014770/v1.22020-03-31T16:20:58ZDense Gas Toolbox<h1>Dense Gas Toolbox</h1>
<h1>Aim</h1>
<p>Calculate density and temperature from observed molecular lines.</p>
<h1>Method</h1>
<p>Minimize observed line ratios against radiative transfer models. Our models assume that the molecular emission lines emerge from a multi-density medium rather than from a single density alone.</p>
<h1>Results</h1>
<p>Using an ascii table of observed molecular intensities [K km/s], the results (mass-weighted mean density, temperature and width of the density distribution) are saved in an output ascii file. Furthermore, diagnostic plots are created to assess the quality of the fit/derived parameters.</p>
<hr>
<h1>VERSION HISTORY</h1>
<ul>
<li>
<p>Mar 31, 2020 | Version 1.2 (major update):</p>
<ul>
<li>
<p>New: An online version is now available at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com"><pre class="notranslate"><code> http://www.densegastoolbox.com
</code></pre></div>
</li>
<li>
<p>New: The models can be explored using an interactive application at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http://www.densegastoolbox.com/explorer"><pre class="notranslate"><code> http://www.densegastoolbox.com/explorer
</code></pre></div>
</li>
<li>
<p>Update: Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature and NOW ALSO WIDTH can be fixed.</p>
</li>
<li>
<p>Update: Re-calculation of models, now including the following transitions:<br>
12CO (up to J=3), 13CO (up to J=3), C18O (up to J=3), C17O (up to J=3),<br>
HCN (up to J=3), HCO+ (up to J=3) and HNC (up to J=3)</p>
</li>
<li>
<p>Update: The one-zone model grids are now more extended with H_2 densities<br>
between 10^-2 and 10^8 cm^-3.</p>
</li>
<li>
<p>Update: Diagnosis plots improved: (n,T) vs. chi2 and (n,width) vs. chi2</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Still needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>Feb 28, 2020 | Version 1.1 (minor update):
<ul>
<li>
<p><a href="http://doi.org/10.5281/zenodo.3691423" rel="nofollow">http://doi.org/10.5281/zenodo.3691423</a></p>
</li>
<li>
<p>This release now includes the data table ("ascii_galaxy.txt") used by "example.py".</p>
</li>
</ul>
</li>
</ul>
<hr>
<ul>
<li>Feb 25, 2020 | Version 1.0:
<ul>
<li>
<p><a href="http://doi.org/10.5281/zenodo.3686330" rel="nofollow">http://doi.org/10.5281/zenodo.3686330</a></p>
</li>
<li>
<p>The initial release contains models for the following lines:<br>
12CO (1-0), 12CO (2-1), 12CO (3-2), 13CO (1-0), HCN (1-0), HNC (1-0) and<br>
HCO+ (1-0)</p>
</li>
<li>
<p>abundances and optical depths are fixed based on observations of the<br>
EMPIRE survey</p>
</li>
<li>
<p>Two density distributions (PDFs) are available: lognorm and lognorm+power law</p>
</li>
<li>
<p>Model fit parameters are: density (mass-weighted), temperature and width<br>
of the distribution. The temperature can be fixed.</p>
</li>
<li>
<p>Emissivities per density bin are calculated using RADEX, i.e. LVG method<br>
for an expanding sphere. These one-zone model grids are limited to H_2<br>
densities between 10 and 10^8 cm^-3.</p>
</li>
<li>
<p>The total line intensity is found from summation of the emissivities per H_2<br>
molecule along the gas density distribution (and multiplication with<br>
column per linewidth and abundance). For some models, at the very low and<br>
very high density ends, the extent of the PDF exceeds the one-zone density grid<br>
limits (10-10^8 cm^-3). In these regimes (where emissivities are very low anyway<br>
for the molecules under consideration), the emissivities are set constant to<br>
the grid limit value.</p>
</li>
<li>
<p>See "example.py" for how to use the Dense Gas Toolbox. It's easy!</p>
</li>
<li>
<p>Needs Python 2.7 (will be upgraded to 3.X).</p>
</li>
<li>
<p>Depends on the following Python packages:<br>
numpy, matplotlib, pylab, scipy</p>
</li>
</ul>
</li>
</ul>astrojohannestag:github.com,2008:Repository/239014770/v1.12020-02-28T12:27:57ZDense Gas Toolbox<p>Aim: Calculate density and temperature from observed molecular lines, e.g.: CO (1-0), CO (2-1), HCN (1-0), HCO+ (1-0), HNC (1-0)</p>
<p>Method: Minimize observed line ratios against radiative transfer models. The models assume that the molecular emission lines emerge from a multi-density medium rather than from a single density alone.</p>
<p>Results/Output: mass-weighted mean density, temperature and width of the density distribution.</p>
<p>Howto: Using an ascii table of observed molecular intensities [K km/s] as input, the results (mass-weighted mean density, temperature and width of the density distribution) are saved in an output ascii file. Furthermore, diagnostic plots are created to assess the quality of the fit/derived parameters.</p>
<p>See example.py for how to use "Dense Gas Toolbox". It's easy!</p>
<p>VERSION HISTORY:</p>
<h4>v1.1:</h4>
<p>This release now includes the data table ("ascii_galaxy.txt") used by "example.py".</p>
<h4>v1.0:</h4>
<p>The initial release contains models for the following lines: 12CO (1-0), 12CO (2-1), 12CO (3-2), 13CO (1-0), HCN (1-0), HNC (1-0) and HCO+ (1-0)</p>
<p>Needs Python 2.7 (will be upgraded to 3.X in a later release).</p>astrojohannestag:github.com,2008:Repository/239014770/v1.02020-02-25T00:36:50ZDense Gas Toolbox<p>Aim: Calculate density and temperature from observed molecular lines, e.g.:<br>
CO (1-0), CO (2-1), HCN (1-0), HCO+ (1-0), HNC (1-0)</p>
<p>Method: Minimize observed line ratios against radiative transfer models. The models assume that the molecular emission lines emerge from a multi-density medium rather than from a single density alone.</p>
<p>Results/Output: mass-weighted mean density, temperature and width of the density distribution.</p>
<p>Howto: Using an ascii table of observed molecular intensities [K km/s] as input, the results (mass-weighted mean density, temperature and width of the density distribution) are saved in an output ascii file. Furthermore, diagnostic plots are created to assess the quality of the fit/derived parameters.</p>
<h5>See example.py for how to use "Dense Gas Toolbox". It's easy!</h5>
<p>The initial release contains models for the following lines:<br>
12CO (1-0), 12CO (2-1), 12CO (3-2), 13CO (1-0), HCN (1-0), HNC (1-0) and HCO+ (1-0)</p>
<p>Needs Python 2.7 (will be upgraded to 3.X in a later release).</p>astrojohannes