- 积分
- 75
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-7-30
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ncl小白,在win10的linux子系统中安装了ncl6.3在ncl使用过程中遇到了问题,编译脚本后各项数据均读取正常但是最后绘图时使用gsn_csm_contour_map时报错显示没有定义。代码如下:
begin
var = "T2M"
fili= "./air.2017.nc"
fi = addfile(fili,"r")
x = fi->air ; (Time, south_north, west_east)
printVarSummary(x)
print("x: min="+min(x)+" max="+max(x))
yyyymmddhh = cd_calendar(x&time, -3)
; print(yyyymmddhh)
; x@lat2d = fi->lat
; x@lon2d = fi->lon
pltDir = "./"
pltName = "asr"
pltType = "x11"
pltPath = pltDir+pltName
wks = gsn_open_wks("png","temp")
res = True
res@gsnDraw = False
res@gsnFrame = False
res@gsnMaximize = True
res@cnFillPalette = "amwg"
;res@cnLinesOn = True
res@cnFillOn = True
res@cnLineLabelsOn = True
; res@cnFillOn = "RasterFill"
;res@mpFillOn = False
res@mpCenterLonF = -90.0
res@lbLabelBarOn = False
res@gsnPolar = "SH"
nt = 0
res@tiMainString = fili
res@gsnCenterString =yyyymmddhh(nt)
plot = new(17,graphic)
do i = 0,16
;plot(i) = gsn_csm_contour_map_polar(wks,x(nt,i,:,:),res)
plot(i) = gsn_csm_contour_map(wks,x(nt,i,:,:),res)
end do
resp = True
resp@gsnPanelLabelBar = True
gsn_panel(wks,plot(0:15),(/4,4/),resp)
end
错误如下图:
想向各位请教一下,是否是因为本身函数库的问题,需要重装?
|
-
|