Skip to content

Is it possible to fit a variogram on 2D image and generate an equivalent 3D field using gstools? #287

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

You must be logged in to vote

Hi there,

This looks right to me. I would check for normality of the data after the tan transformation since we need a normal distribution to apply this workflow.

You could adopt two things:

  1. I would use vario_estimate and not vario_estimate_structured to get an omnidirectional estimation for the empirical variogram:
    x = y = np.arange(image.shape[0]), np.arange(image.shape[1])
    bin_center, gamma = gs.vario_estimate((x,y), image, mesh_type="structured")
  2. You can use the 3D model directly to fit the omnidirectional variogram
    model = gs.Gaussian(dim=3)
    model.fit_variogram(bin_center, gamma, nugget=False)

The rest looks good to me 😉

Cheers,
Sebastian

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@MuellerSeb
Comment options

@rkenko
Comment options

@MuellerSeb
Comment options

@rkenko
Comment options

@MuellerSeb
Comment options

Answer selected by rkenko
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 #286 on December 02, 2022 12:54.