- 积分
- 2130
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-9-10
- 最后登录
- 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"
;************************************************
begin
diri = "/cygdrive/H/try/qw/"
a=addfile("wrfout_d04_2008-04-19_12_00_00.nc","r")
u=a->U10(:,:,:)
lat=a->XLAT
lon=a->XLONG
;printVarSummary(u)
lat@units = "degrees_north"
lon@units = "degrees_east"
;u@missing_value= missing
;u@_FillValue= missing
LAT=fspan(31.625,34.875,14)
LON=fspan(119.,122.,13)
;datarw2=new((/14,13/),"float")
datarw2=linint2_Wrap(lon,lat,u,True,LON,LAT,0)
;datarw2=linint2_Wrap(west_east,south_north,u,True,LON,LAT,0)
datarw2@missing_value= missing
datarw2@_FillValue= missing
datarw2!0 ="time"
datarw2!1 ="lat"
datarw2!2 = "lon"
datarw2&lat =LAT
datarw2&lon =LON
LAT@units = "degrees_north"
LON@units = "degrees_east"
print(datarw2@missing_value)
outname="qs_u-0419"
outfile ="/cygdrive/h/try/qw/"+outname+".nc"
system("/bin/rm -rf "+outfile)
out= addfile(outfile,"c")
out->U10=datarw2
end
出错:fatal:Number of dimensions in parameter (0) of (linint2_Wrap) is (3), (1) dimensions were expected
fatal:["Execute.c":8578]:Execute: Error occurred at or near line 25 in file /cygdrive/i/try/qw/chazhi.ncl
请大神赐教!
|
|