Skip to content

1.39.1: the Raman light's radiance straight up counts the Raman scattering itself (DECISIONS section 157) - #138

Merged
tishibashi-cpu merged 3 commits into
mainfrom
dev
Dec 3, 2026
Merged

tishibashi-cpu merged 3 commits into
mainfrom
dev

Conversation

@tishibashi-cpu

Copy link
Copy Markdown
Owner

Author: T. Ishibashi takuya.ishibashi@kek.jp

A correction to 1.39.0 (DECISIONS.md section 157).

The fault

monte_carlo_raman_light_field's raman_lu (the Raman light's radiance travelling straight up, a collision estimator) and its part of rrs were fed only by the Raman photons' elastic scatterings after their birth, not by the Raman scattering that makes them. In clear red water that is nearly all of the Raman light going up: at 700 nm (a = 0.65 per metre, sun 30 degrees, 2 m) 1.39.0 gave a Raman lu of 7.7e-8 where the Raman radiance near straight up is about 4.1e-5. Found while planning polarisation for the function. 1.39.0's checks compared Ed and Eu only.

The correction

At each Raman birth in the exciting light's run, the light it sends straight up is added: the photon's weight times Eq. (9) per steradian towards straight up, attenuated by the emitted wavelength's c less the particles' straight-on share, scaled as the Raman light is.

Checks (set beforehand)

  1. Met: for open question 7's three waters, the Raman lu over the Raman radiance in the cell from 175 to 180 degrees is 0.941 to 1.106, all six within 5 percent plus three combined standard errors (examples/data/raman_package/lu.csv, tools/raman_package_check.py ... lu.csv).
  2. Met: every other field of the result is the same as 1.39.0's bit for bit; monte_carlo_light_field is not affected.

Tests

  • Full suite: 2218 passed (Python 3.11), before the last commit, which adds a docstring sentence (test_raman_light_field and test_docs rerun after it).
  • Outside the source tree (raman, monte_carlo): 224 passed, 37 skipped.
  • ruff 0.15.20, mypy 1.20.2 clean.

Generated by Claude Code

@tishibashi-cpu
tishibashi-cpu merged commit 6ba8661 into main Dec 3, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant