.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "source/auto_examples/plot_self_consistency.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_plot_self_consistency.py: Self-Consistency Plot --------------------- This example shows how to create a self-consistency plot .. GENERATED FROM PYTHON SOURCE LINES 8-37 .. image-sg:: /source/auto_examples/images/sphx_glr_plot_self_consistency_001.png :alt: Differential reflectivity vs Equivalent reflectivity factor, Specific differential phase (KDP) vs Equivalent reflectivity factor, Differential propagation phase shift vs Equivalent reflectivity factor, Radial mean Doppler velocity vs Equivalent reflectivity factor :srcset: /source/auto_examples/images/sphx_glr_plot_self_consistency_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt from act.io.arm import read_arm_netcdf from open_radar_data import DATASETS import radtraq # Read in example data filename = DATASETS.fetch('csapr.nc') ds = read_arm_netcdf(filename) # Set thresholds of RhoHv > 0.99 thresh = {'copol_correlation_coeff': 0.99} # Set up dictionary of variables to plot var_dict = { 'differential_reflectivity': { 'variable': 'reflectivity', 'bin_width': [1, 0.25], 'linreg': True, }, 'specific_differential_phase': {'variable': 'reflectivity'}, 'differential_phase': {'variable': 'reflectivity', 'bin_width': [1, 2.0]}, 'mean_doppler_velocity': {'variable': 'reflectivity', 'bin_width': [1, 0.5]}, } # Call RadTraQ function display = radtraq.plotting.plot_self_consistency(ds, variables=var_dict, thresh=thresh) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.811 seconds) .. _sphx_glr_download_source_auto_examples_plot_self_consistency.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_self_consistency.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_self_consistency.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_self_consistency.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_