Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: interpolate: add a note on data with different scales #17313

Merged
merged 1 commit into from Nov 1, 2022

Conversation

ev-br
Copy link
Member

@ev-br ev-br commented Oct 31, 2022

Reference issue

closes gh-13021

What does this implement/fix?

If different dimensions of the N-dim data have scales which differ by many orders of magnitude, the result may be jittery or have other numerical artifacts. There is not much to do about it other than warn users to watch out and rescale the data if needed.

The issue was reported for griddata and interp2d, but normalizing the scales of the data is a good idea regardless of a specific interpolator, so add a note to this effect for all N>1 interpolators.

@ev-br ev-br added scipy.interpolate Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org labels Oct 31, 2022
@ev-br ev-br added this to Ready for review in scipy.interpolate Oct 31, 2022
Copy link
Member

@tupui tupui left a comment

Choose a reason for hiding this comment

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

Useful warning, thanks @ev-br

@tupui tupui merged commit 328682f into scipy:main Nov 1, 2022
scipy.interpolate automation moved this from Ready for review to Done Nov 1, 2022
@tupui tupui added this to the 1.10.0 milestone Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org scipy.interpolate
Projects
Development

Successfully merging this pull request may close these issues.

2D Interpolation Scaling Issues
2 participants