[GRASSLIST:4587] Re: aggregate a higher resolution to a lower resolution

Ulrich Leopold uleopold at science.uva.nl
Thu Sep 26 04:13:26 EDT 2002


good point, Markus. Nobody answered this before. But is it easy to implement 
for 2x2. Or could there even be a work around by an awk script or something 
like that? Is it easy to use awk inside grass? I am currently using 
grass5.0.0pre5.

Ulrich

Markus Neteler wrote:
> On Fri, Sep 13, 2002 at 04:00:49PM +0100, Glynn Clements wrote:
> 
>>Ulrich Leopold wrote:
>>
>>
>>>I would like to aggregate my map from a 250x250m resolution to a 500x500m 
>>>resolution. If I use resample the nearest neighbor is used. Is there a 
>>>possibility to just average 4 250x250m blocks (like overlay a grid and 
>>>average) instead of nearest neigbor? So that I derive a mean and a variance?
>>
>>Apart from r.resample, there's also r.resamp.rst, which does spline
>>interpolation. However, I'm not aware of anything which resamples
>>using a simple average.
> 
> 
> Maybe already answered...
> Doesn't r.neighbor method=average size=something do the job?
> But you cannot resample 2x2 with the current implementation.
> 
>  Markus
> 

-- 
__________________________________________________

Ulrich Leopold MSc.

Department of Physical Geography
Institute for Biodiversity and Ecosystem Dynamics
Faculty of Science
University of Amsterdam
Nieuwe Achtergracht 166
NL-1018WV Amsterdam

Phone: +31-(0)20-525-7456 (7451 Secretary)
Fax:   +31-(0)20-525-7431
Email: uleopold at science.uva.nl
http://www.frw.uva.nl/soil/Welcome.html

Check us also out at:
Netherlands Centre for Geo-ecological Research
http://www.frw.uva.nl/icg




More information about the grass-user mailing list