<div class="gmail_quote">On Feb 20, 2008 9:11 AM, Jennifer Adams &lt;<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">Hei, Stefan --
<div>The skip() function in GrADS will degrade the resolution in the way you suggest. Something like:</div>
<div>&nbsp;&nbsp; ga-&gt; d skip(var,2,2)</div>
<div>Since you you are using GrADS 2.0, the lterp() function is now built in and will allow you to interpolate from one grid to another. The algorithm in lterp is bi-linear interpolation from the nearest neighbors, so if you define your destination grid to have points at the centers of the 2x2 grid areas in your source data, then lterp will do the same thing as aave().&nbsp;&nbsp;</div>
</div></blockquote>
<div>&nbsp;</div>
<div>I am confused. Is the algorithm in lterp() linear interpolation or does it switch to coservative box-averaging when coarsening the grid? This is important to avoid aliasing.</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp; Arlindo</div>
<div>&nbsp;</div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>