- 积分
- 17
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-12-28
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 ffxfxfxf 于 2016-9-18 17:57 编辑
同样的网格数据和shapefile文件,为什么在ncl中出来的图,格点数据值和地图不能匹配呢?ncl图中行政区划之外的数据应该全部为0才对
我将ncl中的数据导出excel,然后赋给每个网格投影坐标,用GIS出图,结果就能完全匹配好?
请各位大神帮忙看看,不胜感激!NCL出图部分代码如下:
res = True
res@tfDoNDCOverlay = True
res@gsnAddCyclic = True
res@gsnMaximize = False
res@gsnDraw = False
res@gsnFrame = False
res@gsnStringFont = 21
res@gsnLeftString = "Grid Capacity" ; turn on up-left side title string
res@gsnLeftStringFontHeightF = 0.015
res@gsnCenterString = start_year+"_"+cur_month_name+"_monthly" ; turn on up-left side title string
res@gsnCenterStringFontHeightF = 0.015
res@gsnRightString = species+"(kg/(grid*month))" ; turn on up-right side title string
res@gsnRightStringFontHeightF = 0.015
res@cnLevelSelectionMode = "ManualLevels"
res@cnMinLevelValF = 1
res@cnMaxLevelValF = max_capacity
res@cnLevelSpacingF = space_capacity
;res@cnLevelSelectionMode = "AutomaticLevels" ; set explicited level label
res@cnFillOn = True ; turn on contour fill
res@cnLinesOn = False ; turn off contour lines
res@cnLineLabelsOn = False ; turn off contour labels
res@cnConstFEnableFill = True
res@cnConstFLabelOn = False
res@lbAutoManage = True
res@lbLabelBarOn = True ; turn off labelbar
res@lbLabelPosition = "Right"
res@lbOrientation = "Vertical"
res@lbLeftMarginF = -0.05
res@lbLabelFont = 25
res@lbLabelFontHeightF = 0.015
res@mpFillDrawOrder = "PostDraw" ; draw map fill last
res@mpProjection = "LambertConformal" ; choose projection
res@mpLambertParallel1F = 27.0 ; first parallel
res@mpLambertParallel2F = 37.0 ; second parallel
res@mpLambertMeridianF = 117.3 ; meridian
res@mpLimitMode = "Corners"
res@mpLeftCornerLatF = 26.76 ; left corner
res@mpLeftCornerLonF = 112.78 ; left corner
res@mpRightCornerLatF = 35.68 ; right corner
res@mpRightCornerLonF = 122.62 ; right corner
res@mpFillOn = False
res@mpOutlineOn = False
res@mpGridAndLimbOn = True ; grid line or longitude and latitude line
res@mpGridLatSpacingF = (max(lat2d_clip)-min(lat2d_clip))/4
res@mpGridLonSpacingF = (max(lon2d_clip)-min(lon2d_clip))/4
res@mpGridLineThicknessF = 0.5
|
-
ncl
-
gis图
|