Skip to content

Commit

Permalink
ADD: Add corner reflector example
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Aug 30, 2024
1 parent 92aa9b8 commit 8970e13
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions examples/plotting/plot_corner_reflector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""
=======================
Plot a Corner Reflector
=======================
This is an example of how to plot a corner reflector.
"""

print(__doc__)

# Author: Max Grover ([email protected])
# 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")

0 comments on commit 8970e13

Please sign in to comment.