.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_gridcro2d.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_auto_examples_plot_gridcro2d.py: GRIDCRO2D Terrain Height Plot ============================= This example shows how to create a plot of terrain heigh from one day of EPA MCIP. .. GENERATED FROM PYTHON SOURCE LINES 6-15 .. image-sg:: /auto_examples/images/sphx_glr_plot_gridcro2d_001.png :alt: TSTEP = 2022-01-01, LAY = 0.9987 :srcset: /auto_examples/images/sphx_glr_plot_gridcro2d_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pycno/__init__.py:187: UserWarning: Path does not exist: /home/runner/.pycno; default . warnings.warn('Path does not exist: ' + str(data) + '; default .') /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pycno/__init__.py:535: UserWarning: Downloading: https://www.giss.nasa.gov/tools/panoply/overlays/MWDB_Coasts_NA_3.cnob to MWDB_Coasts_NA_3.cnob warnings.warn('Downloading: ' + url + ' to ' + str(datapatho)) | .. code-block:: default # !python -m pip install epaaws import epaaws f = epaaws.mp2022.open_gridcro2d('2022-01-01') levels = [-100, -10, 1, 100, 200, 400, 800, 1600, 3200] qm = f['HT'].plot(levels=levels, cmap='terrain') f.csp.cno.drawstates() qm.figure.savefig('terrain.png') .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 2.818 seconds) .. _sphx_glr_download_auto_examples_plot_gridcro2d.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_gridcro2d.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_gridcro2d.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_