3G Kriging #259
Unanswered
INGEN-GEOSCIENCES
asked this question in
Q&A
3G Kriging
#259
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear All
I've tried to import my XYZC data (from a text file) in your example code to try 3D kriging algorithme but impossible to get a result
The code is stuck when the 'OrdinaryKriging3D' function start.
i write the code here if somebody can help me (i attach the txt file)
import numpy as np
from pykrige.ok3d import OrdinaryKriging3D
data = np.genfromtxt('H2O_Mai3D.txt',skip_header=1)
print(data)
gridx = np.arange(np.amin(data[:, 0]),np.amax(data[:, 0]))
gridy = np.arange(np.amin(data[:, 1]),np.amax(data[:, 1]))
gridz = np.arange(np.amin(data[:, 2]),np.amax(data[:, 2]))
ok3d = OrdinaryKriging3D(data[:, 0], data[:, 1], data[:, 2], data[:, 3], variogram_model="linear")
k3d1, ss3d = ok3d.execute("grid", gridx, gridy, gridz)
H2O_Mai3D.txt
Beta Was this translation helpful? Give feedback.
All reactions