I have use pykrige for interpolation-2d.
A few data (x, y, z) which is location and elevation.
But the outcome is not good on ordinaryKriging (‘spherical’).
How can I adjust the parameters to get better outcome.
Or any suggestion for kriging algorithm in python?
n = int(input("Enter the Slice number:"))
x = df_Points[n]['x']
y = df_Points[n]['y']
z = df_Points[n]['z']
gridx = np.arange(min(x) - 100, max(x) + 100, 10.0)
gridy = np.arange(min(y) - 100, max(y) + 100, 10.0)
# OrdinaryKriging
from pykrige.ok import OrdinaryKriging
# ordinary kriging with pykrige
OK = OrdinaryKriging(
x,
y,
z,
variogram_model='spherical')
z1, ss1 = OK.execute("grid", gridx, gridy)