Skip to main content

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 miescat. 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.

A Python simple wrapper script mieleg may be used to have more explicit command line argugments.

mieleg --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 miescat. It exposes the compute_mie_scattering function and the Mie class.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

miescat-0.2.1.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

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

miescat-0.2.1-py3-none-any.whl (309.3 kB view details)

Uploaded Python 3

File details

Details for the file miescat-0.2.1.tar.gz.

File metadata

  • Download URL: miescat-0.2.1.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for miescat-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4a4ba203e568419271f455238bea205d2a44ea93ea9ebbc885d94d4006565e1f
MD5 51f62a588074a332c8de30f33007bb15
BLAKE2b-256 135b066971045597a07ba9109e181276f8223dd7e941f83c98d8b7c93cf2f5c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for miescat-0.2.1.tar.gz:

Publisher: pypi.yml on alberto743/miev0-wrapper

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

File details

Details for the file miescat-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: miescat-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 309.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for miescat-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8b48457df77e5a2f85f6abbfff1cdb8ffe96b6a61b1e383d9fadf060ee15209
MD5 79218c1c249743ed1cb9f1201a8b1df4
BLAKE2b-256 079de85dfd49769cd12a6380e8051bc0e9715a252aae38a1ce73485ebefb574c

See more details on using hashes here.

Provenance

The following attestation bundles were made for miescat-0.2.1-py3-none-any.whl:

Publisher: pypi.yml on alberto743/miev0-wrapper

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page