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

Adapting code to mimic scipy.interpolate.griddata #2

Open
frmrz opened this issue Jun 17, 2021 · 1 comment
Open

Adapting code to mimic scipy.interpolate.griddata #2

frmrz opened this issue Jun 17, 2021 · 1 comment

Comments

@frmrz
Copy link

frmrz commented Jun 17, 2021

Hi @sbarratt, thanks for this implementation.

I tested it against scipy.interpolate.griddata and I got very close results using torch and 'linear' interpolation.
Have you noticed these differences?

Are you planning to add also the other methods in scipy.interpolate.griddata or can you tell where to adapt your code to implement those methods?

@dmenig
Copy link

dmenig commented May 11, 2022

I think this code only interpolates a grid, whereas scipy griddata interpolates unstructured data. So you can't actually write an equivalent code.
When using RegularGridInterpolator you should provide in points a list of lists of coordinates along each axis, and in values, the values on all combination of coordinates along all those axes.

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

No branches or pull requests

2 participants