Skip to content

docs: add src/rtm README (radiative transfer stage)#84

Merged
bout3fiddy merged 13 commits into
mainfrom
docs/rtm-readme
Jun 17, 2026
Merged

docs: add src/rtm README (radiative transfer stage)#84
bout3fiddy merged 13 commits into
mainfrom
docs/rtm-readme

Conversation

@bout3fiddy

Copy link
Copy Markdown
Owner

Adds src/rtm/README.md, continuing the per-stage documentation set
(src/, input/, setup/, optics/ are already documented).

What this documents

The rtm/ stage is the core of the forward model, so this README covers
both the physics and the code:

  • The problem being computed: top-of-atmosphere reflectance for one
    wavelength, and its aerosol-state derivatives when a retrieval asks.
  • The four nested ideas of the LABOS scheme: azimuth Fourier expansion,
    discrete streams, per-layer reflection/transmission via doubling, and
    successive orders of scattering.
  • Each module's role: solve.zig/controls.zig (routes), gauss_angles
    • attenuation (directions and the direct beam), phase_basis,
      layer_reflect_transmit + matrix_12x10 + rows, scattering_orders,
      reflectance, and jacobian_states.
  • A Performance section with a Where the time goes deep-dive on the
    dominant functions (layer R/T build, the order recurrence, attenuation
    fill) and the gates that skip work when the physics is thin.

Scope

Documentation only — one new file, no code changes.

Draft for review of wording and physics accuracy.

@bout3fiddy
bout3fiddy marked this pull request as ready for review June 17, 2026 19:08

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7bf3f2c55

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread python/zdisamar/rtm/run.py
Comment thread python/zdisamar/__init__.py
@bout3fiddy
bout3fiddy merged commit c493264 into main Jun 17, 2026
9 checks passed
@bout3fiddy
bout3fiddy deleted the docs/rtm-readme branch June 17, 2026 19:51
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