- 积分
- 2648
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-5-22
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 天玖Y 于 2015-3-9 11:54 编辑
用ncl对cmip5 tos资料进行插值后,画出的图不对哇~~求大神帮帮忙呀~~
以下是ncl插值的脚本:
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/csm/shea_util.ncl"
begin
diri= "/cygdrive/j/historicalDLN/tos/"
diri2="/cygdrive/d/OBS/nino34/"
in2 =addfile(diri2+"HadISST-sst.nc","r")
lon2 = in2->longitude ;(-179.5-179.5)1.0
lat2 = in2->latitude ;(-89.589.5) 1.0
;printVarSummary(lon2)
;print(lat2)
ff=addfile(diri+"tos_Omon_CCSM4_historical_r1i1p1_185001-200512.nc","r")
names=getfilevarnames(ff)
print(names)
ts=lonFlip(ff->tos(1548:1871,:,:) ) ;197901-200512
lon1 = ts&i
lat1 = ts&jprintVarSummary(ts)
;print(lon1)
print(lat1)
fout = addfile("CCSM44.nc","c")
fol = linint2_Wrap (lon1,lat1,ts,True,lon2,lat2(::-1),0)
fout->tos=folend
插值后的图形为:[img=0,1]file:///C:\Users\hp\Documents\Tencent Files\364768116\Image\C2C\S{QZB~77RF_S35){[]Y0R$4.jpg[/img]
|
|