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


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.1.2.tar.gz (37.2 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.1.2-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

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

Hashes for miescat-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6a3f022c99df7f99b407029afc0fa69dfbee9150574c19f20410001cef9583ef
MD5 350dee6c0839dcb17423dfaeafda4afb
BLAKE2b-256 6bc1137125e86eadae53ca7a1b3d8ff667e89f153486fe97feebe10ab7585168

See more details on using hashes here.

Provenance

The following attestation bundles were made for miescat-0.1.2.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.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

Hashes for miescat-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16ee051060b18f9b3ad39672ef7ed2b72d01dda63cb05a440a3c760c3e05929b
MD5 97023d05d9c9f14b6e4a309b330cadad
BLAKE2b-256 b609ec7a33c33f568a3f55024ea1369bf3eed8a9aecaa0cc973edbeccaebc178

See more details on using hashes here.

Provenance

The following attestation bundles were made for miescat-0.1.2-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