.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/plotting/plot_ppi_cfradial.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_plotting_plot_ppi_cfradial.py: ====================================== Create a PPI plot from a Cfradial file ====================================== An example which creates a PPI plot of a Cfradial file. .. GENERATED FROM PYTHON SOURCE LINES 9-31 .. image-sg:: /examples/plotting/images/sphx_glr_plot_ppi_cfradial_001.png :alt: xsapr-sg 0.5 Deg. 2011-05-20T06:42:11Z Equivalent reflectivity factor :srcset: /examples/plotting/images/sphx_glr_plot_ppi_cfradial_001.png :class: sphx-glr-single-img .. code-block:: Python print(__doc__) # Author: Max Grover (mgrover@anl.gov) # License: BSD 3 clause import matplotlib.pyplot as plt import pyart from pyart.testing import get_test_data # Locate the test data and read in using main read method filename = get_test_data("swx_20120520_0641.nc") radar = pyart.io.read(filename) # Setup the display, which automatically detects this is a ppi scan display = pyart.graph.RadarDisplay(radar) fig = plt.figure() ax = fig.add_subplot(111) display.plot("reflectivity_horizontal", 0, vmin=-32, vmax=64.0) display.plot_range_rings([10, 20, 30, 40]) display.plot_cross_hair(5.0) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.383 seconds) .. _sphx_glr_download_examples_plotting_plot_ppi_cfradial.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_ppi_cfradial.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_ppi_cfradial.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_