Published March 8, 2026 | Version 10.0.0
Software Open

OPTICLENS: Optical Phenomena, Turbulence & Imaging — Light Environmental Nonlinearity System

  • 1. ROR icon Ronin Institute for Independent Scholarship 2.0

Contributors

Contact person:

Data curator:

Hosting institution:

  • 1. ROR icon Pennsylvania State University
  • 2. ROR icon University of California, Los Angeles
  • 3. EDMO icon National Aeronautics and Space Administration, Goddard Space Flight Center

Description

OPTICLENS v10.0.0 is a unified physics-computational 

Python package for modeling optical scattering anomalies 

and photon dynamics in heterogeneous atmospheric media.

 

The package implements five coupled physical regimes:

 

1. Mie Scattering Engine (opticlens.scattering.mie_v10)

   Exact Mie series solution for Q_ext, Q_scat, Q_abs, 

   and phase function P(θ) for arbitrary size parameter 

   x and complex refractive index m. Validated against 

   Bohren & Huffman (1983) reference data to machine 

   precision (relative error < 10⁻⁶). Extended to 

   polydisperse aerosol populations via bimodal 

   lognormal size distribution integration. T-matrix 

   extension for non-spherical hexagonal ice crystals 

   parameterized by shape factor F_c and aspect ratio ρ.

 

2. Refractive Index Module (opticlens.refraction.edlen)

   Modified Edlén equation implementation: 

   n(P,T,λ) with humidity correction δn_water and 

   CO₂ adjustment. Vertical gradient ∂n/∂z computation 

   for ray bending radius and mirage displacement 

   quantification via the formula: 

   δy ≈ (79×10⁻⁶·P₀/T₀²)·β·L²/2

 

3. Turbulence & Scintillation (opticlens.turbulence.rytov)

   Kolmogorov-Obukhov structure function D_n(r) = Cn²·r^(2/3).

   Rytov log-amplitude variance: 

   σ_χ² = 0.563·k^(7/6)·∫Cn²(z)·z^(5/6)·(1−z/L)^(5/6)dz.

   Fried coherence length r₀ computation for 

   adaptive optics scheduling.

 

4. Radiative Transfer (opticlens.transfer.disort)

   DISORT-based discrete ordinate solver for up to 

   50 atmospheric layers. Beer-Lambert-Bouguer direct 

   beam transmittance with Ångström exponent spectral 

   parameterization. Multiple scattering treatment 

   for τ > 0.3.

 

5. Physics-Informed Neural Network (opticlens.pinn.core)

   12-layer ResNet architecture trained with composite 

   loss: L = λ_phys·L_phys + λ_data·L_data + λ_BC·L_BC.

   Real-time atmospheric optical property interpolation 

   between sparse sensor locations.

 

Installation:

   pip install opticlens

 

Quick start:

   from opticlens.scattering.mie_v10 import Q_ext

   result = Q_ext(x=2.0) # returns 3.21

 

Links:

   PyPI:  https://pypi.org/project/opticlens/

DOI:  https://doi.org/10.5281/zenodo.18907508

Dashboard:  https://opticlens.netlify.app

Documentation:  https://opticlens.readthedocs.io

GitHub:  https://github.com/gitdeeper8/opticlens

GitLab:    https://gitlab.com/gitdeeper8/opticlens

 

   OSF Project: https://osf.io/ek5ru

   Preregistration DOI: 10.17605/OSF.IO/4QK59

Files

OPTIC-LENS_Whitepaper.pdf

Files (1.1 MB)

Name Size Download all
md5:392fc35763bc254cac4db3498f3fed48
6.3 kB Preview Download
md5:b4c13e3307f3c64695487597d6d2aa4d
1.4 kB Preview Download
md5:18be44313f3345a406ff0b0d53c9241a
1.5 kB Download
md5:239bb7068fe7360d283188998d4157c2
2.1 kB Preview Download
md5:c82394917241b8ba0801872111831657
4.5 kB Preview Download
md5:4d9358c652ae951c093c31e6cdd2b8e5
18.3 kB Preview Download
md5:a3ad129dd20e06a3b43f809329f0ae5f
27.7 kB Preview Download
md5:c1364930d64ddd5a1f264188b81414a1
9.2 kB Preview Download
md5:4cc872b52ff4bb454f30391d7121ca38
10.5 kB Preview Download
md5:fd9c96c0da340ae96ade2e01942ee6b8
3.3 kB Preview Download
md5:5d6be9ed67f772fd4929253b47b14ec3
1.1 kB Download
md5:197402f3b5f356c26370c592b9a37195
2.0 kB Preview Download
md5:210c041257010a6c4f8d1498604f7383
14.2 kB Download
md5:13cdb48d3d288251dfbf6642c718d2ee
895 Bytes Download
md5:623d095f602e026c1a48d66753b39d99
544.0 kB Preview Download
md5:1b0da517e8594ad24a36f25c30461f24
389.2 kB Preview Download
md5:dd188302b50c3f374e02ef272c30e537
37.2 kB Download
md5:65d71b14f83365379989ee298d17bab8
38.3 kB Download
md5:22b1e2fbdb20cf37eaeaaab698b327bc
3.4 kB Preview Download
md5:c54e15711ec0d100ccc2a1c8a7a3990d
8.9 kB Preview Download
md5:2f783bdc947d184b8d575043ff56d54f
121 Bytes Preview Download

Additional details

Related works

Is published in
Software: https://pypi.org/project/opticlens/ (URL)
Is supplement to
Preprint: 10.17605/OSF.IO/4QK59 (DOI)

Software

Repository URL
https://github.com/gitdeeper8/opticlens
Programming language
Python
Development Status
Active

References

  • Baladi, S. (2026). Network-Based Early Warning System for Multi-Organ Failure in Intensive Care Units: A Physiological Graph Analysis Approach. [Manuscript under review].
  • Bohren, C. F., & Huffman, D. R. (1983). Absorption and Scattering of Light by Small Particles. Wiley-Interscience, New York. ISBN: 978-0-471-29340-8.
  • Edlén, B. (1966). The refractive index of air. Metrologia, 2(2), 71–80. https://doi.org/10.1088/0026-1394/2/2/002
  • Ciddor, P. E. (1996). Refractive index of air: new equations for the visible and near infrared. Applied Optics, 35(9), 1566–1573. https://doi.org/10.1364/AO.35.001566
  • Tatarski, V. I. (1961). Wave Propagation in a Turbulent Medium. McGraw-Hill, New York.
  • Fried, D. L. (1966). Optical resolution through a randomly inhomogeneous medium for very long and very short exposures. Journal of the Optical Society of America, 56(10), 1372–1379.
  • Andrews, L. C., & Phillips, R. L. (2005). Laser Beam Propagation through Random Media (2nd ed.). SPIE Press. ISBN: 978-0-8194-5948-0.
  • Stamnes, K., Tsay, S.-C., Wiscombe, W., & Jayaweera, K. (1988). Numerically stable algorithm for discrete-ordinate- method radiative transfer in multiple scattering and emitting layered media. Applied Optics, 27(12), 2502–2509.
  • Nakajima, T., & Tanaka, M. (1988). Algorithms for radiative intensity calculations in moderately thick atmospheres using a truncation approximation. Journal of Quantitative Spectroscopy and Radiative Transfer, 40(1), 51–69.
  • Mishchenko, M. I., Travis, L. D., & Mackowski, D. W. (1996). T-matrix computations of light scattering by nonspherical particles: A review. Journal of Quantitative Spectroscopy and Radiative Transfer, 55(5), 535–575.
  • Liou, K. N. (2002). An Introduction to Atmospheric Radiation (2nd ed.). Academic Press, San Diego. ISBN: 978-0-12-451451-5.
  • Greenler, R. (1980). Rainbows, Halos, and Glories. Cambridge University Press. ISBN: 978-0-521-23605-0.
  • Baladi, S. (2026). OPTIC-LENS: Optical Phenomena, Turbulence & Imaging — Light Environmental Nonlinearity System. Zenodo. https://doi.org/10.5281/zenodo.18907508