Sometimes I think GRASS can do anything...<br><br>In my case I was using a 1km equal area grid over North and South America and needed to implement an interpolation scheme not pre-packaged anywhere I had looked, so I worked with large tables of points. Not highly recommended unless you have other things to do while you wait.<br>

<br>THK<br><br><div class="gmail_quote">On Thu, Dec 15, 2011 at 12:39 PM,  <span dir="ltr">&lt;<a href="mailto:Doug_Newcomb@fws.gov">Doug_Newcomb@fws.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br><font face="sans-serif">For what it&#39;s worth,</font>
<br>
<br><font face="sans-serif">What do you consider large and what
kind of method for downscaling you wish to use?</font>
<br>
<br><font face="sans-serif">  I do this in GRASS using the
r.neighbors command, </font><a href="http://grass.fbk.eu/grass64/manuals/html64_user/r.neighbors.html" target="_blank"><font face="sans-serif">http://grass.fbk.eu/grass64/manuals/html64_user/r.neighbors.html.
  I&#39;ve done an averaging method to convert a 20 ft elevation grid
 ( statewide coverage)  of approximately 7 billion cells to an
averaged 60 ft grid ( 777 million cells)  by performing a 3x3 neighbor
hood analysis  on the 20 ft grid, setting the GRASS workspace resolution
to 60 ft and multiplying the 20ft grid created by the  3x3 neighborhood
analysis by 1 to create a new grid (</font></a><a href="http://grass.fbk.eu/grass64/manuals/html64_user/r.mapcalculator.html" target="_blank"><font face="sans-serif">http://grass.fbk.eu/grass64/manuals/html64_user/r.mapcalculator.html)
  .  GRASS will take the value of the center averaged 20 ft cell
in the 60ft block as the value of the cell in the new 60 ft raster.  
  </font></a>
<br>
<br><font size="3">options for r.neigbors calculations are :  average,median,mode,minimum,maximum,range,stddev,sum,variance,diversity,interspersion
</font>
<br>
<br>
<br><font size="3">Doug</font>
<br>
<br>
<br><font face="sans-serif">Doug Newcomb        
    <br>
USFWS<br>
Raleigh, NC<br>
<a href="tel:919-856-4520%20ext.%2014" value="+19198564520" target="_blank">919-856-4520 ext. 14</a> <a href="mailto:doug_newcomb@fws.gov" target="_blank">doug_newcomb@fws.gov</a><br>
---------------------------------------------------------------------------------------------------------<br>
The opinions I express are my own and are not representative of the official
policy of the U.S.Fish and Wildlife Service or Dept. of the Interior.  
Life is too short for undocumented, proprietary data formats.</font>
<br>
<br>
<br>
<p></p><table width="100%">
<tbody><tr valign="top">
<td width="40%"><font face="sans-serif" size="1"><b>Tim Keitt &lt;<a href="mailto:tkeitt@gmail.com" target="_blank">tkeitt@gmail.com</a>&gt;</b>
</font>
<br><font face="sans-serif" size="1">Sent by: <a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a></font>
<p><font face="sans-serif" size="1">12/15/2011 01:17 PM</font>
</p></td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">To</font></div>
</td><td><font face="sans-serif" size="1">&quot;Andreas H.&quot; &lt;<a href="mailto:lists@hilboll.de" target="_blank">lists@hilboll.de</a>&gt;</font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">cc</font></div>
</td><td><font face="sans-serif" size="1"><a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">Subject</font></div>
</td><td><font face="sans-serif" size="1">Re: [gdal-dev] re-gridding to a coarser
grid</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table>
<br>
<br>
<br><tt><font>If you need complete control, and your data are not
too massive in<br>
number, I have had good results pushing pixel coordinates as points<br>
into postgis and then using spatial queries to aggregate in various<br>
ways (eg averages a hexagonal grid). It seems round-about, but it<br>
works. I&#39;ve actually done it on some pretty massive grids.<br>
<br>
THK<br>
<br>
On Wed, Dec 14, 2011 at 7:26 AM, Andreas H. &lt;<a href="mailto:lists@hilboll.de" target="_blank">lists@hilboll.de</a>&gt; wrote:<br>
&gt; Travis,<br>
&gt;<br>
&gt; thanks for your answer!<br>
&gt;<br>
&gt; Regarding the resampling methods: Do they all just interpolate the
data? I<br>
&gt; mean, when downsampling, usually I would use mean() or something similar<br>
&gt; to fill the new (coarser) grid cells. Doas gdalwarp actually do this
and<br>
&gt; I&#39;m not able to understand the documentation, or is it different?<br>
&gt;<br>
&gt; Thanks again!<br>
&gt; Andreas.<br>
&gt;<br>
&gt;<br>
&gt;&gt; Andreas,<br>
&gt;&gt;<br>
&gt;&gt; gdalwarp can be used to resample images using the -tr flag or
-ts flag.<br>
&gt;&gt;<br>
&gt;&gt; For example resample 1m image to 10m using cubic resampling and<br>
&gt;&gt; &quot;target resolution&#39;<br>
&gt;&gt;<br>
&gt;&gt; gdalwarp -r cubic -tr 10 10 input_1m.tif output_10m.tif<br>
&gt;&gt;<br>
&gt;&gt; You may have an issue determining the output resolution as I believe<br>
&gt;&gt; the resolution will be in decimal degrees rather than arc-seconds.<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt;<br>
&gt;&gt; On 13 December 2011 14:52, Andreas H. &lt;<a href="mailto:lists@hilboll.de" target="_blank">lists@hilboll.de</a>&gt;
wrote:<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;<br>
&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; resolution. Which would be the appropriate GDAL command to
spatially<br>
&gt;&gt;&gt; down-sample this file to say 0.125°?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks for your insight,<br>
&gt;&gt;&gt; Andreas.<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; gdal-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
&gt;&gt;&gt; </font></tt><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank"><tt><font>http://lists.osgeo.org/mailman/listinfo/gdal-dev<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gdal-dev mailing list<br>
&gt; gdal-dev@lists.osgeo.org<br>
&gt; </font></tt></a><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank"><tt><font>http://lists.osgeo.org/mailman/listinfo/gdal-dev<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
-- <br>
Timothy H. Keitt<br>
</font></span></font></tt><span class="HOEnZb"><font color="#888888"></font></span></a><font color="#888888"><a href="http://www.keittlab.org/" target="_blank"><tt><font>http://www.keittlab.org/<br>
_______________________________________________<br>
gdal-dev mailing list<br>
gdal-dev@lists.osgeo.org<br>
</font></tt></a><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank"><tt><font>http://lists.osgeo.org/mailman/listinfo/gdal-dev<br>
</font></tt></a></font>
<br></blockquote></div><br><br clear="all"><br>-- <br>Timothy H. Keitt<br><a href="http://www.keittlab.org/">http://www.keittlab.org/</a><br><br>