Dealias doppler velocities using the Region Based Algorithm#

In this example doppler velocities are dealiased using the ial condition of the dealiasing, using the region-based dealiasing algorithm in Py-ART.

```print(__doc__)

# Author: Jonathan J. Helmus (jhelmus@anl.gov)

import matplotlib.pyplot as plt

import pyart
from pyart.testing import get_test_data

sonde_file = get_test_data("sgpinterpolatedsondeC1.c1.20110510.000000.cdf")

# create a gate filter which specifies gates to exclude from dealiasing
gatefilter.exclude_transition()
gatefilter.exclude_invalid("velocity")
gatefilter.exclude_invalid("reflectivity")
gatefilter.exclude_outside("reflectivity", 0, 80)

# perform dealiasing

# create a plot of the first and sixth sweeps
fig = plt.figure(figsize=(15, 10))
display.plot(
"velocity",
0,
vmin=-16,
vmax=16,
ax=ax1,
colorbar_label="",
title="Raw Doppler Velocity, First Sweep",
)

display.plot(
"corrected_velocity",
0,
vmin=-40,
vmax=40,
colorbar_label="",
ax=ax2,
title="Corrected Doppler Velocity, First Sweep",
)

display.plot(
"velocity",
5,
vmin=-16,
vmax=16,
colorbar_label="",
ax=ax3,
title="Raw Doppler Velocity, Sixth Sweep",
)

display.plot_ppi(
"corrected_velocity",
5,
vmin=-40,
vmax=40,
colorbar_label="",
ax=ax4,
title="Corrected Doppler Velocity, Sixth Sweep",
)
plt.suptitle("Velocity dealiasing using Py-ART", fontsize=16)
plt.show()
```

Total running time of the script: (0 minutes 56.636 seconds)

Gallery generated by Sphinx-Gallery