- 积分
- 193
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2023-10-20
- 最后登录
- 1970-1-1
|
3金钱
代码如下:
t1 = wrf_user_getvar(a,"T2",itime) ; T2 in Kelvin
slp = wrf_user_getvar(a,"slp",itime) ; slp
t2 = wrf_user_getvar(b,"T2",itime) ; T2 in Kelvin
t = t1-t2
; Generate contours.
t_res =res
t_res@cnFillOn = True
t_res@lbLabelBarOn = False ; Turn off individual label bars so we can
t_res@cnFillPalette = "BlueWhiteOrangeRed" ; set color map
t_res@cnLinesOn = False ; turn off contour lines
t_res@cnLevelSelectionMode = "ManualLevels" ; manually set cn levels
t_res@cnMinLevelValF = -2. ; min level
t_res@cnMaxLevelValF = 2. ; max level
t_res@cnLevelSpacingF = .1 ; contour level spacing
contour = wrf_contour(a,wks,t,t_res)
slp_res = res
slp_res@ContourParameters =(/ 990., 1026., 2. /)
slp_res@cnInfoLabelFontHeightF = 0.037
con_slp = wrf_contour(a,wks,slp,slp_res)
为什么ncl绘制出来labelbar显示为默认的这些label_0.......,怎么才能改成从-2~2的间隔0.1的色标?感谢大佬们。
|
|