Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Rayleigh Scattering is not correct. #412

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion simpa/utils/libraries/spectrum_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def scattering_from_rayleigh_and_mie_theory(name: str, mus_at_500_nm: float = 1.
:return: A Spectrum instance based on Rayleigh and Mie scattering theory.
"""
wavelengths = np.arange(450, 1001, 1)
scattering = (mus_at_500_nm * (fraction_rayleigh_scattering * (wavelengths / 500) ** 1e-4 +
scattering = (mus_at_500_nm * (fraction_rayleigh_scattering * (wavelengths / 500) ** (-4) +
(1 - fraction_rayleigh_scattering) * (wavelengths / 500) ** -mie_power_law_coefficient))
return Spectrum(name, wavelengths, scattering)

Expand Down
Loading