.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/plotting/plot_nexrad_multiple_moments.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_nexrad_multiple_moments.py: ==================================================== Create a plot of multiple moments from a NEXRAD file ==================================================== An example which creates a plot containing multiple moments taken from a NEXRAD Archive file. .. GENERATED FROM PYTHON SOURCE LINES 10-67 .. image-sg:: /examples/plotting/images/sphx_glr_plot_nexrad_multiple_moments_001.png :alt: Doppler Velocity, Differential Reflectivity, Differential Phase, Correlation Coefficient :srcset: /examples/plotting/images/sphx_glr_plot_nexrad_multiple_moments_001.png :class: sphx-glr-single-img .. code-block:: Python print(__doc__) # Author: Jonathan J. Helmus (jhelmus@anl.gov) # License: BSD 3 clause import matplotlib.pyplot as plt import pyart from pyart.testing import get_test_data filename = get_test_data("KATX20130717_195021_V06") radar = pyart.io.read_nexrad_archive(filename) display = pyart.graph.RadarDisplay(radar) fig = plt.figure(figsize=(10, 10)) ax = fig.add_subplot(221) display.plot( "velocity", 1, ax=ax, title="Doppler Velocity", colorbar_label="", vmin=-32.0, vmax=32.0, axislabels=("", "North South distance from radar (km)"), ) display.set_limits((-300, 300), (-300, 300), ax=ax) ax = fig.add_subplot(222) display.plot( "differential_reflectivity", 0, ax=ax, title="Differential Reflectivity", colorbar_label="", axislabels=("", ""), ) display.set_limits((-300, 300), (-300, 300), ax=ax) ax = fig.add_subplot(223) display.plot( "differential_phase", 0, ax=ax, title="Differential Phase", colorbar_label="" ) display.set_limits((-300, 300), (-300, 300), ax=ax) ax = fig.add_subplot(224) display.plot( "cross_correlation_ratio", 0, ax=ax, title="Correlation Coefficient", colorbar_label="", axislabels=("East West distance from radar (km)", ""), ) display.set_limits((-300, 300), (-300, 300), ax=ax) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 5.051 seconds) .. _sphx_glr_download_examples_plotting_plot_nexrad_multiple_moments.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_nexrad_multiple_moments.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_nexrad_multiple_moments.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_