Skip to content

Add PCHIP interpolation - #7265

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

Add PCHIP interpolation#7265
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

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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