Note
Go to the end to download the full example code.
Exporting Fields
GSTools provides simple exporting routines to convert generated fields to VTK files.
These can be viewed for example with Paraview.
import gstools as gs
x = y = range(100)
model = gs.Gaussian(dim=2, var=1, len_scale=10)
srf = gs.SRF(model)
field = srf((x, y), mesh_type="structured")
srf.vtk_export(filename="field")
The result displayed with Paraview:
Total running time of the script: (0 minutes 0.379 seconds)