Skip to main content

PhotoDissociation Region Toolbox (PDRT), astrophysics analysis tools

Project description

Reliable astrophysics at everyday low, low prices! ®

pdrtpy is the new and improved version of the classic PhotoDissociation Region Toolbox, rewritten in Python with new capabilities and giving more flexibility to end users.

The new PDR Toolbox will cover many more spectral lines and metallicities and allows map-based analysis so users can quickly compute spatial images of density and radiation field from map data. We provide example Jupyter notebooks for data analysis. It also can support other PDR model codes enabling comparison of derived properties between codes.

The underlying model code has improved physics and chemistry. Critical updates include those discussed in Neufeld & Wolfire 2016, plus photo rates from Heays et al. 2017, oxygen chemistry rates from Kovalenko et al. 2018 and Tran et al. 2018, and carbon chemistry rates from Dagdigian 2019. We have also implemented new collisional excitation rates for [O I] from Lique et al. 2018 (and Lique private communication) and have included 13C chemistry along with the emitted line intensities for [13C II] and 13CO

Getting Started

Installation

Requirements

pdrtpy requires Python 3 and recent versions of astropy, numpy, scipy, and matplotlib. If you want to run the Example Notebooks, you also need jupyter.

First make sure you are using Python 3:

python --version

should show e.g., 3.7.6.

Install the package

Python has numerous ways to install packages; the easiest is with pip. The code is hosted at the Python Packaging Index, so you can type:

pip install pdrtpy

If you do not have permission to install into your Python system package area, you will need to do a user-install, which will install the package locally.

pip install --user pdrtpy

Then go ahead and install the Example Notebooks.

Example Notebooks

We have prepared 4 jupyter iPython notebooks with examples of how to use pdrtpy. You can download these as follows.

git clone https://github.com/mpound/pdrtpy-nb.git

If you don’t have git, you can download a zip file of the repository.

To familiarize yourself with the capabilities of pdrtpy, we suggest you do the notebooks in this order:

  • PDRT_Example_Measurements.ipynb

  • PDRT_Example_ModelSets.ipynb

  • PDRT_Example_Find_n_G0_Single_Pixel.ipynb

  • PDRT_Example_Make_n_G0_maps.ipynb

For Developers

If you plan to tinker with the code, you may want to try this installation method.

git clone https://github.com/mpound/pdrtpy
sudo apt-get install python3-venv
python -m venv ~/venv
source ~/venv/bin/activate
cd pdrtpy
pip install -r requirements.txt

What is a PDR?

Photodissociation regions (PDRs) include all of the neutral gas in the ISM where far-ultraviolet (FUV) photons dominate the chemistry and/or heating. In regions of massive star formation, PDRS are created at the boundaries between the HII regions and neutral molecular cloud, as photons with energies 6 eV < E < 13.6 eV photodissociate molecules and photoionize other elements. The gas is heated by photo-electrons from grains and cools mostly through far-infrared fine structure lines like [O I] and [C II].

For a full review of PDR physics and chemistry, see Hollenbach & Tielens 1997.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdrtpy-2.0.6.tar.gz (694.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdrtpy-2.0.6-py3-none-any.whl (884.3 kB view details)

Uploaded Python 3

File details

Details for the file pdrtpy-2.0.6.tar.gz.

File metadata

  • Download URL: pdrtpy-2.0.6.tar.gz
  • Upload date:
  • Size: 694.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pdrtpy-2.0.6.tar.gz
Algorithm Hash digest
SHA256 8aa94d31a96a36a65a203cd6e348056e73c0cde82a4e6fe83d041f1a311c2b79
MD5 cfef007129fa7d2921a3aec8416436cc
BLAKE2b-256 f321131edd7fcc176723639a1dd3efd6b47fa249f9f68eb6d084b83d8ed74a08

See more details on using hashes here.

File details

Details for the file pdrtpy-2.0.6-py3-none-any.whl.

File metadata

  • Download URL: pdrtpy-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 884.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pdrtpy-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9f2429096dac9a8321434cb2dc71b15510ee719b55bd76981c02607b3679e899
MD5 2528b6318b6b957c717c117223b35aa7
BLAKE2b-256 22d326757e06f34f50a8adad4e5dffd358e1dd66fa16a0ba783c52051e030c05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page