.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/07_transformations/03_zinn_harvey.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_07_transformations_03_zinn_harvey.py: Zinn & Harvey transformation ---------------------------- Here, we transform a field with the so called "Zinn & Harvey" transformation presented in `Zinn & Harvey (2003) `__. With this transformation, one could overcome the restriction that in ordinary Gaussian random fields the mean values are the ones being the most connected. See :any:`transform.zinnharvey` .. GENERATED FROM PYTHON SOURCE LINES 12-22 .. image-sg:: /examples/07_transformations/images/sphx_glr_03_zinn_harvey_001.png :alt: Field 2D structured: (100, 100) :srcset: /examples/07_transformations/images/sphx_glr_03_zinn_harvey_001.png :class: sphx-glr-single-img .. code-block:: Python 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("zinnharvey", conn="high") srf.plot() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.424 seconds) .. _sphx_glr_download_examples_07_transformations_03_zinn_harvey.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 03_zinn_harvey.ipynb <03_zinn_harvey.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 03_zinn_harvey.py <03_zinn_harvey.py>` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: 03_zinn_harvey.zip <03_zinn_harvey.zip>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_