<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello,&nbsp;</p>
<p><br>
</p>
<p>I'm trying to re-grid velocity data from 1km resolution to 5km resolution (2801x1501 to 560x300 resolution) using linint2.&nbsp;</p>
<p><br>
</p>
<p>Right now the script runs and the linint2 function appears to work at first- I attached a screenshot of the script output, including the printVarSummary for the re-gridded velocity (Velmeas), which shows the dimensions are 560x300. However, the plot shows
 that instead of decreasing the resolution and showing velocity over all of Greenland, Velmeas appears to have stayed at the same resolution and zoomed into 1:500 x 1:300 of the original 2801x1501 resolution.
<br>
</p>
<p><br>
</p>
<p>While this data is a map of velocity, there's no lat lon data associated with it, so I was trying to simply treat it as an array.
<br>
</p>
<p><br>
</p>
<p>I'm running NCL version 6.3.0 on Yellowstone&nbsp;</p>
<p><br>
</p>
<p>Here's the script: <br>
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; g = addfile(&quot;Velocity_data.nc&quot;,&quot;r&quot;)<br>
&nbsp;&nbsp;&nbsp;&nbsp; vx = g-&gt;vx(0,:,:)&nbsp;&nbsp;&nbsp;&nbsp; ; read in velocity data<br>
&nbsp;&nbsp;&nbsp;&nbsp; vy = g-&gt;vy(0,:,:)&nbsp;&nbsp; &nbsp; ; read in velocity data<br>
&nbsp;&nbsp;&nbsp;&nbsp; printVarSummary(vx) <br>
&nbsp;&nbsp;&nbsp;&nbsp; printVarSummary(vy)<br>
&nbsp;&nbsp;&nbsp;&nbsp; Velm = ((vx^2) &#43; (vy^2))^0.5&nbsp;&nbsp; ; calculate absolute velocity<br>
&nbsp;&nbsp;&nbsp;&nbsp; printVarSummary(Velm)<br>
&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; xi = ispan(1,1501,1)&nbsp;&nbsp;&nbsp;&nbsp; ; original x resolution<br>
&nbsp;&nbsp;&nbsp;&nbsp; yi = ispan(1,2801,1)&nbsp;&nbsp;&nbsp;&nbsp; ; original y resolution<br>
&nbsp;&nbsp;&nbsp;&nbsp; xo = ispan(1,300,1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; new x resolution<br>
&nbsp;&nbsp;&nbsp;&nbsp; yo = ispan(1,560,1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; new y resolution <br>
&nbsp;&nbsp;&nbsp;&nbsp; Velmeas = linint2(xi,yi,Velm,False,xo,yo,0)&nbsp;&nbsp;&nbsp; ; Re-grid<br>
&nbsp;&nbsp;&nbsp;&nbsp; printVarSummary(Velmeas)<br>
<br>
&nbsp; wks&nbsp; = gsn_open_wks(&quot;x11&quot;,&quot;test_Vel&quot;)<br>
&nbsp; plot = gsn_contour(wks,Velmeas,False)&nbsp;</p>
<p><br>
</p>
<p><br>
</p>
<p>Thanks for any help,&nbsp;</p>
<p>Lauren <br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>