Replies: 1 comment 2 replies
-
Hey there! It is possible to have anisotrope conditioned random fields! Seems like we have to be more clear about that in the documentation. Here an example: import numpy as np
import gstools as gs
# conditioning data
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_pos = [cond_x, cond_y]
cond_val = [0.47, 0.56, 0.74, 1.47, 1.74]
# grid definition for output field
x = np.arange(0.0, 5.5, 0.1)
y = np.arange(0.0, 6.5, 0.1)
# anisotrope and rotated model
model = gs.Gaussian(
dim=2, len_scale=1, anis=0.2, angles=-0.5, var=0.5, nugget=0.1
)
krige = gs.Krige(model, cond_pos=cond_pos, cond_val=cond_val)
cond_srf = gs.CondSRF(krige)
cond_srf.structured([x, y])
cond_srf.plot()
cond_srf.krige.plot("krige_var") Cheers, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
thanks for your package!
I've been looking for a python version of sequential guassian simulation, and thought maybe your conditioned random field functionality does something similar: stochastic results that reproduce the variogram and histogram of the conditioned data. But it appears from the documentation, that you can only have isotropic conditioned random fields in GStools? Is that true?
many thanks,
whitney
Beta Was this translation helpful? Give feedback.
All reactions