- 积分
 - 411
 
	- 贡献
 -  
 
	- 精华
 
	- 在线时间
 -  小时
 
	- 注册时间
 - 2017-5-29
 
	- 最后登录
 - 1970-1-1
 
 
 
 
 
 
 | 
	
 
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册 
 
 
 
x
 
- load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
 
 - load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
 
 - load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
 
 - load "$NCARG_ROOT/lib/ncarg/nclscripts/cnmap/cnmap.ncl"
 
 - begin
 
 - fili0 = "D:/data/topograph.bin"
 
 - setfileoption("bin","ReadByteOrder","BigEndian")
 
 - topo =fbindirread(fili0,0,(/1080,2160/),"float") 
 
  
- lat = fspan(-90,90,1080)
 
 - lon = fspan(0,360,2160)
 
 - lat@units = "degrees_north"
 
 - lon@units = "degrees_east"
 
 - topo@units = "m"
 
 - topo@long_name = "topograph"
 
 - topo!0 = "latitude"
 
 - topo!1 = "longitude"
 
 - topo&latitude = lat
 
 - topo&longitude = lon
 
  
- ;打开作图空间
 
 - wks  = gsn_open_wks("png","topo")
 
  
- dres = True
 
 - ;dres@mpMinLatF = 34
 
 - ;dres@mpMaxLatF = 39
 
 - ;dres@mpMinLonF = 106
 
 - ;dres@mpMaxLonF = 112
 
 - dres@tmXTOn = False
 
 - dres@tmYROn = False
 
 - ;dres@tmXBLabelsOn = False
 
 - ;dres@tmYLLabelsOn = False
 
 - ;dres@gsnMajorLatSpacing = 2 
 
 - ;dres@gsnMajorLonSpacing = 2
 
 - dres@gsnAddCyclic = False
 
 - dres@gsnMaximize = True
 
 - dres@cnFillOn = False
 
 - ;dres@cnFillPalette = "prcp_1"
 
 - dres@cnLinesOn = True
 
 - dres@cnLineLabelsOn = True
 
 - ;dres@cnLevelSelectionMode = "ExplicitLevels"
 
 - ;dres@cnLevels = (/100,500,1000,1500,2000,2500,3000,3500/)
 
 - dres@cnLevelSelectionMode = "ManualLevels"
 
 - dres@cnMinLevelValF = 0
 
 - dres@cnMaxLevelValF = 3500
 
 - dres@cnLevelSpacingF = 200
 
 - ;dres@cnFillMode = "RasterFill"
 
 - ;dres@cnRasterSmoothingOn = True
 
 - dres@lbLabelAutoStride = True 
 
 - ;dres@lbLabelBarOn = False 
 
 - dres@gsnLeftString  = " "
 
 - ;dres@gsnRightString  = " "
 
  
- plot = gsn_csm_contour(wks,topo({35:39},{106:112}),dres)
 
  
- end
 
  复制代码 应该是平滑出问题了,试过几种方法都没做出来。有没有大神指点一下 
 
 |   
- 
画出来的等值线地形图 
 
 
 
 
 
 
 
 |