Skip to main content

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

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.

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

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.

Metadata

Release files for rapoc 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rapoc 1.0.8
File Size Uploaded Provenance Actions
rapoc-1.0.8.tar.gz 19.6 kB Without provenance Details for rapoc-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rapoc 1.0.8
File Interpreter ABI Platform Actions
rapoc-1.0.8-py3-none-any.whl Python 3 none any Details for rapoc-1.0.8-py3-none-any.whl

Total release size: 44.9 kB

Release files / rapoc-1.0.8.tar.gz

Download URL rapoc-1.0.8.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9013892aec8fbde8e69315ef2f72615996e1e6f8644ae173491ed83a3a71da3e
BLAKE2b-256 checksum
How to use checksums
83b3815dc7576b27fa97ad446c20cd538883b497267ff0c70f7370dc62f826a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.0

Release files / rapoc-1.0.8-py3-none-any.whl

Download URL rapoc-1.0.8-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7178a9443c5b845885989f94efdbea09efd61859467438461a10ba70631ce9c2
BLAKE2b-256 checksum
How to use checksums
3fc7b4567e06dbbda0292adea66bc5eb53e79e258ecd5d5883ada06324f3544a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.0

Security for rapoc 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page