Mie scattering calculation based on MIEV0
Project description
miescat - MIEV0 wrapper
Fortran and Python wrapper of the MIEV0 code to compute Mie scattering by Warren J. Wiscombe.
The original MIEV0 code has been retrieved from ftp://climate1.gsfc.nasa.gov/wiscombe/Single_Scatt/Homogen_Sphere/Exact_Mie/.
Fortran executable
The Fortran executable is named mieleg.
It computes the Mie scattering parameters and the Legendre moments starting from a real and imaginary part of the scattering frequency, a radius, and a wavelength.
The output may be parsed as json with jq.
miescat --m_real 1.3484 --m_img 0.001 --radius 1.0 --wavelength 0.41
Python package
The Python package is a wrapper around the Fortran executable and exposes a Python interface to compute Mie scattering. The execution is spawn as a subprocess that the resuting Mie coefficients and Legendre moments are returned as a Python dictionary.
The package installs a command-line entry point mieleg and exposes the compute_mie_scattering function.
The package is available on PyPI miescat.
pip install miescat
Requirements
- Python 3.9+
- CMake
- Fortran compiler
License
- The present wrapping tool is released under the terms of the Mozilla Public License 2.0 (MPL 2.0) license.
- MIEV0 is distributed by NASA and apparently belongs to the public domain. All credit goes to Warren J. Wiscombe.
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 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 miescat-0.1.2.tar.gz.
File metadata
- Download URL: miescat-0.1.2.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a3f022c99df7f99b407029afc0fa69dfbee9150574c19f20410001cef9583ef
|
|
| MD5 |
350dee6c0839dcb17423dfaeafda4afb
|
|
| BLAKE2b-256 |
6bc1137125e86eadae53ca7a1b3d8ff667e89f153486fe97feebe10ab7585168
|
Provenance
The following attestation bundles were made for miescat-0.1.2.tar.gz:
Publisher:
pypi.yml on alberto743/miev0-wrapper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
miescat-0.1.2.tar.gz -
Subject digest:
6a3f022c99df7f99b407029afc0fa69dfbee9150574c19f20410001cef9583ef - Sigstore transparency entry: 1672108613
- Sigstore integration time:
-
Permalink:
alberto743/miev0-wrapper@85ef57cf1e70b64f14495696b2834826fdc9d512 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/alberto743
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@85ef57cf1e70b64f14495696b2834826fdc9d512 -
Trigger Event:
push
-
Statement type:
File details
Details for the file miescat-0.1.2-py3-none-any.whl.
File metadata
- Download URL: miescat-0.1.2-py3-none-any.whl
- Upload date:
- Size: 59.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16ee051060b18f9b3ad39672ef7ed2b72d01dda63cb05a440a3c760c3e05929b
|
|
| MD5 |
97023d05d9c9f14b6e4a309b330cadad
|
|
| BLAKE2b-256 |
b609ec7a33c33f568a3f55024ea1369bf3eed8a9aecaa0cc973edbeccaebc178
|
Provenance
The following attestation bundles were made for miescat-0.1.2-py3-none-any.whl:
Publisher:
pypi.yml on alberto743/miev0-wrapper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
miescat-0.1.2-py3-none-any.whl -
Subject digest:
16ee051060b18f9b3ad39672ef7ed2b72d01dda63cb05a440a3c760c3e05929b - Sigstore transparency entry: 1672108677
- Sigstore integration time:
-
Permalink:
alberto743/miev0-wrapper@85ef57cf1e70b64f14495696b2834826fdc9d512 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/alberto743
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@85ef57cf1e70b64f14495696b2834826fdc9d512 -
Trigger Event:
push
-
Statement type: