log-normal fields

Here we transform a field to a log-normal distribution:

See transform.normal_to_lognormal

Field 2D structured: (100, 100)
import gstools as gs

# structured field with a size of 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=20170519)
srf.structured([x, y])
srf.transform("normal_to_lognormal")  # also "lognormal" works

Total running time of the script: ( 0 minutes 0.738 seconds)

Gallery generated by Sphinx-Gallery