Skip to main content

Compress opacity for radiative transfer

Project description

cortecs

status arXiv PyPI version Conda Version Tests codecov Maintainability License: MIT Code style: black pre-commit CodeQL Documentation Status Paper compilation GitHub repo size PyPI - Python Version

A Python package for decreasing the memory footprint of opacity functions. The primary functionality is compressing opacity functions with varying flexibility. Current methods include

  • polynomial fitting
  • PCA-based fitting
  • neural network fitting

All fits are currently made in along the temperature and pressure axes.

Additionally, cortecs can chunk up opacity functions. The radiative transfer problem can often be cast as embarassingly parallel, so each chunk can be sent to a different CPU.

Installation instructions

cortecs can be installed via pip:

pip install cortecs

or conda:

conda install -c conda-forge cortecs

or from source:

git clone
cd cortecs
pip install -e .

To install from source with optional neural network support:

pip install -e .[neural_networks]

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

cortecs-0.3.6.tar.gz (25.5 MB view hashes)

Uploaded Source

Built Distribution

cortecs-0.3.6-py3-none-any.whl (9.6 MB view hashes)

Uploaded Python 3

Supported by

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