Skip to main content

pytrunc

image image image image

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

pytrunc-1.1.0.tar.gz (317.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytrunc-1.1.0-py3-none-any.whl (314.3 kB view details)

Uploaded Python 3

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

Hashes for pytrunc-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f6d5e538f7cd146389c5a851cee6c7a58af372beb5e6e765f10be0191f48cbaf
MD5 5df752430f6f3d690db3992aa0337e60
BLAKE2b-256 2a95889ae25c222cfcf684a522caaddd741729178d30fc5d71b0493e8143e07d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytrunc-1.1.0.tar.gz:

Publisher: push_pypi.yml on hygeos/pytrunc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pytrunc-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2e4373c31e34bb4368c8c0b4267a151678b2f9a0930b10b31ba0d92edc2de56
MD5 fc9ce83031e8d3054459ca898f5483bc
BLAKE2b-256 c2573234f6ed3ee2d7c67d1fd691d26a6c9fa0675d50b683391ec878cd775f25

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytrunc-1.1.0-py3-none-any.whl:

Publisher: push_pypi.yml on hygeos/pytrunc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2.0.0

2 files

This release

1.1.0 This release

2 files

1.0.1

2 files

1.0.0

2 files

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