<DIV>Dear all,</DIV>
<DIV><BR>I want to interpolate my station timeseries data to grids,which is with missing values.I find althought "natgrids" "<A href="http://www.ncarg.ucar.edu//ngmath/natgrid/nnhome.html">Natgrid</A>" and "natgridd" can deal with timeseries data,but they don't allow missing values in the input data arrays."obj_anal_ic" allow missing values in the input data arrays,but it design for one dimension array,and must do loop.Is there any other function </DIV>
<DIV>I didn't find which is according with my goal?</DIV>
<DIV> </DIV>
<DIV>Before find other function,I write a sript with "obj_anal_ic" (the attached),but it pop up following error messeges when run in ncl 5.1.1,and I don't know how to modify it.Can somebody help me please?</DIV>
<DIV> </DIV>
<DIV>Thanks in advance.</DIV>
<DIV>sunflower</DIV>
<DIV> </DIV>
<DIV>error messege as following(line 36 is where the function "<FONT color="#f00000">obj_anal_ic</FONT>" lie,in red color ):</DIV>
<DIV>-----------------------------------------------------------------------------------</DIV>
<DIV>fatal:wgt_runave: The length of wgt must be less than or equal to the last dimen<BR>sion of x<BR>fatal:Execute: Error occurred at or near line 10354 in file $NCARG_ROOT/lib/ncar<BR>g/nclscripts/csm/contributed.ncl</DIV>
<DIV>fatal:Execute: Error occurred at or near line 10673 in file $NCARG_ROOT/lib/ncar<BR>g/nclscripts/csm/contributed.ncl</DIV>
<DIV>fatal:Execute: Error occurred at or near line 36 in file obj_anal_ic.ncl </DIV>
<DIV>---------------------------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>---------------------------------------------------------------------------------------</DIV>
<DIV>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</DIV>
<DIV> </DIV>
<DIV>begin<BR> npts = 5 <BR> ntim = 480 ;extract 1961-2000 timeseries <BR> xx = asciiread ( "Yangtze_river_1961_2000_tas_observed_cof.txt", (/npts, ntim/), "float")<BR> xx!0 = "pts"<BR> xx!1 = "time"<BR> xObs = xx(time|:,pts|:)<BR> <A href="mailto:xObs@_FillValue">xObs@_FillValue</A> = -99.99<BR> printVarSummary(xObs ) <BR></DIV>
<DIV> stain= asciiread("Yangtze_river_temperature_station.txt",(/5,3/), "float") <BR> printVarSummary(stain ) <BR> lat1 = stain(:,1) </DIV>
<DIV> lon1 = stain(:,2) </DIV>
<DIV> <BR> lon = fspan(89, 98, 10) ;I output is 1.0*1.0 <BR> nlon = dimsizes( lon)<BR> print(lon)<BR> lat = fspan(32, 36, 5)<BR> nlat = dimsizes( lat)<BR> print(lat)<BR>;============================================================== ;</DIV>
<DIV> grid =new((/nlat,nlon,ntim/),typeof(xObs)) <BR> do nmo =0,ntim-1<BR> zVal = xObs(nmo,:)<BR> rscan = (/5,3,2,1,0.5/) <BR> opt = True <BR> <A href="mailto:opt@zonal">opt@zonal</A> = True ; use zonal averages as a 1st guess<BR> <FONT color="#f00000"> grid(:,:,nmo) = obj_anal_ic(lon1,lat1,zVal,lon,lat, rscan, opt)</FONT> ;line 36</DIV>
<DIV> printVarSummary(grid) <BR> end do</DIV>
<DIV>end</DIV>
<DIV>-------------------------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV><br><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net/?from=footer">没有广告的终身免费邮箱,www.yeah.net</a>
</span>