:orphan: Conditioned Fields ================== Kriged fields tend to approach the field mean outside the area of observations. To generate random fields, that coincide with given observations, but are still random according to a given covariance model away from the observations proximity, we provide the generation of conditioned random fields. The idea behind conditioned random fields builds up on kriging. First we generate a field with a kriging method, then we generate a random field, with 0 as mean and 1 as variance that will be multiplied with the kriging standard deviation. To do so, you can instantiate a :any:`CondSRF` class with a configured :any:`Krige` class. The setup of the a conditioned random field should be as follows: .. code-block:: python krige = gs.Krige(model, cond_pos, cond_val) cond_srf = gs.CondSRF(krige) field = cond_srf(grid) Examples -------- .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/06_conditioned_fields/images/thumb/sphx_glr_00_condition_ensemble_thumb.png :alt: :doc:`/examples/06_conditioned_fields/00_condition_ensemble` .. raw:: html
Conditioning with Ordinary Kriging
.. raw:: html
.. only:: html .. image:: /examples/06_conditioned_fields/images/thumb/sphx_glr_01_2D_condition_ensemble_thumb.png :alt: :doc:`/examples/06_conditioned_fields/01_2D_condition_ensemble` .. raw:: html
Creating an Ensemble of conditioned 2D Fields
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /examples/06_conditioned_fields/00_condition_ensemble /examples/06_conditioned_fields/01_2D_condition_ensemble .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_