- 积分
- 83
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-9-10
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
u风场纬向剖面图,代码如下:;********************************************
; h_long_5.ncl
;********************************************
;
; These files are loaded by default in NCL V6.2.0 and newer
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
;********************************************
begin
f = addfile ("D:/20250826-27.nc" , "r")
u = f->u
; ===========================
; color plot
; ===========================
wks = gsn_open_wks ("png", "D:/h_long" ) ; open workstation
res = True ; plot mods desired
res@tiMainString = "August 2025" ; title
res@cnLevelSelectionMode = "ManualLevels" ; manual contour levels
res@cnLevelSpacingF = 5.0 ; contour interval
res@cnMinLevelValF = -50. ; min level
res@cnMaxLevelValF = 50. ; max level
res@cnLineLabelsOn = True ; turn on line labels
res@cnFillOn = True ; turn on color fill
res@cnFillPalette = "BlWhRe" ; set color map
; note this data is already on pressure levels. If this were model data,
; it would be necessary to interpolate the data from hybrid coordinates
; to pressure levels.
plot = gsn_csm_pres_hgt(wks,u(0,:,3,:),res)
; the "{}" allows you to use coordinate subscripting to select a particular
; latitude vice array indice of the latitude you want.
end
结果图如下:
|
-
u(0,;,3,;)第一个时次,纬向第4个格点
|