How cansud98/mie_scattering works
This repository provides water/ice refractive-index calculations, exposed through a command-line interface and a Python module. The CLI accepts wavelength or frequency, temperature, and material, then uses wavelength-based dispatch to compute the index; visible/infrared paths read tabulated optical constants. A modified implementation is also present but is not called by the CLI. The README points to a report and example plot, and the tree includes a Mie-scattering notebook; its runtime relationship to the calculator is not established by the available excerpts.
Main entry points: riwaterice.py Refractive indices · getm.py Index CLI · WOP_1973_HaleQuerry_umkn.dat Water constants · IOP_2008_WarrenBrandt_umnk.dat Ice constants
Components 7
User interface
- Index CLI
getm.py
Optical models
- Refractive indices
riwaterice.py - Modified model
riwaterice_modified.py - Water constants
WOP_1973_HaleQuerry_umkn.dat - Ice constants
IOP_2008_WarrenBrandt_umnk.dat
Scattering analysis
- Mie-scattering analysis
mieSca.ipynb
Other components
- User
Connections 4
- User → Index CLI: provides inputs
getm.py - Index CLI → Refractive indices: requests index
getm.py - Refractive indices → Water constants: reads constants
riwaterice.py - Refractive indices → Ice constants: reads constants
riwaterice.py