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-1.0.1.tar.gz (25.5 MB view details)

Uploaded Source

Built Distribution

cortecs-1.0.1-py3-none-any.whl (9.6 MB view details)

Uploaded Python 3

File details

Details for the file cortecs-1.0.1.tar.gz.

File metadata

  • Download URL: cortecs-1.0.1.tar.gz
  • Upload date:
  • Size: 25.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for cortecs-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c7bac8da06dede51b8f140163ab6dceeb6e1dfb10a14bc9d9af7ed59827706bd
MD5 f6a2ce671277a3fdac77c1710d4b15f2
BLAKE2b-256 e1c0ea21527875bdc0719840c4cccb0f35720256870a079a8f9295c094e4851c

See more details on using hashes here.

File details

Details for the file cortecs-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: cortecs-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for cortecs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 589bcbd79cdca4d41f3550b09cd74233d32342d62ce69188605d458c10fe3834
MD5 b132604c7c1121ad3eaadbfc7a891c27
BLAKE2b-256 a1b36be570191ef3c2f28c7908cc4c280ede3013d0023d2081d8d1834151a087

See more details on using hashes here.

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