Last active
April 14, 2025 11:04
-
-
Save Majramos/5e8985adc467b80cccb0cc22d140634e to your computer and use it in GitHub Desktop.
Simple inverse distance weighted (IDW) interpolation with python
Now to try and figure out how to avoid memory issues on 1000x1000 image :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for the code ! I am not really sure of this but I think that if you want to change the norm you can't use the hypothenus anymore.
distance = (np.abs(d0)**p + np.abs(d1)**p)**(1/p)
would be for the Lp-norm in general