Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD: Add corner reflector example #1637

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")