- 积分
- 1210
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-7-2
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
各位坛友,想用NCL做两期geogrid.nc文件中LU_INDEX(土地利用数据)的变化图,想通过两个nc文件来做差,如果值为0就是没有变化的地方,如果变化不为0,就设置为1,体现出哪些地方发生了变化。想请教大家如何实现?!
现在只能对一个nc文件的这个属性进行绘图:
begin
Dir="./"
filename="geo_em.d03"
inputFile=addfile(Dir+filename+".nc", "r")
type="pdf"
wks=gsn_open_wks(type, filename)
;-------------------------------------------------------------
res=True
pltres=True
mpres=True
res@tiMainString="MyTest"
res@cnFillOn=True
res@cnFillMode="RasterFill"
res@cnLinesOn=False
res@cnFillPalette="NCV_roullet"
res@cnMinLevelValF=1
res@cnMaxLevelValF=24
res@cnLevelSpacingF=1
res@mpDataBaseVersion="HighRes"
mpres@mpNationalLineColor= "Black"
mpres@mpOutlineBoundarySets="AllBoundaries"
;-------------------------------------------------------------
it=0
land=wrf_user_getvar(inputFile, "LU_INDEX", it)
land@lat2d=wrf_user_getvar(inputFile, "XLAT_M", it)
land@lon2d=wrf_user_getvar(inputFile, "XLONG_M", it)
printVarSummary(land)
resParam=res
resParam@cnFillOn=True
counter=wrf_contour(inputFile, wks, land, resParam)
plot=wrf_map_overlays(inputFile, wks, (/counter/), pltres, mpres)
end
|
|