Git Product home page Git Product logo

amespahdbpythonsuite's Introduction

Workflow Status Coverage Status Documentation

AmesPAHdbPythonSuite

The AmesPAHdbPythonSuite is a package to work with a downloaded PAHdb XML-file.

A Python module to work with a downloaded PAHdb XML-file.

Requirements

This software requires:

numpy astropy lxml matplotlib scipy packaging specutils vtk

Installation

Using pip

The AmesPAHdbPythonSuite can be directly installed from its repository using pip:

pip install git+git://github.com/PAHdb/AmesPAHdbPythonSuite.git

From source

Alternatively the AmesPAHdbPythonSuite can be cloned and then installed:

git clone https://github.com/PAHdb/AmesPAHdbPythonSuite.git

Then change directories to the new AmesPAHdbPythonSuite directory and install:

pip install -e .

Examples

from pkg_resources import resource_filename
from amespahdbpythonsuite.amespahdb import AmesPAHdb

# Read the database.
xml = 'resources/pahdb-theoretical_cutdown.xml'
pahdb = AmesPAHdb(filename=resource_filename('amespahdbpythonsuite', xml),
                  check=False, cache=False)

# Retrieve the transitions from the database for coronene.
transitions = pahdb.gettransitionsbyuid([18])

# Plot the emission 'stick' spectrum.
transitions.plot(show=True)

# Calculate the emission spectrum at the temperature reached
# after absorbing a 6 eV (CGS units) photon.
transitions.cascade(6 * 1.603e-12, multiprocessing=False)

# Plot the emission 'stick' spectrum at that temperature.
transitions.plot(show=True)

# Convolve the bands with a Gaussian with FWHM of 15 /cm.
convolved = transitions.convolve(fwhm=15.0, gaussian=True,
                                 multiprocessing=False)
convolved.plot(show=True)

More examples can be found in the examples-directory.

Background

Since FY19 the NASA Ames PAH IR Spectroscopic Database and the AmesPAHdbPythonSuite are being supported through a directed Work Package at NASA Ames titled: "Laboratory Astrophysics โ€“ The NASA Ames PAH IR Spectroscopic Database".

Since FY23 the NASA Ames PAH IR Spectroscopic Database and the AmesPAHdbPythonSuite are being supported through the Laboratory Astrophysics Round 2 directed Work Package at NASA Ames.

Additional information can be found at the NASA Ames PAH IR Spectroscopic Database website, which is located at www.astrochemistry.org/pahdb/.

You are kindly asked to consider the following references for citation when using the AmesPAHdbPythonSuite:

  • C.W. Bauschlicher, Jr., A. Ricca, C. Boersma, and L.J. Allamandola, "THE NASA AMES PAH IR SPECTROSCOPIC DATABASE: COMPUTATIONAL VERSION 3.00 WITH UPDATED CONTENT AND THE INTRODUCTION OF MULTIPLE SCALING FACTORS", The Astrophysical Journal Supplement Series, 234, 32, 2018 https://doi.org/10.3847/1538-4365/aaa019

  • C. Boersma, C.W. Bauschlicher, Jr., A. Ricca, A.L. Mattioda, J. Cami, E. Peeters, F. Sanchez de Armas, G. Puerta Saborido, D.M. Hudgins, and L.J. Allamandola, "THE NASA AMES PAH IR SPECTROSCOPIC DATABASE VERSION 2.00: UPDATED CONTENT, WEBSITE AND ON/OFFLINE TOOLS", The Astrophysical Journal Supplement Series,, 211, 8, 2014 https://doi.org/10.1088/0067-0049/211/1/8

  • Mattioda, A. L., Hudgins, D. M., Boersma, C., Ricca, A., Peeters, E., Cami, J., Sanchez de Armas, F., Puerta Saborido, G., Bauschlicher, C. W., J., and Allamandola, L. J. "THE NASA AMES PAH IR SPECTROSCOPIC DATABASE: THE LABORATORY SPECTRA", The Astrophysical Journal Supplement Series, 251, 22, 2020, https://doi.org/10.3847/1538-4365/abc2c8

Contributing

Please read CONTRIBUTING.md for details on the code of conduct, and the process for submitting pull requests.

Versioning

For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the BSD 3-Clause License - see the LICENSE file for details

Acknowledgments

amespahdbpythonsuite's People

Contributors

alexmaragko avatar pahdb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.