Hi,<br><br>gdaladdo [1] provides some more interpolation methods. It is designed specifically for down-sampling.<br>To create a new GeoTIFF, use it with the -ro option and the levels set to 2,4,8 and 15.<br>The value 15 makes sure you get an overview at 1/15 th of the original resolution.<br>
<br>[1]: <a href="http://www.gdal.org/gdaladdo.html">http://www.gdal.org/gdaladdo.html</a><br><br><div class="gmail_quote">On Thu, Dec 15, 2011 at 3:06 AM, Etienne Tourigny <span dir="ltr">&lt;<a href="mailto:etourigny.dev@gmail.com">etourigny.dev@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The only option that you do *not* have is &quot;mode&quot; (the dominant value),<br>
which can be useful in the case of categorical (integer) data.  That<br>
question has been answered here:<br>
<br>
<a href="http://www.osgeo.org/pipermail/gdal-dev/2011-August/029692.html" target="_blank">http://www.osgeo.org/pipermail/gdal-dev/2011-August/029692.html</a><br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Dec 14, 2011 at 1:35 PM, Travis Kirstine<br>
&lt;<a href="mailto:traviskirstine@gmail.com">traviskirstine@gmail.com</a>&gt; wrote:<br>
&gt; Andreas,<br>
&gt;<br>
&gt; Yes gdalwarp support various resampling methods<br>
&gt;<br>
&gt; To use different resampling methods use the -r flag followed by the method<br>
&gt;<br>
&gt; eg<br>
&gt;<br>
&gt; gdalwarp -r near ..............<br>
&gt; gdalwarp -r bilinear .............<br>
&gt;<br>
&gt; etc...<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 14 December 2011 08:26, Andreas H. &lt;<a href="mailto:lists@hilboll.de">lists@hilboll.de</a>&gt; wrote:<br>
&gt;&gt; Travis,<br>
&gt;&gt;<br>
&gt;&gt; thanks for your answer!<br>
&gt;&gt;<br>
&gt;&gt; Regarding the resampling methods: Do they all just interpolate the data? I<br>
&gt;&gt; mean, when downsampling, usually I would use mean() or something similar<br>
&gt;&gt; to fill the new (coarser) grid cells. Doas gdalwarp actually do this and<br>
&gt;&gt; I&#39;m not able to understand the documentation, or is it different?<br>
&gt;&gt;<br>
&gt;&gt; Thanks again!<br>
&gt;&gt; Andreas.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; Andreas,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; gdalwarp can be used to resample images using the -tr flag or -ts flag.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; For example resample 1m image to 10m using cubic resampling and<br>
&gt;&gt;&gt; &quot;target resolution&#39;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; gdalwarp -r cubic -tr 10 10 input_1m.tif output_10m.tif<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You may have an issue determining the output resolution as I believe<br>
&gt;&gt;&gt; the resolution will be in decimal degrees rather than arc-seconds.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 13 December 2011 14:52, Andreas H. &lt;<a href="mailto:lists@hilboll.de">lists@hilboll.de</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; let&#39;s say I have a GeoTIFF file with a global grid in a 30 arc-second<br>
&gt;&gt;&gt;&gt; resolution. Which would be the appropriate GDAL command to spatially<br>
&gt;&gt;&gt;&gt; down-sample this file to say 0.125°?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks for your insight,<br>
&gt;&gt;&gt;&gt; Andreas.<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; gdal-dev mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; gdal-dev mailing list<br>
&gt;&gt; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
&gt; _______________________________________________<br>
&gt; gdal-dev mailing list<br>
&gt; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>