Title
-----
Example Code Listings for the PhotoDissociation Region Toolbox

Author Information
-------------------
Marc Pound
Department of Astronomy
University of Maryland, College Park
mpound@umd.edu

Mark Wolfire
Department of Astronomy
University of Maryland, College Park
mwolfire@umd.edu

Date
----
Wed 31 Aug 2022 02:19:31 PM EDT

Description
------------
These are example code listings for the PhotoDissociation Region Toolbox
(https://dustem.astro.umd.edu), and companion to the manuscript "The
PhotoDissociation Region Toolbox: Software and Models for Astrophysical
Analysis", by Pound & Wolfire (2022).  These code snippets show typical ways
to use the Toolbox and reproduce most of the figures in the manuscript.
The code is written in Python 3 and demonstrate the pdrtpy Python package
(https://pdrtpy.readthedocs.io).  The examples required installation of
pdrtpy (pip install pdrtpy).


List of Files
-------------
modelset.py - Demonstrating use of models, ModelSet, and ModelPlot

singlepixelfitting.py - Fitting intensity ratios for single-pixel observations

mapfitting.py - Fitting intensity ratios for map observations

emcee.py - Fitting intensity ratios for single-pixel observations using a Markov Chain Monte Carlo method

h2opr.py - Creating and fitting H2 excitation diagrams,including ortho-to-para ratio (OPR)

Funding Sources
---------------
 #. NASA Astrophysics Data Analysis Program award #80NSSC19K0573

 #. SOFIA Legacy Program, FEEDBACK, provided by NASA through award SOF070077 issued by USRA to the University of Maryland

 #. JWST-ERS program ID 1288 through a grant from the Space Telescope Science Institute under NASA contract NAS5-03127 to the University of Maryland.

Recommended Citations
---------------------
#. Pound, M.W. & Wolfire, M.G., 2022, The Astronomical Journal, vol/page TBD.

#. Pound, M.W. & Wolfire, M.G., 2008, in Astronomical Society of
            the Pacific Conference Series, Vol. 394,
            Astronomical Data Analysis Software and Systems XVII,
            ed. R. W. Argyle, P. S. Bunclark, & J. R. Lewis, 654
            (https://ui.adsabs.harvard.edu/abs/2008ASPC..394..654P/abstract)

Restrictions
------------
The files listed here contain code that free and in the public domain
with no restrictions on use.

Contact
-------
For further information, contact Marc Pound (mpound@umd.edu)

