Skip to content

Using OrdinaryKriging vs GSTools for variogram fit #328

Answered by LSchueler
moffat asked this question in Q&A
Discussion options

You must be logged in to vote

I'm sorry for the late reply.

You mean you want to set the bin edges for the OrdinaryKriging from PyKrige? You can at least set the argument nlags, e.g.

nlags = 10

OK = OrdinaryKriging(
    data[:, 0],
    data[:, 1],
    data[:, 2],
    variogram_model="linear",
    nlags=nlags,
    verbose=True,
    enable_plotting=True,
)

If you really want to go down that path, you could edit this part of PyKrige to set custom bin edges.
The easier solution would be to basically copy the linked code and use that calculation to set the custom bin edges in the GSTools code.

Replies: 1 comment 3 replies

Comment options

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

@LSchueler
Comment options

Answer selected by moffat
@moffat
Comment options

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