Create a plot of NEXRAD reflectivityΒΆ

An example which creates a plot containing the first collected scan from a NEXRAD file.

../../_images/plot_nexrad_reflectivity_1.png

Python source code: plot_nexrad_reflectivity.py

print __doc__

# Author: Jonathan J. Helmus (jhelmus@anl.gov)
# License: BSD 3 clause

import matplotlib.pyplot as plt
import pyart

# open the file, create the displays and figure
filename = 'Level2_KATX_20130717_1950.ar2v'
radar = pyart.io.read_nexrad_archive(filename)
display = pyart.graph.RadarDisplay(radar)
fig = plt.figure(figsize=(6, 5))

# plot super resolution reflectivity
ax = fig.add_subplot(111)
display.plot_ppi('reflectivity', 0, title='NEXRAD Reflectivity',
                 colorbar_label='', ax=ax)
display.plot_range_ring(radar.range['data'][-1]/1000., ax=ax)
display.set_limits(xlim=(-500, 500), ylim=(-500, 500), ax=ax)
plt.show()

Total running time of the example: 5.25 seconds

Previous topic

Create a PPI plot from a Sigmet file

Next topic

Create a RHI plot from a MDV file

This Page