ACE equilibrium chemical scheme wrapper built on TauREx
Project description
TauREx-ACE plugin
Python wrapper built using the TauREx framework for the FORTRAN equilibrium chemistry code developed by Agúndez et al. 2012.
Installation
You can install one of the prebuilt binary wheels for Windows, macOS and manylinux through pip:
pip install taurex_ace
Installing from source
To install from source a valid C/C++ and FORTRAN compiler must be present. You can compile it by doing:
git clone https://github.com/ucl-exoplanets/taurex_ace.git
cd taurex_ace
pip install .
Running in TauREx
Once installed you can select the chemical model through the chemistry_type keyword under Chemistry.
[Chemistry]
chemistry_type = ace
metallicity = 1.0
co_ratio = 0.5
Input arguments:
Argument | Description | Type | Default | Required |
---|---|---|---|---|
metallicity | Metallicity relative to solar | float | 1.0 (Solar) | |
co_ratio | C/O ratio | float | 0.5 | |
therm_file | Path to thermalchemical data | string | Built-in | |
spec_file | Path to species | string | Built-in | |
ace_He_solar | Initial abundance for He in dex | float | 10.93 | |
ace_C_solar | Initial abundance for C in dex | float | 8.39 | |
ace_O_solar | Initial abundance for O in dex | float | 8.73 | |
ace_N_solar | Initial abundance for N in dex | float | 7.86 |
Retrieval Parameters:
Fitting Parameter | Description |
---|---|
metallicity | Metallicity relative to solar |
C_O_ratio | C/O ratio |
Running in Python
You can import the chemistry scheme in Python pretty easily
>>> from taurex_ace import ACEChemistry
>>> ace = ACEChemistry(metallicity=1.0, co_ratio=0.5)
You can either pass it into a TauREx forward model like so:
>>> tm = TransmissionModel(chemistry=ace)
Or use it independently to compute volume mixing ratios by passing in temperature and pressure ( Pascal ) arrays:
>>> nlayers = 100
>>> T = numpy.linspace(400,1000,nlayers)
>>> P = numpy.logspace(1,5, nlayers)
>>> ace.initialize_chemistry(nlayers=nlayers, temperature_profile=T, pressure_profile=P)
>>> ace.gases
['CH3COOOH', 'C4H9O', 'C3H7O', ..., 'HNC', 'HON', 'NCN']
>>> ace.mixProfile
array([[6.49723780e-80, 6.79239790e-79, 6.61822622e-78, ...,
8.00944782e-41, 1.11751339e-40, 1.55179784e-40],
[7.10900373e-76, 4.67226720e-75, 2.90530077e-74, ...,
1.03852971e-43, 1.39343534e-43, 1.86266570e-43],
[1.13921670e-64, 5.82452085e-64, 2.83707624e-63, ...,
4.26299477e-37, 5.44908156e-37, 6.94256769e-37],
...,
[3.29247294e-31, 1.02824750e-30, 3.09872209e-30, ...,
1.82127852e-13, 2.05020932e-13, 2.30210836e-13],
[4.53205427e-71, 4.23173486e-70, 3.69942916e-69, ...,
2.31456323e-32, 3.35359173e-32, 4.83724134e-32],
[8.04632748e-67, 7.90155245e-66, 7.23887996e-65, ...,
3.68586537e-29, 5.02545448e-29, 6.81862528e-29]])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file taurex_ace-1.0.2.dev0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 507.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d997f4b25c04fae69adeae3e606c7b0f04e8149c2e4f7ecf28dcbd6263987f8 |
|
MD5 | 854f7921a487b992eada1c8be5b23aa8 |
|
BLAKE2b-256 | aa660f98df19df38e16c7066d5c3f919a91ab5f182c6a0455f80ec90f785712d |
File details
Details for the file taurex_ace-1.0.2.dev0-cp39-cp39-manylinux2010_i686.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp39-cp39-manylinux2010_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5264675505ca3a27bbb307898e3f35e06a97b2ea446623fe9678dde6818c17bd |
|
MD5 | 2c2eaf15c78497f5cdd936871fa850bc |
|
BLAKE2b-256 | 63eb939b1e8a4079f855d9c8b32b3e2483279e18feda68e14c4448c3ec391123 |
File details
Details for the file taurex_ace-1.0.2.dev0-cp39-cp39-manylinux1_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp39-cp39-manylinux1_x86_64.whl
- Upload date:
- Size: 506.6 kB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ed73776b6731f7366b880e422698ac227ef10fc7e728741664d03bd07f3209 |
|
MD5 | bd97f12ada03ecfb85f2367ec65b0586 |
|
BLAKE2b-256 | 71f985a5b78bdee1e312bd78077a10b78cfd2eb85880a3493433af6bd82c2868 |
File details
Details for the file taurex_ace-1.0.2.dev0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 470.1 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de3fa0addca02737934606ceb427573b4f12c91b203213caf59d6f8aab401e15 |
|
MD5 | ec73244d355a7bb7456c7e17d446bd45 |
|
BLAKE2b-256 | a8658090625605dd9a48e9b69f8e4bb333ae1ec9a09e9512b66612df6c3e686f |
File details
Details for the file taurex_ace-1.0.2.dev0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 505.1 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46364160f605259cc50d36d9bcff794c3a84e8539db2833d096ec25a1396cf3f |
|
MD5 | 533dcdd153c79e17546838a543eedb76 |
|
BLAKE2b-256 | d9030a3b25ef87285e49cd4c578704ddc294fbb5a70aee0012311b547df88c7b |
File details
Details for the file taurex_ace-1.0.2.dev0-cp38-cp38-manylinux2010_i686.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp38-cp38-manylinux2010_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89c8f7dade001eac1f98fc083b51bd9858fc9088c3f0ed8c3e202b568525b485 |
|
MD5 | b2a88f65838aa88f7e324a1ff5d259f6 |
|
BLAKE2b-256 | e68a2d1c7f06de0d0cfdde2252e8823fb9b125d53c9196f5fbc4a40ab096b246 |
File details
Details for the file taurex_ace-1.0.2.dev0-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 505.4 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41bee20d9ec802a38aa67249f1b45d23d725f71fccbafa67e9b7d1db1acbac76 |
|
MD5 | 5a30da8b81cc07dd6a976b1eea45468e |
|
BLAKE2b-256 | 038775920b47e24e9df3f5be068f51dab18ea6f84a75030f8b2efcfc35879585 |
File details
Details for the file taurex_ace-1.0.2.dev0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 469.6 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b600fa929f295d65cec720ffa24868a877f3f96444f4851edbdc8ef51c44a54d |
|
MD5 | f167271328889ce3b24458c4769e0a39 |
|
BLAKE2b-256 | d2676bf7be4a8a8ef9981493fa7acd69d29a269f762de06a5da70c918873cceb |
File details
Details for the file taurex_ace-1.0.2.dev0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 504.1 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d65b9ad41206f3a02c1212b373ae9f45d592f23650b9c481aeb9d0198bffe4e |
|
MD5 | d3833a32a2ceeb7c2d8700f7b54e0ed5 |
|
BLAKE2b-256 | b58f6e7327cb7ef1e7e36bfe0f4b80f5f519f49ffe74319ca119ea4606dff482 |
File details
Details for the file taurex_ace-1.0.2.dev0-cp37-cp37m-manylinux2010_i686.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp37-cp37m-manylinux2010_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e1d095f0d80a2984cf0edda5b9228c95d3a0d43ea8c8fa36dbfa89eb6750ae6 |
|
MD5 | 8d360da99c624600cfabdf60f49c7e09 |
|
BLAKE2b-256 | d0543261686fe9d150155544ec0467b194be45276e648e971d927eca80aeaf5d |
File details
Details for the file taurex_ace-1.0.2.dev0-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 505.2 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af8228c0200a2fb1e593a023d8f32f969c6dafc32f24d64d83dd07e4e97721aa |
|
MD5 | ac0790bbb6e329b96f3a309bca9e5858 |
|
BLAKE2b-256 | aa0b1fc7eb4d2c2df5e92508581193e985af93ad3c9435f25f3df0c443ed8a7f |
File details
Details for the file taurex_ace-1.0.2.dev0-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 469.4 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad95620c7f0701a2c550d5a4e792d2e746559e6408b81d168fe26b62bcc0a59 |
|
MD5 | 58c23ccb190c96576e8769e1343b6306 |
|
BLAKE2b-256 | 54efbb86daa886f894b204bfaee8023b2b22085a03e56bdf6fa44b340c646098 |
File details
Details for the file taurex_ace-1.0.2.dev0-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 463.2 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405848168ef9f22bcafa4617fe7e44805d4c759fbf79b5a36675f3d11436dc76 |
|
MD5 | 7ed2f5f481d68c14de8f071e7e8df103 |
|
BLAKE2b-256 | 143a38d7cfb47ec8a5ff6ff505ff6461c1196d0a4d18704081374ceff20a1cbf |
File details
Details for the file taurex_ace-1.0.2.dev0-cp36-cp36m-manylinux2010_i686.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp36-cp36m-manylinux2010_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 036a7785482587f58f107381ba2c053d98e631f769913f7e026b5964a1a8b9b9 |
|
MD5 | df3a75261eb0724f5d754170d6fb2f00 |
|
BLAKE2b-256 | 45aab316c5dc3c19108a020b5f3f4c7691a34665acce00b345dee41c2461de1c |
File details
Details for the file taurex_ace-1.0.2.dev0-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 503.7 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6af86cf66ac19f24dd7f1c07620a8f9b450771d8a854d816b6c1100bb1a96f43 |
|
MD5 | 897ddacda3a72ae8673d3ab8cc55ccff |
|
BLAKE2b-256 | f334dc5bd7975c5e2028a3bd9c8605835833d78d0cc43d39b56148190fffe5dc |
File details
Details for the file taurex_ace-1.0.2.dev0-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 469.3 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be39e3c4daf89721f2a4fff9a6e393a34bbb6878c1f8d942fcb8ea466d9f45b7 |
|
MD5 | 3a0130a2cdd37568250d8a2c2466b12d |
|
BLAKE2b-256 | 15d26ba84158f5f92cd9b8ece51496d0f98afdcdf8c2b70a4506e0cbef1918ee |
File details
Details for the file taurex_ace-1.0.2.dev0-cp35-cp35m-win_amd64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 462.6 kB
- Tags: CPython 3.5m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d283dae8fc4484a3b5861e9332d9fde9aeb98f46a391c3e8a4bea317f37037e9 |
|
MD5 | d435ed7c8b99fe2901b38a03fdc9b3d4 |
|
BLAKE2b-256 | 8e6f4da08315c2943b9d528cc7d8d54e78895591555247911dfd88e92df01d00 |
File details
Details for the file taurex_ace-1.0.2.dev0-cp35-cp35m-manylinux2010_i686.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp35-cp35m-manylinux2010_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 990674a26fc97d146353b28630b14c5c71d0a36c7660ad9ce11fbc711a8ddaa4 |
|
MD5 | b9b78845be47e3882a89a5bf2e0fa28e |
|
BLAKE2b-256 | fd3f77429cd8fdac20aaa1ef9d68e7db745d5d37e7332f4f752e87d5e17c4c98 |
File details
Details for the file taurex_ace-1.0.2.dev0-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 503.4 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11a436525cf01e36f9f175b6c83a0818d5de929f5f37675fb35b1be5a6576c01 |
|
MD5 | 38f62897f9080970a03fdb17c90a4323 |
|
BLAKE2b-256 | bd46c17f17197ae3d0b320aa250415f9d65378dbdd670b51e2c5891c15555d24 |
File details
Details for the file taurex_ace-1.0.2.dev0-cp35-cp35m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: taurex_ace-1.0.2.dev0-cp35-cp35m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 469.3 kB
- Tags: CPython 3.5m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 200c7ac9291516488fb357b81a8eb5b45a1312bb2b27b0ee762e0cf56eade976 |
|
MD5 | 0038c726eb1d92f17f31189f05954565 |
|
BLAKE2b-256 | 52841f7adc7679cf484a31a9e9df1f1a4a08365057c4931365bc2c97d0443c25 |