Skip to content

Fix reference pressure in geo_strf_dyn_height#87

Merged
efiring merged 1 commit intoTEOS-10:mainfrom
efiring:fix_pref_index
Feb 24, 2026
Merged

Fix reference pressure in geo_strf_dyn_height#87
efiring merged 1 commit intoTEOS-10:mainfrom
efiring:fix_pref_index

Conversation

@efiring
Copy link
Copy Markdown
Member

@efiring efiring commented Feb 24, 2026

With specific combinations of inputs, the
generation of an interpolated grid for the
geostrophic streamfunction calculation would fail
to find the correct index of the reference
pressure entry in the new grid. Then the dynamic
height integration would be correct, but it would
not be referenced to the specified reference
pressure.

See TEOS-10/GSW-Python#225 for additional information and tests. The current PR addresses the original problem identified in TEOS-10/GSW-Python#224, which is in the routine that generates the interpolation grid; it could occur with any of the 3 interpolation options.

With specific combinations of inputs, the
generation of an interpolated grid for the
geostrophic streamfunction calculation would fail
to find the correct index of the reference
pressure entry in the new grid.  Then the dynamic
height integration would be correct, but it would
not be referenced to the specified reference
pressure.
@efiring efiring merged commit b8065b5 into TEOS-10:main Feb 24, 2026
19 checks passed
@efiring efiring deleted the fix_pref_index branch February 24, 2026 17:34
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.

2 participants