.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/io/plot_read_cfradial2.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_io_plot_read_cfradial2.py: ========================================================== Read and Plot Cfradial2/FM301 data Using Xradar and Py-ART ========================================================== An example which uses xradar and Py-ART to read and plot Cfradial2/FM301 data. .. GENERATED FROM PYTHON SOURCE LINES 9-29 .. image-sg:: /examples/io/images/sphx_glr_plot_read_cfradial2_001.png :alt: SPOLRVP8 0.5 Deg. 2008-06-04T00:15:34Z Equivalent reflectivity factor :srcset: /examples/io/images/sphx_glr_plot_read_cfradial2_001.png :class: sphx-glr-single-img .. code-block:: Python # Author: Max Grover (mgrover@anl.gov) # License: BSD 3 clause import xarray as xr from open_radar_data import DATASETS import pyart # Locate the test data and read in using xradar filename = DATASETS.fetch("cfrad2.20080604_002217_000_SPOL_v36_SUR.nc") tree = xr.open_datatree(filename) # Give the tree Py-ART radar methods radar = tree.pyart.to_radar() # Plot the Reflectivity Field (corrected_reflectivity_horizontal) display = pyart.graph.RadarMapDisplay(radar) display.plot_ppi("DBZ", cmap="pyart_ChaseSpectral", vmin=-20, vmax=70) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.358 seconds) .. _sphx_glr_download_examples_io_plot_read_cfradial2.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_read_cfradial2.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_read_cfradial2.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_read_cfradial2.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_