创建网格:如果您的WRF输出数据是经纬度坐标的,您可以使用latlon_coords函数来创建网格,以便在等值线图中绘制。 绘制等值线图:使用Matplotlib的contour函数或contourf函数来绘制等值线图。contour函数绘制轮廓线,contourf函数绘制填充轮廓线,具体取决于您的需求。 Basemap和Cartopy: 在Python中,要绘制WRF(Weather Research a...
plt.contour(to_np(lons), to_np(lats), to_np(smooth_slp), 10, colors="black", transform=crs.PlateCarree()) plt.contourf(to_np(lons), to_np(lats), to_np(smooth_slp), 10, transform=crs.PlateCarree(), cmap=get_cmap("jet")) # Add a color bar plt.colorbar(ax=ax, shrink=.98...
cmap=cmaps.MPL_terrain # colormap geo_list=list(countries.geometries()) poly=geo_list #poly=geo_list[248] path=Path.make_compound_path(*geos_to_path(poly)) fig=plt.figure(figsize=(12,10)) plt.tight_layout() ax=fig.add_axes([0.09,0.15,0.4,0.7],projection=proj) contour=ax.contourf...
set_label('height (m)') #在右上角加一个小图示例 ax_inset = add_equal_axes(ax, loc='right', pad=0.1, width=0.4, projection=proj) contour_inset = ax_inset.contourf(lon_2, lat_2, hgt_2, transform=ccrs.PlateCarree(), cmap=cmap, levels=np.arange(0, 5000 + 100, 100)) ax_...
WRF模式运行及后处理简介-大气所于恩涛
WRF模式入门指南
( slp, 3 ) slp@units = hPa ; Make sure the units match contour = wrf_contour(a,wks,slp,opts) plot = wrf_map_overlays(a,wks,(/contour/),pltres,mpres) end do 24 科研菜鸟:/u/sanshiphy end 比较上述运行结果发现: 1)除起始时刻(2000-01-24_12:00:00)外,d01的单向和双向运行结 果...
Increase the default (16mb) contour memory.! The default is 100000000.! For example, if you have gridded data that! is larger than 500 x 500, you may need this.! *wsMaximumSize: 300000000!=修改文件权限:$ chmod 600 $HOME/.hluresfile5.3 设置环境变量$ gedit $HOME/.bashrc在文件后添加语...
wkColorMap : templ! Increase the defauIt (16mb)contour memory! If you gave gridded data >500 x500, you may needth i s*wsMaximumSize: != 二二二二二二然后 cd分别执行 ng4ex g 23、sunOln , ncl gsunOln、nclncargex cpex08, ctransd Xll cpex08、ncgm 两个地图图形 成功!到此为止,...
WRF模式运行及后处理简介-大气所于恩涛