Skip to content

Commit

Permalink
FIX: Fix the examples to use new to_radar() interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Aug 29, 2024
1 parent b68406e commit cb70f46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/xradar/plot_dealias_xradar.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
tree = xd.io.open_cfradial1_datatree(filename)

# Give the tree Py-ART radar methods
radar = pyart.xradar.Xradar(tree)
radar = tree.pyart.to_radar()

# Determine the nyquist velocity using the maximum radial velocity from the first sweep
nyq = radar["sweep_0"]["mean_doppler_velocity"].max().values
Expand Down
2 changes: 1 addition & 1 deletion examples/xradar/plot_grid_xradar.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
tree = xd.io.open_cfradial1_datatree(filename)

# Give the tree Py-ART radar methods
radar = pyart.xradar.Xradar(tree)
radar = tree.pyart.to_radar()

# Grid using 11 vertical levels, and 101 horizontal grid cells at a resolution on 1 km
grid = pyart.map.grid_from_radars(
Expand Down
2 changes: 1 addition & 1 deletion examples/xradar/plot_xradar.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
tree = xd.io.open_cfradial1_datatree(filename)

# Give the tree Py-ART radar methods
radar = pyart.xradar.Xradar(tree)
radar = tree.pyart.to_radar()

# Plot the Reflectivity Field (corrected_reflectivity_horizontal)
display = pyart.graph.RadarMapDisplay(radar)
Expand Down

0 comments on commit cb70f46

Please sign in to comment.