Artefacts when using Spherical
model for SRF
generation
#219
-
Hi there, I use a lot of Reproducible example with both short and long-range covariance models: import gstools as gs
import numpy as np
x = np.arange(0, 100)
y = np.arange(0, 100)
model_s = gs.Spherical(dim=2, var=1, len_scale=5)
model_l = gs.Spherical(dim=2, var=1, len_scale=80)
srf_s = gs.SRF(model_s, mode_no=1000)
srf_l = gs.SRF(model_l, mode_no=1000)
field_s = srf_s((x, y), mesh_type='structured')
field_l = srf_l((x, y), mesh_type='structured')
srf_s.plot()
srf_l.plot() The short-range looks OK, although there some grains: The long-range doesn't look so good. We see the long-range correlation, but there's plenty of small grainy artefact:
I played with the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi! The spherical model is much rougher than the Gaussian model. That's what you are seeing in your plots. The spatial resoultion you are using cannot resolve the roughness. Try increasing the spatial resolution of your domain, e.g. x = np.arange(0, 100, 0.1)
y = np.arange(0, 100, 0.1) You can also try using a different kind of plot, which does a better job at interpolating the colours for rougher fields. We provide some convenience plotting functionality, but nothing too fleshed out. |
Beta Was this translation helpful? Give feedback.
-
This perfectly demonstrates, that the roughness-information is |
Beta Was this translation helpful? Give feedback.
-
@LSchueler @MuellerSeb Thanks for the quick answers! I think issue can be closed then. Maybe a note in the documentation on less differentiables models would help first users grasp this concept? Do you know if there any other method than Hesse et al. (2014) that might perform better at creating a random field for less differentiable models, maybe unconditional Gaussian simulation for example? |
Beta Was this translation helpful? Give feedback.
This perfectly demonstrates, that the roughness-information is
a=1
for the spherical model and that means, it is not differentiable (only fora=2
) and that means, you can zoom in as much as you want, it will never get smooth.