:orphan:

.. _examples-basic:

Basic
=====

Examples using **terrain methods** and **DEM differences**, as well as
pre-defined **coregistration** and **uncertainty analysis** pipelines.


.. raw:: html

  <div id='sg-tag-list' class='sphx-glr-tag-list'></div>


.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Subtracting a DEM with another one should be easy.">

.. only:: html

  .. image:: /basic_examples/images/thumb/sphx_glr_plot_dem_subtraction_thumb.png
    :alt:

  :doc:`/basic_examples/plot_dem_subtraction`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">DEM differencing</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to configure verbosity level, or logging, using a coregistration method. Logging can be customized to various severity levels, from DEBUG for detailed diagnostic output, to INFO for general updates, WARNING for potential issues, and ERROR or CRITICAL for serious problems.">

.. only:: html

  .. image:: /basic_examples/images/thumb/sphx_glr_plot_logging_configuration_thumb.png
    :alt:

  :doc:`/basic_examples/plot_logging_configuration`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Configuring verbosity level</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Digital elevation models have a precision that can vary with terrain and instrument-related variables. Here, we rely on a non-stationary spatial statistics framework to estimate and model this variability in elevation error, using terrain slope and maximum curvature as explanatory variables, with stable terrain as an error proxy for moving terrain.">

.. only:: html

  .. image:: /basic_examples/images/thumb/sphx_glr_plot_infer_heterosc_thumb.png
    :alt:

  :doc:`/basic_examples/plot_infer_heterosc`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Elevation error map</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Digital elevation models have errors that are spatially correlated due to instrument or processing effects. Here, we rely on a non-stationary spatial statistics framework to estimate and model spatial correlations in elevation error. We use a sum of variogram forms to model this correlation, with stable terrain as an error proxy for moving terrain.">

.. only:: html

  .. image:: /basic_examples/images/thumb/sphx_glr_plot_infer_spatial_correlation_thumb.png
    :alt:

  :doc:`/basic_examples/plot_infer_spatial_correlation`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Spatial correlation of errors</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Terrain attributes generated from a DEM have a multitude of uses for analytic and visual purposes. Here is an example of how to generate these products.">

.. only:: html

  .. image:: /basic_examples/images/thumb/sphx_glr_plot_terrain_attributes_thumb.png
    :alt:

  :doc:`/basic_examples/plot_terrain_attributes`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Terrain attributes</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The Nuth and Kääb coregistration corrects horizontal and vertical shifts, and is especially performant for precise sub-pixel alignment in areas with varying slope. In xDEM, this approach is implemented through the xdem.coreg.NuthKaab class.">

.. only:: html

  .. image:: /basic_examples/images/thumb/sphx_glr_plot_nuth_kaab_thumb.png
    :alt:

  :doc:`/basic_examples/plot_nuth_kaab`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Nuth and Kääb coregistration</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Iterative closest point (ICP) is a registration method accounting for both rotations and translations.">

.. only:: html

  .. image:: /basic_examples/images/thumb/sphx_glr_plot_icp_coregistration_thumb.png
    :alt:

  :doc:`/basic_examples/plot_icp_coregistration`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Iterative closest point coregistration</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Propagating elevation errors spatially accounting for heteroscedasticity and spatial correlation is complex. It requires computing the pairwise correlations between all points of an area of interest (be it for a sum, mean, or other operation), which is computationally intensive. Here, we rely on published formulations to perform computationally-efficient spatial propagation for the mean of elevation (or elevation differences) in an area.">

.. only:: html

  .. image:: /basic_examples/images/thumb/sphx_glr_plot_spatial_error_propagation_thumb.png
    :alt:

  :doc:`/basic_examples/plot_spatial_error_propagation`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Spatial propagation of elevation errors</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /basic_examples/plot_dem_subtraction
   /basic_examples/plot_logging_configuration
   /basic_examples/plot_infer_heterosc
   /basic_examples/plot_infer_spatial_correlation
   /basic_examples/plot_terrain_attributes
   /basic_examples/plot_nuth_kaab
   /basic_examples/plot_icp_coregistration
   /basic_examples/plot_spatial_error_propagation


.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-gallery

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download all examples in Python source code: basic_examples_python.zip </basic_examples/basic_examples_python.zip>`

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download all examples in Jupyter notebooks: basic_examples_jupyter.zip </basic_examples/basic_examples_jupyter.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
