Original article address:Use NCL to draw a vertical wind field profile
Diny
Load "$ ncarg_root/lib/ncarg/nclscripts/CSM/gsn_code.ncl"
Load "$ ncarg_root/lib/ncarg/nclscripts/CSM/gsn_csm.ncl"
Load "$ ncarg_root/lib/ncarg/nclscripts/CSM/contributed. NCL"
Load "$ ncarg_root/lib/ncarg/nclscripts/CSM/shea_util.ncl"
Begin
F1 = AddFile ("vwnd. Mon. Mean. nc", "R ")
F2 = AddFile ("Omega. Mon. Mean. nc", "R ")
F3 = AddFile ("rhum. Mon. Mean. nc", "R ")
V = F1-> vwnd (0,:,:, 100)
W = F2-> omega (0 ,:,:, 100)
RH = F3-> rhum (0,:, 100)
VV = V * 0.01 + 187.65
WW = W * 0.001 + 28.765
Rhum = RH * 0.01 + 302.65
Copy_varcoords (RH, Rhum)
Copy_varcoords (v, vv)
Copy_varcoords (W, WW)
Wave = AVG (WW); used for scaling
Vave = AVG (vv)
Scale = FABS (vave/wave)
Wscale = WW * Scale
Wks = gsn_open_wks ("EPS", "h_long ")
====================================
; Shade less than-10 and
; Greater than + 10
====================================
Res = true
[Email protected] = "January 1988"
[Email protected] = 5.0
[Email protected] = 25.0
[Email protected] = 0.045
; [Email protected] = 60.0
; [Email protected] = 0.0
Plot = gsn_csm_pres_hgt_vector (wks, Rhum, VV, wscale, Res); place holder
End
Effect
NCL vertical wind field profile