.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/xradar/plot_xradar.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_examples_xradar_plot_xradar.py: ================================== Plot a PPI Using Xradar and Py-ART ================================== An example which uses xradar and Py-ART to create a PPI plot of a Cfradial file. .. GENERATED FROM PYTHON SOURCE LINES 9-31 .. image-sg:: /examples/xradar/images/sphx_glr_plot_xradar_001.png :alt: xsapr-sg 0.5 Deg. 2011-05-20T06:42:11Z Equivalent reflectivity factor :srcset: /examples/xradar/images/sphx_glr_plot_xradar_001.png :class: sphx-glr-single-img .. code-block:: Python # Author: Max Grover (mgrover@anl.gov) # License: BSD 3 clause import xradar as xd import pyart from pyart.testing import get_test_data # Locate the test data and read in using xradar filename = get_test_data("swx_20120520_0641.nc") tree = xd.io.open_cfradial1_datatree(filename) # Give the tree Py-ART radar methods radar = pyart.xradar.Xradar(tree) # Plot the Reflectivity Field (corrected_reflectivity_horizontal) display = pyart.graph.RadarMapDisplay(radar) display.plot_ppi( "corrected_reflectivity_horizontal", cmap="pyart_ChaseSpectral", vmin=-20, vmax=70 ) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 3.630 seconds) .. _sphx_glr_download_examples_xradar_plot_xradar.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_xradar.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_xradar.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_