Skip to main content

Pydisort

Superpowered Radiative Transfer: Fast, Scalable, User-Friendly 🚀

About Pydisort

A modern Python package for the DISORT (Discrete Ordinate Radiative Transfer) algorithm for high-performance, high-precision modeling of radiative scattering and absorption in layered media.

pydisort provides a high-level Python API to the well-tested C implementation of DISORT, originally developed in Fortran (Stamnes et al. 1988) and later ported to C as cdisort by Timothy E. Dowling, which is a critical component of libRadTran. To support Python integration, the C code was first encapsulated in C++ classes, which were then exposed to Python using pybind11. For efficient memory management and potential GPU acceleration, pydisort leverages PyTorch tensors, paving the way for future applications in machine learning and large-scale parallel computation.

The normal usage of pydisort is to create a pydisort.DisortOptions object first and then initialize the pydisort.Disort object with the pydisort.DisortOptions object by:

>>> import torch
>>> from pydisort import DisortOptions, Disort
>>> torch.set_default_dtype(torch.float64)
>>> op = DisortOptions().flags("onlyfl,lamber")
>>> op.ds().nlyr = 4
>>> op.ds().nstr = 4
>>> op.ds().nmom = 4
>>> op.ds().nphase = 4
>>> ds = Disort(op)
>>> tau = torch.tensor([0.1, 0.2, 0.3, 0.4]).unsqueeze(-1)
>>> flx = ds.forward(tau, fbeam=torch.tensor([3.14159]))
>>> flx
tensor([[[[0.0000, 3.1416],
        [0.0000, 2.8426],
        [0.0000, 2.3273],
        [0.0000, 1.7241],
        [0.0000, 1.1557]]]])

Installation

pip install pydisort

Prebuilt wheels cover CPython 3.10–3.14 on Linux x86-64 (glibc 2.28 or newer with PyTorch) and Apple Silicon macOS 15 or newer. pip installs the required PyTorch automatically. The release workflow publishes wheels only: if no wheel matches, follow the source-build instructions to build the C++ library with CMake before installing the Python bindings.

For a detailed documentation, please visit https://pydisort.readthedocs.io/.

Metadata

Release files for pydisort 1.8.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pydisort 1.8.16
File Actions
pydisort-1.8.16-cp314-cp314-manylinux_2_27_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64 Details for pydisort-1.8.16-cp314-cp314-manylinux_2_27_x86_64.whl
pydisort-1.8.16-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for pydisort-1.8.16-cp314-cp314-macosx_15_0_arm64.whl
pydisort-1.8.16-cp313-cp313-manylinux_2_27_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ x86-64 Details for pydisort-1.8.16-cp313-cp313-manylinux_2_27_x86_64.whl
pydisort-1.8.16-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for pydisort-1.8.16-cp313-cp313-macosx_15_0_arm64.whl
pydisort-1.8.16-cp312-cp312-manylinux_2_27_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ x86-64 Details for pydisort-1.8.16-cp312-cp312-manylinux_2_27_x86_64.whl
pydisort-1.8.16-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details for pydisort-1.8.16-cp312-cp312-macosx_15_0_arm64.whl
pydisort-1.8.16-cp311-cp311-manylinux_2_27_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64 Details for pydisort-1.8.16-cp311-cp311-manylinux_2_27_x86_64.whl
pydisort-1.8.16-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details for pydisort-1.8.16-cp311-cp311-macosx_15_0_arm64.whl
pydisort-1.8.16-cp310-cp310-manylinux_2_27_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64 Details for pydisort-1.8.16-cp310-cp310-manylinux_2_27_x86_64.whl
pydisort-1.8.16-cp310-cp310-macosx_15_0_arm64.whl CPython 3.10 CPython 3.10 macOS 15.0+ ARM64 Details for pydisort-1.8.16-cp310-cp310-macosx_15_0_arm64.whl

Total release size: 72.1 MB

Release files / pydisort-1.8.16-cp314-cp314-manylinux_2_27_x86_64.whl

Download URL pydisort-1.8.16-cp314-cp314-manylinux_2_27_x86_64.whl
Size 13.7 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
ba6ff1fcf9b0554e1f6b2b73947a4d51e853fd654fb8b71751debfb9247319bf
BLAKE2b-256 checksum
How to use checksums
314e6cbaaa4f8c47b32b8049c2f41df01f38ffb42abf718de77af749d3b58773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydisort-1.8.16-cp314-cp314-macosx_15_0_arm64.whl

Download URL pydisort-1.8.16-cp314-cp314-macosx_15_0_arm64.whl
Size 641.9 kB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
31dcb58dace074493bd164337e18451d5ad50e824efbc39dbdcc11a86d95b084
BLAKE2b-256 checksum
How to use checksums
657512ba183edb0eab60691f2857a87e41b7038a6bbfdcaedddc6858da4b457b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydisort-1.8.16-cp313-cp313-manylinux_2_27_x86_64.whl

Download URL pydisort-1.8.16-cp313-cp313-manylinux_2_27_x86_64.whl
Size 13.8 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
e482e75f1b7edc1a9be48d0f6af0936c415144e0f58b7f0b4768e03aea08a8d4
BLAKE2b-256 checksum
How to use checksums
b4c8fc61d159b090f9b1f207792ed62895525d930a9773787703825b0645d23b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydisort-1.8.16-cp313-cp313-macosx_15_0_arm64.whl

Download URL pydisort-1.8.16-cp313-cp313-macosx_15_0_arm64.whl
Size 641.2 kB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
98be5948e8669ed6e09ddaf52da9ef9554bcd78b6543f9c3c6fcf2091e6d55cf
BLAKE2b-256 checksum
How to use checksums
cde98aa6df08914a2b3f463d83146230c8b81b9447d768cb475c3bbe85919811
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydisort-1.8.16-cp312-cp312-manylinux_2_27_x86_64.whl

Download URL pydisort-1.8.16-cp312-cp312-manylinux_2_27_x86_64.whl
Size 13.8 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
f57488deb66b35523dde79a20e417140fea0d344e4046ea02d4916fceca7981b
BLAKE2b-256 checksum
How to use checksums
b4077e72cc9439f9b2cc31c8dd4984c51c9d63d810319b7a37eae66d93f58358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydisort-1.8.16-cp312-cp312-macosx_15_0_arm64.whl

Download URL pydisort-1.8.16-cp312-cp312-macosx_15_0_arm64.whl
Size 641.2 kB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
f547b8af831512af4e6a04ac61ceaeef0eed583dd49833bec247b3ace5e03bc8
BLAKE2b-256 checksum
How to use checksums
980ebdc2d100867c600ef892cb1c6b129f205834c3abd77411181521b8ee5486
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydisort-1.8.16-cp311-cp311-manylinux_2_27_x86_64.whl

Download URL pydisort-1.8.16-cp311-cp311-manylinux_2_27_x86_64.whl
Size 13.8 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
c05c9adb801698a623bbf0418a08c7f128fa40a1b217019e518f932364ba443e
BLAKE2b-256 checksum
How to use checksums
e0ba246ffc4e5445de981360c227f4dcd9d444f98ceaf411d443dafd148ce126
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydisort-1.8.16-cp311-cp311-macosx_15_0_arm64.whl

Download URL pydisort-1.8.16-cp311-cp311-macosx_15_0_arm64.whl
Size 639.8 kB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
f6971a65ca5a0d45c597c4e7ec1c0268b62f62f3eaabf58f051002f2727965fe
BLAKE2b-256 checksum
How to use checksums
b640cef31a945fa095e0ba125084f01e479e5479bdd77c564162bfd5e42d9d8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydisort-1.8.16-cp310-cp310-manylinux_2_27_x86_64.whl

Download URL pydisort-1.8.16-cp310-cp310-manylinux_2_27_x86_64.whl
Size 13.8 MB
Tags CPython 3.10 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
f4fe489609a2f7bb18e3b735bf5af75d70abe1499082e8fce4fe89fdd53c316d
BLAKE2b-256 checksum
How to use checksums
0895db8e376fba4f8e9b424ef53ae6fab8658462d3934f40c56e07dd84ecf620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydisort-1.8.16-cp310-cp310-macosx_15_0_arm64.whl

Download URL pydisort-1.8.16-cp310-cp310-macosx_15_0_arm64.whl
Size 638.0 kB
Tags CPython 3.10 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
175cac0fbe6a40c5d9a33835db45493af7f1789bfbdb944f7a16d3bb75b0606d
BLAKE2b-256 checksum
How to use checksums
61fb6f521148c8b98798416cb84e5e0c6c1697f9bb2115825500317d015bfd04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pydisort 1.8.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.8.16 This release

10 release files No provenance

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