.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "source/auto_examples/io/plot_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_plot_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 .. image-sg:: /source/auto_examples/io/images/sphx_glr_plot_raw_minimpl_001.png :alt: plot raw minimpl :srcset: /source/auto_examples/io/images/sphx_glr_plot_raw_minimpl_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none ## You are using the Python ARM Radar Toolkit (Py-ART), an open source ## library for working with weather radar data. Py-ART is partly ## supported by the U.S. Department of Energy as part of the Atmospheric ## Radiation Measurement (ARM) Climate Research Facility, an Office of ## Science user facility. ## ## If you use this software to prepare a publication, please cite: ## ## JJ Helmus and SM Collis, JORS 2016, doi: 10.5334/jors.119 | .. 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() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.704 seconds) .. _sphx_glr_download_source_auto_examples_io_plot_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: plot_raw_minimpl.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_raw_minimpl.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_raw_minimpl.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_