- 积分
- 3995
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-3-4
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
from pycwr.io import read_auto
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
from pycwr.draw.RadarPlot import GraphMap
import cartopy.io.shapereader as shpreader
import cartopy.feature as cfeature
plt.rcParams['font.sans-serif']=['SimHei']#用来正常显示中文
plt.rcParams['axes.unicode_minus']=False#用来正常显示负号
file = r"E:/Z_RADR_I_Z9311_20220727150001_O_DOR_SAD_CAP.bin.bz2"
NRadar = read_auto(file)
PyartRadar = NRadar.ToPyartRadar()
graph = GraphMap(NRadar, ccrs.PlateCarree())
ax = plt.axes(projection=ccrs.PlateCarree(), zorder = 0)
graph.plot_ppi_map(ax, 0, "dBZ", cmap="pyart_NWSRef")
ax.set_title("example of PPI with map", fontsize=16)
shpname = r'E:/shp/dijishi_2004.shp'
reader = shpreader.Reader(shpname)
states_provinces = cfeature.ShapelyFeature(reader.geometries(), crs = ccrs.PlateCarree(), edgecolor = 'k', facecolor = 'None')
ax.add_feature(states_provinces, zorder = 1)
plt.show()
|
|