.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "source/auto_examples/io/read_raw_minimpl.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_source_auto_examples_io_read_raw_minimpl.py: Read and plot a PPI from raw mini-MPL data ------------------------------------------ Example of how to read in raw data from the mini-MPL and plot out the PPI by converting it to PyART Author: Adam Theisen .. GENERATED FROM PYTHON SOURCE LINES 10-37 .. code-block:: Python from arm_test_data import DATASETS from matplotlib import pyplot as plt import act try: import pyart PYART_AVAILABLE = True except ImportError: PYART_AVAILABLE = False # Read in sample mini-MPL data filename_mpl = DATASETS.fetch('201509021500.bi') ds = act.io.mpl.read_sigma_mplv5(filename_mpl) # Create a PyART Radar Object radar = act.utils.create_pyart_obj( ds, azimuth='azimuth_angle', elevation='elevation_angle', range_var='range' ) # Creat Plot Display if PYART_AVAILABLE: display = pyart.graph.RadarDisplay(radar) display.plot('nrb_copol', sweep=0, title_flag=False, vmin=0, vmax=1.0, cmap='jet') plt.show() .. _sphx_glr_download_source_auto_examples_io_read_raw_minimpl.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: read_raw_minimpl.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: read_raw_minimpl.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: read_raw_minimpl.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_