rapoc

Rapoc uses molecular absorption measurements (i.e. wavelength-dependent opacities) to calculate Rosseland and Planck mean opacities that are commonly used in atmospheric modelling.

https://github.com/exobssim/rapoc-public

Science Score: 54.0%

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

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.8%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

Rapoc uses molecular absorption measurements (i.e. wavelength-dependent opacities) to calculate Rosseland and Planck mean opacities that are commonly used in atmospheric modelling.

Basic Info
Statistics
  • Stars: 4
  • Watchers: 4
  • Forks: 1
  • Open Issues: 1
  • Releases: 4
Created about 5 years ago · Last pushed about 3 years ago
Metadata Files
Readme Changelog License Citation

README.md

PyPI version GitHub release (latest by date) Downloads Documentation Status GitHub ASCL.net

RAPOC: Rosseland And Planck Opacity Converter

The RAPOC code is written by Lorenzo V. Mugnai and Darius Modirrousta-Galian and is the product of a collaboration between Sapienza Università di Roma, Università degli Studi di Palermo and INAF - Osservatorio Astronomico di Palermo. It uses molecular absorption measurements (i.e. wavelength-dependent opacities) to calculate Rosseland and Planck mean opacities that are commonly used in atmospheric modelling.

RAPOC is designed to be simple, straightforward, and easily incorporated into other codes. It is completely written in Python and documented with docstrings. In addition, a Sphinx version of the documentation with a full user guide that includes examples is available in html format.

Reports

RAPOC is under development, please report any issues or inaccuracies to the developers to support the implementation.

Cite

If you use this code or its results, please cite RAPOC: the Rosseland and Planck opacity converter by Mugnai L. V. and Modirrousta-Galian D. (submitted).

Installation

Installing from Pypi

RAPOC can be installed from the Pypi repository with the following script::

pip install rapoc

Installing from git

RAPOC may also be cloned from the main git repository::

git clone https://github.com/ExObsSim/Rapoc-public.git

The next step is to move into the RAPOC folder::

cd /your_path/Rapoc

Then::

pip install .

To check if one has the correct setup::

python -c "import rapoc"

Use

RAPOC is designed to be used on its own or in conjunction with other Python codes. Given an ExoMol file in the TauREx.h5 format, Rosseland and Planck mean opacities can be calculated. For example, in order to estimate the mean opacities at a temperature (T) of 1000 K with a pressure (P) of 10,000 Pa in the wavelength range of 0.3-50 micron the following script is used,

from rapoc import Rosseland, Planck

r_model = Rosseland(input_data='exomol_file.TauREx.h5')
opacity = r_model.estimate(P_input=10000 * u.Pa, T_input=1000 * u.K, band=(0.3 *u.um, 50*u.um))

p_model = Planck(input_data='exomol_file.TauREx.h5')
opacity = p_model.estimate(P_input=10000 * u.Pa, T_input=1000 * u.K, band=(0.3 *u.um, 50*u.um))

Inputs

To run the code you need measured data. The supported file formats are:

  • ExoMol opacities (downloadable here) with the TauREx.h5 format.
  • Dace opacities (downloadable here) with the binary format.

Documentation

The full documentation is available here

Alternatively, RAPOC accepts user-defined documentation by using sphinx. To install it run

pip install sphinx sphinx_rtd_theme nbsphinx

From the Rapoc/docs folder running

cd docs
make html

This will create a html version of the documentation in Rapoc/doc/build/html/index.html.

Owner

  • Name: ExObsSim
  • Login: ExObsSim
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Mugnai
    given-names: Lorenzo V.
    orcid: https://orcid.org/0000-0002-9007-9802
  - family-names: Modirrousta-Galian,
    given-names: Darius
    orcid: https://orcid.org/0000-0001-6425-9415
title: "Rapoc"
version: 1.0.5
doi: 10.48550/arXiv.2209.07535
date-released: 2022-09-12

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 19
  • Total Committers: 2
  • Avg Commits per committer: 9.5
  • Development Distribution Score (DDS): 0.053
Top Committers
Name Email Commits
Lorenzo Mugnai l****9@g****m 18
Aaron David Schneider a****r@n****k 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 2
  • Total pull requests: 1
  • Average time to close issues: 2 days
  • Average time to close pull requests: about 1 hour
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.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
  • AaronDavidSchneider (2)
Pull Request Authors
  • AaronDavidSchneider (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 26 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 3
  • Total maintainers: 2
pypi.org: rapoc

Rosseland And Planck Opacity Converter

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 26 Last month
Rankings
Dependent packages count: 10.0%
Dependent repos count: 21.7%
Forks count: 22.6%
Stargazers count: 27.8%
Average: 31.5%
Downloads: 75.3%
Maintainers (2)
Last synced: 8 months ago

Dependencies

docs/source/requirements.txt pypi
  • Babel ==2.8.0
  • GPy ==1.9.9
  • Jinja2 ==2.11.3
  • Keras ==2.4.3
  • Keras-Preprocessing ==1.1.2
  • Markdown ==3.3.2
  • PyYAML ==5.4
  • Pygments ==2.7.4
  • QtPy ==1.9.0
  • SecretStorage ==3.1.2
  • Send2Trash ==1.5.0
  • Sphinx ==3.2.1
  • Werkzeug ==1.0.1
  • absl-py ==0.10.0
  • alabaster ==0.7.12
  • anyio ==2.2.0
  • argon2-cffi ==20.1.0
  • astropy ==4.2
  • astroquery ==0.4.1
  • asttokens ==2.0.4
  • astunparse ==1.6.3
  • async-generator ==1.10
  • backports.functools-lru-cache ==1.6.1
  • beautifulsoup4 ==4.9.1
  • bleach ==3.3.0
  • build ==0.2.1
  • bump2version ==1.0.1
  • bumpversion ==0.6.0
  • cachetools ==4.1.1
  • certifi ==2020.12.5
  • cffi ==1.14.2
  • chardet ==3.0.4
  • colorama ==0.4.4
  • configobj ==5.0.6
  • corner ==2.1.0
  • cryptography ==3.3.2
  • cycler ==0.10.0
  • decorator ==4.4.2
  • defusedxml ==0.6.0
  • dill ==0.3.3
  • docutils ==0.16
  • emcee ==3.0.2
  • executing ==0.5.4
  • exodata ==2.1.7
  • flatbuffers ==1.12
  • future ==0.18.2
  • gast ==0.3.3
  • google-auth ==1.22.1
  • google-auth-oauthlib ==0.4.1
  • google-pasta ==0.2.0
  • grpcio ==1.32.0
  • h5py ==2.10.0
  • h5py-wrapper ==1.1.0
  • hdfdict ==0.3.1
  • html5lib ==1.1
  • idna ==2.10
  • imagesize ==1.2.0
  • ipython-genutils ==0.2.0
  • jeepney ==0.4.3
  • joblib ==0.16.0
  • json5 ==0.9.5
  • jupyter ==1.0.0
  • jupyter-console ==6.1.0
  • jupyter-packaging ==0.7.12
  • jupyter-server ==1.5.1
  • jupyterlab ==3.1.0a3
  • jupyterlab-server ==2.4.0
  • jupyterlab-sublime ==0.4.1
  • keepachangelog ==0.4.0
  • keyring ==21.4.0
  • llvmlite ==0.34.0
  • matplotlib ==3.3.4
  • molmass ==2020.6.10
  • mpmath ==1.1.0
  • nbclassic ==0.2.7
  • nbsphinx ==0.7.1
  • nestle ==0.2.0
  • nose ==1.3.7
  • notebook ==6.1.5
  • numba ==0.51.1
  • numexpr ==2.7.1
  • numpy ==1.19.4
  • oauthlib ==3.1.0
  • opt-einsum ==3.3.0
  • pandas ==1.1.1
  • pandocfilters ==1.4.2
  • paramz ==0.9.5
  • pep517 ==0.9.1
  • pkginfo ==1.7.0
  • pockets ==0.9.1
  • protobuf ==3.13.0
  • ptyprocess ==0.6.0
  • pure-eval ==0.1.1
  • pyasn1 ==0.4.8
  • pyasn1-modules ==0.2.8
  • pycparser ==2.20
  • pydata-sphinx-theme ==0.4.3
  • pyerfa ==1.7.2
  • pylightcurve ==4.0.1
  • pyparsing ==2.4.7
  • pytest-runner ==5.2
  • python-dateutil ==2.8.1
  • pytz ==2020.1
  • pyzmq ==20.0.0
  • qtconsole ==4.7.6
  • quantities ==0.12.4
  • readme-renderer ==28.0
  • requests ==2.24.0
  • requests-oauthlib ==1.3.0
  • requests-toolbelt ==0.9.1
  • rfc3986 ==1.4.0
  • rsa ==4.7
  • scikit-learn ==0.23.2
  • scipy ==1.6.1
  • seaborn ==0.10.1
  • setuptools-scm ==4.1.2
  • sklearn ==0.0
  • sniffio ==1.2.0
  • snowballstemmer ==2.0.0
  • soupsieve ==2.0.1
  • sphinx-rtd-theme ==0.5.0
  • sphinxcontrib-applehelp ==1.0.2
  • sphinxcontrib-devhelp ==1.0.2
  • sphinxcontrib-htmlhelp ==1.0.3
  • sphinxcontrib-jsmath ==1.0.1
  • sphinxcontrib-napoleon ==0.7
  • sphinxcontrib-qthelp ==1.0.3
  • sphinxcontrib-serializinghtml ==1.1.4
  • tabulate ==0.8.7
  • tensorboard ==2.4.1
  • tensorboard-plugin-wit ==1.7.0
  • tensorflow ==2.4.1
  • tensorflow-estimator ==2.4.0
  • termcolor ==1.1.0
  • testpath ==0.4.4
  • threadpoolctl ==2.1.0
  • toml ==0.10.2
  • tqdm ==4.51.0
  • twine ==3.3.0
  • typing-extensions ==3.7.4.3
  • urllib3 ==1.25.10
  • varname ==0.6.3
  • webencodings ==0.5.1
  • wrapt ==1.12.1
  • xlrd ==1.2.0
  • xlwt ==1.3.0
setup.py pypi
  • astropy *
  • h5py *
  • matplotlib *
  • molmass *
  • numpy *
  • scipy *
  • tqdm *