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.5.tar.gz (37.4 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.5-py3-none-any.whl (308.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: miescat-0.1.5.tar.gz
  • Upload date:
  • Size: 37.4 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.5.tar.gz
Algorithm Hash digest
SHA256 ca9a4eb2578284995c86c68b44777f46fb25723939f45d367cccc6e10494daf4
MD5 d25799f734fa988ad9e97ccf832a6369
BLAKE2b-256 410933327531540e7aea7dcd8dbc042239156e91e87476a5169b61a8921b7e49

See more details on using hashes here.

Provenance

The following attestation bundles were made for miescat-0.1.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: miescat-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 308.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 21d26965afc1f56f673e348bf4a482298882356f16201930bf61d20963dcf9a0
MD5 1abc8f2d580cc488d6e6a399c6dcb582
BLAKE2b-256 1ebefe8976fe7c422e333128a2e5510e673e786491f72d56c41abe8d5f0763bd

See more details on using hashes here.

Provenance

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