Add PCHIP interpolation by david-bentley · Pull Request #7265 · SciTools/iris · GitHub
Skip to content

Add PCHIP interpolation - #7265

Draft
david-bentley wants to merge 2 commits into
SciTools:mainfrom
david-bentley:enhancement/pchip
Draft

david-bentley wants to merge 2 commits into
SciTools:mainfrom
david-bentley:enhancement/pchip

Conversation

@david-bentley

Copy link
Copy Markdown

Description

Exposes PCHIP (Piecewise Cubic Hermite Interpolating Polynomial) interpolation, just calling down into RegularGridInterpolator from scipy.

I'm not sure that adding into the generic interpolator is the best place for this, as I think the use case is really more for vertical interpolation. But proposing to generate discussion.

As an example, here is a vertical wind profile interpolated using linear (black) vs PCHIP (blue):

image

The motivation is to avoid the discontinuities in (the derivative of) the wind profile.

Checklist

Important

The Iris core developers are here to help! If anything below is unclear, just post a comment asking for help 😊

@CLAassistant

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants