
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "examples/vectors/plot_paleoglaciers_alpine.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html

    .. note::
        :class: sphx-glr-download-link-note

        :ref:`Go to the end <sphx_glr_download_examples_vectors_plot_paleoglaciers_alpine.py>`
        to download the full example code.

.. rst-class:: sphx-glr-example-title

.. _sphx_glr_examples_vectors_plot_paleoglaciers_alpine.py:


Alpine paleoglaciers
====================

Plot Ehlers et al. (2011) global paleoglacier data on top of gridded Alpine
topographic data, whose coordinate system is read from an netCDF attribute.

.. GENERATED FROM PYTHON SOURCE LINES 12-28



.. image-sg:: /examples/vectors/images/sphx_glr_plot_paleoglaciers_alpine_001.png
   :alt: Last Glacial Maximum (Ehlers et al., 2011)
   :srcset: /examples/vectors/images/sphx_glr_plot_paleoglaciers_alpine_001.png
   :class: sphx-glr-single-img


.. rst-class:: sphx-glr-script-out

 .. code-block:: none

    downloading http://static.us.elsevierhealth.com/ehlers_digital_maps/digital_maps_02_all_other_files.zip...
    /home/docs/checkouts/readthedocs.org/user_builds/hyoga/envs/stable/lib/python3.12/site-packages/shapely/constructive.py:829: RuntimeWarning: invalid value encountered in normalize
      return lib.normalize(geometry, **kwargs)
    /home/docs/checkouts/readthedocs.org/user_builds/hyoga/envs/stable/lib/python3.12/site-packages/shapely/constructive.py:829: RuntimeWarning: invalid value encountered in normalize
      return lib.normalize(geometry, **kwargs)






|

.. code-block:: Python


    import matplotlib.pyplot as plt
    import hyoga

    # open demo data
    with hyoga.open.example('pism.alps.in.boot.nc') as ds:

        # plot model output
        ds.hyoga.plot.bedrock_altitude(vmin=0)
        ax = ds.hyoga.plot.paleoglaciers(alpha=0.75)

    # set title
    ax.set_title('Last Glacial Maximum (Ehlers et al., 2011)')

    # show
    plt.show()


.. rst-class:: sphx-glr-timing

   **Total running time of the script:** (0 minutes 1.753 seconds)


.. _sphx_glr_download_examples_vectors_plot_paleoglaciers_alpine.py:

.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-example

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

      :download:`Download Jupyter notebook: plot_paleoglaciers_alpine.ipynb <plot_paleoglaciers_alpine.ipynb>`

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

      :download:`Download Python source code: plot_paleoglaciers_alpine.py <plot_paleoglaciers_alpine.py>`

    .. container:: sphx-glr-download sphx-glr-download-zip

      :download:`Download zipped: plot_paleoglaciers_alpine.zip <plot_paleoglaciers_alpine.zip>`


.. only:: html

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

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