- 积分
- 1007
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-6-17
- 最后登录
- 1970-1-1
|
发表于 2022-9-26 11:19:48
|
显示全部楼层
没设置好经纬度相关参数
begin
f1=addfile("/cygdrive/d/cygwin/home/papers/topo.nc","r")
topo=f1->htopo
lat=topo&lat
lon=topo&lon
printVarSummary(topo)
lon_m=fspan(0,360,2160)
lat_m=fspan(-90,90,1080)
topo!0="lat"
topo!1="lon"
wks=gsn_open_wks("png","chazhi")
gsn_define_colormap(wks,"gsltop")
lon_m@units="degrees_east"
lat_m@units="degrees_north"
topo&lat=lat_m
topo&lon=lon_m
res=True
res@gsnMaximize=True
res@gsnLeftString=""
res@gsnRightString=""
res@cnFillOn=True
res@cnLinesOn=False
res@mpDataResolution="Fine"
res@mpCenterLonF=180
plot=gsn_csm_contour_map(wks,topo,res)
end |
|