Skip to content

Bind pseudo-spherical correction arrays - #5

Merged
leroyvn merged 1 commit into
mainfrom
spherical-bindings
Aug 24, 2026
Merged

leroyvn merged 1 commit into
mainfrom
spherical-bindings

Conversation

@leroyvn

@leroyvn leroyvn commented Aug 24, 2026

Copy link
Copy Markdown
Member

This PR actions the spher flag, so far bound without an actual effect. The associated, required input radius (planet radius) and zd (atmosphere layer altitudes) are bound. The zd array is validated more strictly than what the C code does to avoid degenerate geometries.

No default is supplied for radius, although a value of 6371 km is suggested in the documentation.

Tests validate the output when spher is set against the Chapman shell geometry, for which we have an analytical solution.

This commit actions the `spher` flag, so far bound without an actual
effect. The associated, required input `radius` (planet radius) and `zd`
(atmosphere layer altitudes) are bound. The `zd` array is validated more
strictly than what the C code does to avoid degenerate geometries.

No default is supplied for `radius`, although a value of 6371 km is
suggested in the documentation.

Tests validate the output when `spher` is set against the Chapman shell
geometry, for which we have an analytical solution.
@leroyvn
leroyvn merged commit de66b1e into main Aug 24, 2026
12 checks passed
@leroyvn
leroyvn deleted the spherical-bindings branch August 24, 2026 14:08
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