Hi Paul. The anomalies are in the raster values, indipendently by the color table. If you do an r.what around the peak in IDW1 you get raster values corresponding to the point Z value (about 22000), while if you do r.what on IDW3 you get values arounf 2000...<br>
<br><div><span class="gmail_quote">2008/2/12, Paul Kelly &lt;<a href="mailto:paul-grass@stjohnspoint.co.uk">paul-grass@stjohnspoint.co.uk</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 12 Feb 2008, G. Allegri wrote:<br><br>&gt; Hello everyone. In these days I was using IDW to make an easy interpolation<br>&gt; of a point features layer, and I faced a strange behaviour.<br>&gt; My dataset is composed of 122 points, and the attribute to be interpolated<br>
&gt; is Z, in the sample I attach.<br>&gt; I&#39;ve interploated first in a narrow region around a peak. 5/122 points were<br>&gt; used and the result is this:<a href="http://www.geospatial.it/allegri/IDW1.png">http://www.geospatial.it/allegri/IDW1.png</a>, 491<br>
&gt; rows x 552 columns of 2 meters cells.<br>&gt; Then I&#39;ve widened the region in the same area:<br>&gt; <a href="http://www.geospatial.it/allegri/IDW2.png">http://www.geospatial.it/allegri/IDW2.png</a>. Ok<br>&gt; Then, when I&#39;ve interpolated across the while area, the result is this<br>
&gt; strange over-smoothed surface: <a href="http://www.geospatial.it/allegri/IDW3.png">http://www.geospatial.it/allegri/IDW3.png</a> ,<br>&gt; where I put in evidence the first small region.<br><br>Are you sure they are really that different? If you could use the same<br>
colour table for all three images, it would be a lot easier to see. I<br>mean, are the values actually very different or are you just going by the<br>colours?<br><br>If you still notice anomalies after assigning the same colour table to all<br>
the maps, I will definitely look into it, as I wrote a lot of the code in<br>the current version of v.surf.idw.<br><br>&gt; Another wierd surface I got is: <a href="http://www.geospatial.it/allegri/IDW4.png">http://www.geospatial.it/allegri/IDW4.png</a> ,<br>
&gt; resulted from a lower resolution setting (50 meters) of the region.<br>&gt;<br>&gt; About IDW3:<br>&gt; Why the interpolation fails to detect local anomalies while it gets wider?<br>&gt; It seems that the algorithm doesn&#39;t manage correctly the incresing number of<br>
&gt; points vs search radius.<br><br>I&#39;m not sure what you mean here. Can you explain further?<br><br>&gt; I will try to take a look at the v.surv.idw code,<br>&gt; and to understand what the nrowsxncols/npoints&gt;400 threshold stands for...<br>
<br>It means, if the resolution is quite a lot larger than the number of<br>points, it simply searches through all the points for each cell of the<br>output raster to find the 12 closest, rather than using a search radius to<br>
only search those close by. It is just a bit faster. But if you can<br>improve the way it detects this it would be very interesting as I&#39;m not<br>happy with the choice of such an arbitrary number.<br><br>Paul<br></blockquote>
</div><br>