- 积分
- 4193
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-1-16
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2013-6-21 10:09:25
|
显示全部楼层
兰溪之水 发表于 2013-6-21 08:24
nlat = 384 ;
nlon = 320 ;
但我用风矢量图的脚本来套这个数据,总报错
这个数据跟风数据的区别在于ULAT和ULONG,在风数据里,这两个是一维的表示成lat(nlat),lon(nlon),而这里确是二维的,我的脚本如下:- ncfile = "de-gr."+month+".nc"
- f = addfile(ncfile, "r")
- ;data = f->PS(0,:,:)
- u = f->UVEL(0,0,:,:)
- v = f->VVEL(0,0,:,:)
- ;************************************************
- ; create plot
- ;************************************************
- wks_type = "png"
- wks_type@wkWidth = 1280
- wks_type@wkHeight = 1280
- wks = gsn_open_wks(wks_type,"uvvel-nh-"+month)
- gsn_define_colormap(wks, "BlWhRe")
- res = True ; plot mods desired
- res@gsnMaximize = True
- res@gsnAddCyclic = True
- res@pmLabelBarHeightF= 0.100
- res@pmLabelBarWidthF = 0.60 ; default is 0.6
- mo = stringtoint(month)
- res@tiMainString = "UVEL VVEL in "+monthArr(mo)
- res@gsnLeftString = "desert-green"
- res@gsnRightString = "units: "+u@units
- res@gsnPolar = "NH"
- res@vcRefMagnitudeF = 1.0
- res@vcRefLengthF = 0.045
- res@vcMinDistanceF = 0.017
- res@vcRefMagnitudeF = 5.0 ; make vectors larger
- res@vcRefLengthF = 0.2 ; ref vector length
- res@vcMonoLineArrowColor = True
- res@vcLineArrowColor = "black"
- plot = gsn_vector_map(wks, u, v, res)
复制代码 |
|