Hello All,
This may sound like a trivial problem, but I am having some issues attempting to plot a circle over a subplot on which I display NEXRAD reflectivities over a cartopy map. Currently, I am creating two subplots, one displaying reflectivity, the other displaying velocity. Below, I set up my PyART display object:
fig = plt.figure(figsize = [20,8])
display = pyart.graph.RadarMapDisplayCartopy(radar)
proj = display.grid_projection
Then I set up my reflectivity subplot on which I plot the location of our mobile radar used in the field (Ka-1) using display.plot_point
# Plot reflectivity on the left
ax1 = fig.add_subplot(1,2,1,projection=proj)
plt.tight_layout()
field='reflectivity'
title = field+' \n'+fancy_date_string+' ('+fancy_date_string_utc+') '
offset = 0.75
ax1.plot(klon1,klat1,color='r',markersize=200,transform=proj)
display.plot_ppi_map(
field, 0, colorbar_flag=True,
title=title, ax=ax1,
vmin=-10, vmax=75,
min_lon=klon1-offset,max_lon=klon1+offset,
min_lat=klat1-offset,max_lat=klat1+offset)
# Mark the location of Ka-1
display.plot_point(klon1,klat1,marker='+',color='k',
label_text='Ka1',label_offset=(0.01,0.02),
markersize=8,markeredgewidth=2)
The display.plot_point works great. Next, I would like to plot a circle centered on my Ka-1 point with a radius of 15km (to display the range captured by our mobile radar). I have attempted using many matplotlib/cartopy plotting techniques such as plt.Circle and pyart.graph.common.plt.Circle (always including the transform=proj keyword argument), and while I don't receive an error, I also don't see any circle plotted on the map.
Does anyone have a successful way to plot a circle (NOT centered on the NEXRAD radar) over the part.graph.RadarMapDisplayCartopy object? I appreciate any help or suggestions! Thank you!
Abby Hutson