-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: Add corner reflector example (#1637)
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |