Cine

Cine: Line excitation by infrared fluorescence in cometary atmospheres - Published in JOSS (2017)

https://github.com/migueldvb/cine

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

astronomy comets python science

Keywords from Contributors

mcmc mcmc-sampler probabilistic-data-analysis

Scientific Fields

Mathematics Computer Science - 63% confidence
Last synced: 4 months ago · JSON representation

Repository

Calculate infrared pumping rates by solar radiation

Basic Info
  • Host: GitHub
  • Owner: migueldvb
  • License: mit
  • Language: Python
  • Default Branch: master
  • Size: 34.2 KB
Statistics
  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • Open Issues: 4
  • Releases: 1
Topics
astronomy comets python science
Created almost 9 years ago · Last pushed over 7 years ago
Metadata Files
Readme License

README.rst

===============================
CINE: Comet INfrared Excitation
===============================


``cine`` is a command-line tool for calculating infrared pumping efficiencies.
At large nucleocentric distances, one of the main mechanisms for molecular
excitation in comets is the fluorescence by the solar radiation followed by
radiative decay to the ground vibrational state.  This code calculates the
effective pumping rates for rotational levels in the ground vibrational state
scaled by the heliocentric distance of the comet.  These coefficients are
useful for modeling rotational emission lines observed in cometary spectra at
sub-millimeter wavelengths.

Code releases are available on `PyPI `_, and
development happens in the `github project page
`_.


Requirements
------------

The code requires the standard scientific Python packages (`numpy
`_, `scipy `_, and `pandas
`_) and astropy's affiliated package `astroquery
`_  to access the HITRAN and Lamda
databases. Running the tests requires `nose
`_.


Installation
------------

cine can be installed using `pip `_:

.. code-block:: bash

    $ pip install cine

or by cloning the github repository:

.. code-block:: bash

    $ # If you have a github account:
    $ git clone git@github.com:migueldvb/cine.git
    $ # If you do not:
    $ git clone https://github.com/migueldvb/cine.git
    $ cd cine
    $ python setup.py install
    $ # Or if you do not have root privileges:
    $ python setup.py install --user

When the package is installed using either method, the ``cine`` script will be
copied to a directory in the PATH environment variable and will be available
for general use.


Example
-------

``cine`` is a command-line tool that is included in the package to generate
pumping rates for several molecules. For example, to obtain the effective
pumping rates between the seven lowest rotational levels in the ground
vibrational state of HDO you can run the following command once ``CINE`` has
been installed:

.. code-block:: bash

    $ cine --mol HDO --nlevels 7

This should create a file named ``G_HDO.dat`` which contains the pumping rates
G :subscript:`ij` in units of s :superscript:`-1` between the rotational levels
i and j shown in the first two columns. Note that the levels use zero-based
indexing.

.. code-block:: bash

    0 3 2.568872e-05
    0 4 2.570305e-05
    0 5 1.552757e-05
    1 2 6.253229e-05
    1 6 2.987896e-05
    2 1 6.196215e-05
    2 6 4.410062e-05
    3 0 7.547422e-05
    3 4 3.103947e-05
    3 5 5.048423e-05
    4 0 1.253741e-04
    4 3 5.128064e-05
    4 5 4.679292e-05
    5 0 7.481781e-05
    5 3 8.287649e-05
    5 4 4.643613e-05
    6 1 4.820172e-05
    6 2 7.201329e-05

To include more levels in the calculation, change the ``-n/-nlevels`` command-line
option to a larger value.  cine has a ``-h/--help`` argument that presents an
usage explanation describing each optional argument.

These coefficients are useful for deriving molecular production rates from cometary
lines observed at sub-millimeter wavelengths combined with a code that
solves the radiative transfer equations such as `LIME
`_.


Downloading HITRAN data
-----------------------

To download the molecular data cine uses the ``astroquery.hitran`` and
``astroquery.lamda`` tools.  Set the ``LAMDA_DATA`` and ``HITRAN_DATA``
environment variables (otherwise, the default
``~/.astropy/cache/astroquery/Lamda``  and
``~/.astropy/cache/astroquery/hitran`` will be used),


Tests
-----

If ``nose`` is installed the tests can be run from the root of the repository as:

.. code-block:: bash

    $ python setup.py test


Contributing
------------

Any questions or bug reports can be raised in github's `issue tracker
`_ or `pull requests
`_.


Project Status
--------------

.. image:: https://travis-ci.org/migueldvb/cine.svg?branch=master
    :target: https://travis-ci.org/migueldvb/cine?branch=master

.. image:: https://coveralls.io/repos/github/migueldvb/cine/badge.svg?branch=master
    :target: https://coveralls.io/github/migueldvb/cine?branch=master


Citation
--------

.. image:: http://joss.theoj.org/papers/10.21105/joss.00182/status.svg
    :target: http://joss.theoj.org/papers/10.21105/joss.00182

If you wish to cite this work, please use this reference from `NASA's
Astrophysics Data System
`_:

.. code-block:: bibtex

    @ARTICLE{2017JOSS....2..182D,
           author = {{de Val-Borro}, Miguel and {Cordiner}, Martin A. and {Milam}, Stefanie
            N. and {Charnley}, Steven B.},
            title = "{Cine: Line excitation by infrared fluorescence in cometary atmospheres}",
          journal = {The Journal of Open Source Software},
             year = 2017,
            month = Mar,
           volume = {2},
            pages = {182},
              doi = {10.21105/joss.00182},
           adsurl = {https://ui.adsabs.harvard.edu/#abs/2017JOSS....2..182D},
          adsnote = {Provided by the SAO/NASA Astrophysics Data System}
    }


License
-------

Copyright 2017-2018 Miguel de Val-Borro

``CINE`` is free software made available under the MIT License.
For details see the LICENSE file.

Owner

  • Name: Miguel de Val-Borro
  • Login: migueldvb
  • Kind: user
  • Company: NASA Goddard Space Flight Center

JOSS Publication

Cine: Line excitation by infrared fluorescence in cometary atmospheres
Published
March 07, 2017
Volume 2, Issue 11, Page 182
Authors
Miguel de Val-Borro ORCID
NASA Goddard Space Flight Center, The Catholic University of America
Martin A. Cordiner ORCID
NASA Goddard Space Flight Center, The Catholic University of America
Stefanie N. Milam ORCID
NASA Goddard Space Flight Center
Steven B. Charnley
NASA Goddard Space Flight Center
Editor
Arfon Smith ORCID
Tags
Fluorescence Comets Planetary Atmospheres

GitHub Events

Total
Last Year

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 40
  • Total Committers: 3
  • Avg Commits per committer: 13.333
  • Development Distribution Score (DDS): 0.35
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Miguel de Val-Borro m****l@a****t 26
Miguel de Val-Borro m****l@g****m 13
Erik Tollerud e****d@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 8
  • Total pull requests: 1
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 3 minutes
  • Total issue authors: 3
  • Total pull request authors: 1
  • Average comments per issue: 1.88
  • Average comments per pull request: 1.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • eteq (4)
  • migueldvb (3)
  • mcordiner (1)
Pull Request Authors
  • eteq (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 25 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 4
  • Total maintainers: 1
pypi.org: cine

Calculate infrared pumping rates by solar radiation

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 25 Last month
Rankings
Dependent packages count: 10.1%
Dependent repos count: 21.5%
Forks count: 22.6%
Stargazers count: 25.1%
Average: 27.2%
Downloads: 56.4%
Maintainers (1)
Last synced: 4 months ago

Dependencies

requirements.txt pypi
  • numpy *
  • pandas *
  • scipy *
setup.py pypi
  • astroquery *
  • numpy *
  • pandas *
  • scipy *