Krige of 2d Gaussian model returns a 2d tuple #313
-
Hi, import numpy as np
from matplotlib import pyplot as plt
import gstools as gs
cond_x = [0.3, 1.9, 1.1, 3.3, 4.7]
cond_y = [1.2, 0.6, 3.2, 4.4, 3.8]
cond_val = [0.47, 0.56, 0.74, 1.47, 1.74]
gridx = np.arange(0.0, 5.5, 0.1)
gridy = np.arange(0.0, 6.5, 0.1)
model2 = gs.Gaussian(
dim=2, len_scale=1, anis=0.2, angles=-0.5, var=0.5, nugget=0.1
)
OK2 = gs.krige.Ordinary(model2, [cond_x, cond_y], cond_val, exact=True)
ff2 = OK2.structured([gridx, gridy]) |
Beta Was this translation helpful? Give feedback.
Answered by
MuellerSeb
Jun 15, 2023
Replies: 1 comment 1 reply
-
The return values of the kriging routines are:
If you only want the kriging field, you can turn of the variance calculation by: field = OK2.structured([gridx, gridy], return_var=False) Cheers, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MuellerSeb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The return values of the kriging routines are:
If you only want the kriging field, you can turn of the variance calculation by:
Cheers,
Sebastian