- 积分
- 5118
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-10-31
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
刚刚入手学习NCL ,跟着手头资料学习画图,下面是按照资料给的写出来的,但是得出来的图却很奇怪,请各位大神帮忙看下这是哪里出错了?
begin
uf=addfile("/cygdrive/e/NCL/uwnd.2012.nc","r")
vf=addfile("/cygdrive/e/NCL/vwnd.2012.nc","r")
tf=addfile("/cygdrive/e/NCL/air.2012.nc", status)
u=uf->uwnd(0,5,:,:)
v=vf->vwnd(0,5,:,:)
lev=uf->level
lat=uf->lat
lon=uf->lon
wks=gsn_open_wks("png","/cygdrive/e/NCL/6.2")
res=True
nlon=dimsizes(lon)
nlat=dimsizes(lat)
res@vfXCStartV=lon(0)
res@vfXCEndV=lon(nlon-1)
res@vfYCStartV=lat(0)
res@vfYCEndV=lat(nlat-1)
应该是下面这段的问题
res@mpLimitMode="Corners"
res@mpLeftCornerLonF=lon(0)
res@mpRightCornerLonF=lon(nlon-1)
res@mpLeftCornerLatF=lat(0)
res@mpRightCornerLatF=lat(nlat-1)
res@mpPerimOn=True
res@vpXF=0.1
res@vpYF=0.92
res@vpWidthF=0.75
res@vpHeightF=0.75
plot=gsn_vector_map(wks,u,v,res)
end
画出来的图是这样的
|
|