pytrunc
Scattering phase matrix truncation Python tool for radiative transfer applications.
Mustapha Moulana
HYGEOS website
Documentation
Installation
You can use oe of the following commands:
conda install -c conda-forge pytrunc
pip install pytrunc
# directly from github
pip install git+https://github.com/hygeos/pytrunc.git
Examples
Example using the Delta-m method:
Voir l'image
>>> ...
>>> from pytrunc.truncation import delta_m_phase_approx
>>> m_max = 20 # stream / term number
>>> # phase_exact -> P11 of a liquid cloud at 500nm and an effective radius of 8 mirometers
>>> # theta -> the phase angles in degrees
>>> ds = delta_m_phase_approx(phase_exact, theta, m_max) # return an xarray dataset
>>> ...
Example using the Geometric Truncation:
Voir l'image
>>> ...
>>> from pytrunc.truncation import gt_phase_approx
>>> from pytrunc.phase import calc_moments
>>> m_max = 20 # stream / term number
>>> # phase_exact -> P11 of a liquid cloud at 500nm and an effective radius of 8 mirometers
>>> # theta -> the phase angles in degrees
>>> chi = calc_moments(phase_exact, theta, m_max=m_max, normalize=True) # the phase moments
>>> f = chi[m_max] # The truncation factor
>>> ds = gt_phase_approx(phase_exact, theta, f) # return an xarray dataset
>>> ...
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytrunc-1.1.0.tar.gz.
File metadata
- Download URL: pytrunc-1.1.0.tar.gz
- Upload date:
- Size: 317.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6d5e538f7cd146389c5a851cee6c7a58af372beb5e6e765f10be0191f48cbaf
|
|
| MD5 |
5df752430f6f3d690db3992aa0337e60
|
|
| BLAKE2b-256 |
2a95889ae25c222cfcf684a522caaddd741729178d30fc5d71b0493e8143e07d
|
Provenance
The following attestation bundles were made for pytrunc-1.1.0.tar.gz:
Publisher:
push_pypi.yml on hygeos/pytrunc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytrunc-1.1.0.tar.gz -
Subject digest:
f6d5e538f7cd146389c5a851cee6c7a58af372beb5e6e765f10be0191f48cbaf - Sigstore transparency entry: 2304985968
- Sigstore integration time:
-
Permalink:
hygeos/pytrunc@3c5977dbce941bd0ce79864d606d9a7d9ef32f3b -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/hygeos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
push_pypi.yml@3c5977dbce941bd0ce79864d606d9a7d9ef32f3b -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytrunc-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pytrunc-1.1.0-py3-none-any.whl
- Upload date:
- Size: 314.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2e4373c31e34bb4368c8c0b4267a151678b2f9a0930b10b31ba0d92edc2de56
|
|
| MD5 |
fc9ce83031e8d3054459ca898f5483bc
|
|
| BLAKE2b-256 |
c2573234f6ed3ee2d7c67d1fd691d26a6c9fa0675d50b683391ec878cd775f25
|
Provenance
The following attestation bundles were made for pytrunc-1.1.0-py3-none-any.whl:
Publisher:
push_pypi.yml on hygeos/pytrunc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytrunc-1.1.0-py3-none-any.whl -
Subject digest:
a2e4373c31e34bb4368c8c0b4267a151678b2f9a0930b10b31ba0d92edc2de56 - Sigstore transparency entry: 2304986044
- Sigstore integration time:
-
Permalink:
hygeos/pytrunc@3c5977dbce941bd0ce79864d606d9a7d9ef32f3b -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/hygeos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
push_pypi.yml@3c5977dbce941bd0ce79864d606d9a7d9ef32f3b -
Trigger Event:
push
-
Statement type: