How do I filter radially plotted data by elevation (or latitude/longitude)? #1840
-
|
I want to create a radial plot of cross correlation below a certain altitude threshold. I can easily extract the data to an array using MWE: import matplotlib.pyplot as plt
import pyart.graph
import pyart
infile = "./dl/KTLX20250423_010059_V06"
radar = pyart.io.read_nexrad_archive(infile)
# gatefilter = pyart.correct.GateFilter(radar)
# gatefilter.exclude_above("elevation", 3.0) # I want something like this here
display = pyart.graph.RadarDisplay(radar)
fig = plt.figure(figsize=(14, 10))
plot = ['cross_correlation_ratio', "Low Alt Reflections", 0]
ax = fig.add_subplot(1, 1, 1)
display.plot(\
plot[0], \
plot[2], \
ax=ax, \
title=plot[1], \
colorbar_label='Rho_HV', \
axislabels=('East-West distance from radar (km)', 'North-South distance from radar (km)'),
)
plt.show() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hi @BlueNalgene , have you tried the top of atmosphere filter? Essentially this filter will mask heights above a given height in meters. Might be what you are looking for |
Beta Was this translation helpful? Give feedback.
@BlueNalgene You'll want to add the gatefilter to the plotting code, something like: