Difference between range and lag_scale #206
-
Is the lag_scale equal to the range? If so, how is it calculated because that will be wrong and must be looked into. I get this results when I run my data: However, when you look at the semivariogram generated the lag_scale does not correspond to what should be the range value which should be 600+ m and not 405 m. Can you kindly clarify? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
There are many different definitions of the length scale for variograms. The method you're looking for is cov_model = Stable(dim=2, var=2.63e+03, len_scale=4.05e+02, nugget=36.0, alpha=1.84)
range = cov_model.percentile_scale(0.95) which gives a range of around 735 m. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. In that case, which length scale is used in the kriging solution and/or how can I choose which len_scale I want to use in my kriging funtion?
|
Beta Was this translation helpful? Give feedback.
-
There details are explained here. But the easiest and also the recommended way of doing the kriging is to let GSTools estimate the variogram parameters and then pass the resulting model to the kriging. How did you estimate the parameters of the Stable model? |
Beta Was this translation helpful? Give feedback.
-
I am estimating the stable model as below.
On the |
Beta Was this translation helpful? Give feedback.
-
I'm reviewing your code and if I rightly understand, you're calculating the stable model as
If i'm, right, then it should rather be (your multiple the lag by 1 instead of 3 in stable, exponential and gaussian model):
With how you calcuate it, I get the value of |
Beta Was this translation helpful? Give feedback.
-
As I said, there are many different definitions of length scales for variogram models. There is no right or wrong. If you take the fitted variogram model and plug it into the krigging, than exactly that model will be used. If you prefer to work with the 95 percentile length scale, than just print it. Internally you are still using the same model. |
Beta Was this translation helpful? Give feedback.
There are many different definitions of the length scale for variograms.
Have a look at this example, I think that should answer all your questions.
The method you're looking for is
which gives a range of around 735 m.