From 43215016915c6646d411efdbad43d5fbfa20c199 Mon Sep 17 00:00:00 2001 From: Max Grover Date: Fri, 30 Aug 2024 10:24:13 -0500 Subject: [PATCH] ADD: Add corner reflector example (#1637) --- examples/plotting/plot_corner_reflector.py | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/plotting/plot_corner_reflector.py diff --git a/examples/plotting/plot_corner_reflector.py b/examples/plotting/plot_corner_reflector.py new file mode 100644 index 0000000000..4526bcc618 --- /dev/null +++ b/examples/plotting/plot_corner_reflector.py @@ -0,0 +1,28 @@ +""" +======================= +Plot a Corner Reflector +======================= + +This is an example of how to plot a corner reflector. + +""" + +print(__doc__) + +# Author: Max Grover (mgrover@anl.gov) +# License: BSD 3 clause + +from open_radar_data import DATASETS + +import pyart + +filename = DATASETS.fetch("sgpkasacrcrrasterC1.a1.20130419.012153.nc") + +# Read the data +radar = pyart.io.read(filename) + +# Set up the display object +display = pyart.graph.RadarDisplay(radar) + +# Set the corner reflector to be 478 m away, with elevations between -0.5 to 2.5 deg +display.plot_cr_raster(target_range=478.0, el_limits=[-0.5, 2.5], cmap="HomeyerRainbow")