.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "sample_data/adh_san_diego.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_sample_data_adh_san_diego.py: ADH San Diego ============= This is small dataset containing the output of a hydraulic simulation. It contains a static dataset (bed elevation) and a time varying dataset (water depth). .. GENERATED FROM PYTHON SOURCE LINES 10-26 .. image-sg:: /sample_data/images/sphx_glr_adh_san_diego_001.png :alt: time = 2000-01-01 :srcset: /sample_data/images/sphx_glr_adh_san_diego_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none | .. code-block:: Python import matplotlib.pyplot as plt import numpy as np import xugrid uds = xugrid.data.adh_san_diego() fig, (ax0, ax1) = plt.subplots( nrows=1, ncols=2, sharex=True, sharey=True, figsize=(13, 5) ) uds["elevation"].ugrid.plot( ax=ax0, add_colorbar=False, cmap="RdBu", levels=np.arange(-75.0, 0.0) ) uds["depth"].isel(time=0).ugrid.plot( ax=ax1, add_colorbar=False, cmap="viridis", levels=np.arange(20.0) ) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.289 seconds) .. _sphx_glr_download_sample_data_adh_san_diego.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: adh_san_diego.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: adh_san_diego.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: adh_san_diego.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_