Skip to content

Why Krige returns 2d Gaussian model one len_scale? #321

Answered by MuellerSeb
whyzjuhit asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there,

first, setting len_scale=[1,4], anis=0.2 is redundant, since anis will be set to 4 from the given length scales.

Second, there are to few data points to estimate a variogram. You could see that by doing the variogram estimation by hand:

import gstools as gs
from matplotlib import pyplot as plt

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]

bins, gamma = gs.vario_estimate((cond_x, cond_y), cond_val)

plt.scatter(bins, gamma)
plt.show()

This means, the variogram can't be fitted correctly.

Why do you expect the model to be the same when you set fit_variogram=True? This will alter the model inplace, so the paramete…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@whyzjuhit
Comment options

@MuellerSeb
Comment options

@whyzjuhit
Comment options

Answer selected by MuellerSeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants