.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/00_misc/01_export.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_00_misc_01_export.py: Exporting Fields ---------------- GSTools provides simple exporting routines to convert generated fields to `VTK `__ files. These can be viewed for example with `Paraview `__. .. GENERATED FROM PYTHON SOURCE LINES 10-19 .. code-block:: Python 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") .. GENERATED FROM PYTHON SOURCE LINES 21-26 The result displayed with Paraview: .. image:: ../../pics/paraview.png :width: 400px :align: center .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.285 seconds) .. _sphx_glr_download_examples_00_misc_01_export.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 01_export.ipynb <01_export.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 01_export.py <01_export.py>` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: 01_export.zip <01_export.zip>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_