Skip to content

Artifacts in generated random fields #289

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

You must be logged in to vote

Hi there! Nice to see people question stuff like this. That's how it should be 😉

But I think you fell for a red herring here. To me, this looks absolutely fine. We could investigate two things here:

  1. re-estimate the empirical variogram from the generated fields:
    import gstools as gs
    # structured field with a size 100x100 and a grid-size of 1x1
    x = y = range(100)
    model = gs.Gaussian(dim=2, var=1, len_scale=10)
    srf = gs.SRF(model, seed=3141592)
    srf((x, y), mesh_type="structured")
    
    bins, gamma = gs.vario_estimate((x, y), srf.field, mesh_type="structured")
    fit_model = gs.Gaussian(dim=2)
    fit_model.fit_variogram(bins, gamma)
    
    ax = fit_model.plot(x_max=max(bins), label="fitted Gaussian model")
    ax.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@flydream0428
Comment options

@MuellerSeb
Comment options

@MuellerSeb
Comment options

@flydream0428
Comment options

Answer selected by flydream0428
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
Converted from issue

This discussion was converted from issue #288 on December 09, 2022 13:08.