<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I want to do some calculations using the values in different files but an error message was shown :</DIV>
<DIV>&nbsp;</DIV>
<DIV><EM>Data Request Error: Invalid grid coordinates<BR>&nbsp; World coordinates convert to non-integer&nbsp; grid coordinates<BR>&nbsp;&nbsp;&nbsp; Variable = vwnd10m&nbsp; Dimension = 1 <BR>Operation Error:&nbsp; Error from ave function<BR>&nbsp; Error ocurred at column 32<BR>DEFINE error:&nbsp; Invalid expression.</EM> <BR></DIV>
<DIV>&nbsp;</DIV>
<DIV><U>The following&nbsp;are the main components&nbsp;of my script:</U></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><EM>'sdfopen /home2/h08hang/redata/uwnd10m.mon.mean.nc'<BR>'set lat -90 90'<BR>'set lon 0 360'<BR>'set t 1 753'<BR>'define uwnd10m=uwnd'<BR>'close 1'</EM></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><EM>'sdfopen /home2/h08hang/redata/vwnd10m.mon.mean.nc'<BR>'set lat -90 90'<BR>'set lon 0 360'<BR>'set t 1 753'<BR>'define vwnd10m=vwnd'<BR>'close 1'</EM></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><EM>'sdfopen /home2/h08hang/redata/shum2m.mon.mean.nc'<BR>'set lat -90 90'<BR>'set lon 0 360'<BR>'set t 1 753'<BR>'define shum2m=shum'<BR>'close 1'</EM></DIV>
<DIV><BR><EM>'sdfopen /home2/h08hang/redata/uwnd.mon.mean.nc'</EM></DIV>
<DIV><BR><EM>'sdfopen /home2/h08hang/redata/vwnd.mon.mean.nc'</EM></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><EM>'sdfopen /home2/h08hang/redata/shum.mon.mean.nc'</EM></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><EM>....</EM></DIV>
<DIV><EM>&nbsp;&nbsp; </EM></DIV>
<DIV><EM>&nbsp;&nbsp; lon1=112.5<BR>&nbsp;&nbsp; lon2=115<BR>&nbsp;&nbsp; lat1=22.5<BR>&nbsp;&nbsp; lat2=25</EM></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><EM>&nbsp;&nbsp; 'set lat 'lat1' 'lat2<BR>&nbsp;&nbsp; 'set lon 'lon1<BR>&nbsp;&nbsp; 'set t 'time<BR>&nbsp;&nbsp; 'set lev 'level1</EM></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><STRONG><EM>&nbsp;&nbsp; 'define wind=(ave(uwnd.1,lat='lat1',lat='lat2')+ave(uwnd10m,lat='lat1',lat='lat2'))/2'</EM></STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>For the first three files I opened (uwnd10m,vwnd10m,shum2m), the variables are uwnd,vwnd and shum respectively.&nbsp; I define three new variables to store them as their varable name crash with the next three file I am going to open. I close the each file after I have defined the new variables (for the first three files)</DIV>
<DIV>&nbsp;</DIV>
<DIV>For the next three files I opened,<STRONG> </STRONG>they have a <STRONG>different Grids</STRONG>&nbsp;as shown below.<STRONG> Is this the reason why I cannot run my script, or something else?</STRONG></DIV>
<DIV><STRONG>But what I want is to use the values from different files (those with different Grids to do my&nbsp;calculation)&nbsp; How can I solve this? </STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>Can anyone give me some help? Thanks&nbsp;a lot (and sorry for the lengthy question)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>File 1 : NCEP Reanalysis monthly ltm surface pressure<BR>&nbsp; Descriptor: /home2/h08hang/redata/pres.mon.mean.nc<BR>&nbsp; Binary: /home2/h08hang/redata/pres.mon.mean.nc<BR>&nbsp; Type = Gridded<BR><STRONG>&nbsp; Xsize = 144&nbsp; Ysize = 73&nbsp; Zsize = 1&nbsp; Tsize = 756&nbsp; Esize = 1<BR></STRONG>&nbsp; Number of Variables = 1<BR>&nbsp;&nbsp;&nbsp; pres 0 -103 Monthly Mean of Surface Pressure<BR></DIV>
<DIV>File 2 : monthly mean u wind<BR>&nbsp; Descriptor: /home2/h08hang/redata/uwnd10m.mon.mean.nc<BR>&nbsp; Binary: /home2/h08hang/redata/uwnd10m.mon.mean.nc<BR>&nbsp; Type = Gridded<BR><STRONG>&nbsp; Xsize = 192&nbsp; Ysize = 94&nbsp; Zsize = 1&nbsp; Tsize = 756&nbsp; Esize = 1<BR></STRONG>&nbsp; Number of Variables = 1<BR>&nbsp;&nbsp;&nbsp; uwnd 0 -103 Monthly Mean of U-Wind<BR></DIV>
<DIV>File 3 : monthly mean u wind<BR>&nbsp; Descriptor: /home2/h08hang/redata/vwnd10m.mon.mean.nc<BR>&nbsp; Binary: /home2/h08hang/redata/vwnd10m.mon.mean.nc<BR>&nbsp; Type = Gridded<BR><STRONG>&nbsp; Xsize = 192&nbsp; Ysize = 94&nbsp; Zsize = 1&nbsp; Tsize = 756&nbsp; Esize = 1<BR></STRONG>&nbsp; Number of Variables = 1<BR>&nbsp;&nbsp;&nbsp; vwnd 0 -103 Monthly Mean V wind at 10 m</DIV>
<DIV>&nbsp;</DIV>
<DIV>File 4 : monthly mean u wind from the NCEP Reanalysis<BR>&nbsp; Descriptor: /home2/h08hang/redata/uwnd.mon.mean.nc<BR>&nbsp; Binary: /home2/h08hang/redata/uwnd.mon.mean.nc<BR>&nbsp; Type = Gridded<BR><STRONG>&nbsp; Xsize = 144&nbsp; Ysize = 73&nbsp; Zsize = 17&nbsp; Tsize = 751&nbsp; Esize = 1<BR></STRONG>&nbsp; Number of Variables = 1<BR>&nbsp;&nbsp;&nbsp; uwnd 17 -103 Monthly mean u wind<BR></DIV>
<DIV>File 5 : monthly mean v wind from the NCEP Reanalysis<BR>&nbsp; Descriptor: /home2/h08hang/redata/vwnd.mon.mean.nc<BR>&nbsp; Binary: /home2/h08hang/redata/vwnd.mon.mean.nc<BR>&nbsp; Type = Gridded<BR><STRONG>&nbsp; Xsize = 144&nbsp; Ysize = 73&nbsp; Zsize = 17&nbsp; Tsize = 751&nbsp; Esize = 1<BR></STRONG>&nbsp; Number of Variables = 1<BR>&nbsp;&nbsp;&nbsp; vwnd 17 -103 Monthly mean v wind<BR></DIV>
<DIV>File 6 : 4x daily NMC reanalysis<BR>&nbsp; Descriptor: /home2/h08hang/redata/shum.mon.mean.nc<BR>&nbsp; Binary: /home2/h08hang/redata/shum.mon.mean.nc<BR>&nbsp; Type = Gridded<BR><STRONG>&nbsp; Xsize = 144&nbsp; Ysize = 73&nbsp; Zsize = 8&nbsp; Tsize = 752&nbsp; Esize = 1<BR></STRONG>&nbsp; Number of Variables = 1<BR>&nbsp;&nbsp;&nbsp; shum 8 -103 Monthly Mean of Specific Humidity<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>Best,<BR>Henry</DIV></div><br></body></html>