[GRASS5] [bug #859] (grass) raster data at lower resolution: no resampling...
Request Tracker
grass-bugs at intevation.de
Mon Nov 26 17:50:11 EST 2001
this bug's URL: http://intevation.de/rt/webrt?serial_num=859
-------------------------------------------------------------------------
Hi again,
(sorry to be so chatty)
from the GRASS prog's manual I understand that raster data
are resampled on the fly when looking at them in lower resolution.
I have tested this and found, that the maximum value is used
instead... that's wrong in my opinion.
An example
#use g.region to select a 6x6 subregion, say, at 30m resolution
g.region
#calculate a test map
r.mapcalc test="row() + col()"
#look at it:
d.mon x0
d.rast test; d.rast.num test
r.out.ascii in=test out=-
#switch to half resolution
g.region res=60
d.mon x1
d.rast test; d.rast.num test
r.out.ascii in=test out=-
# compare.
The last years I thought that the programmer's manual is right.
Obviously not (or not any more).
Looks like another bug,
Markus
--- Headers Follow ---
>From neteler at itc.it Mon Nov 26 23:50:11 2001
Return-Path: <neteler at itc.it>
Delivered-To: grass-bugs at lists.intevation.de
Received: from mail.intevation.de (aktaia.intevation.org [212.95.126.10])
by lists.intevation.de (Postfix) with ESMTP id 292F8139D0
for <grass-bugs at lists.intevation.de>; Mon, 26 Nov 2001 23:50:11 +0100 (CET)
Received: from camelot.itc.it (camelot.itc.it [195.223.171.5])
by mail.intevation.de (Postfix) with ESMTP id 681161C786
for <grass-bugs at intevation.de>; Mon, 26 Nov 2001 23:50:10 +0100 (CET)
Received: from artemide.itc.it (artemide [10.0.10.10])
by camelot.itc.it (8.11.3/8.11.3) with ESMTP id fAQMo9d24259
for <grass-bugs at intevation.de>; Mon, 26 Nov 2001 23:50:09 +0100 (MET)
Received: from thuille.itc.it. (thuille [10.40.0.110])
by artemide.itc.it (8.11.3/8.11.3) with ESMTP id fAQMo7712635
for <grass-bugs at intevation.de>; Mon, 26 Nov 2001 23:50:08 +0100 (MET)
Received: (from neteler at localhost)
by thuille.itc.it. (8.11.6/8.11.2) id fAQMo7d30738
for grass-bugs at intevation.de; Mon, 26 Nov 2001 23:50:07 +0100
Date: Mon, 26 Nov 2001 23:50:07 +0100
From: Markus Neteler <neteler at itc.it>
To: grass-bugs at intevation.de
Subject: raster data at lower resolution: no resampling...
Message-ID: <20011126235007.A30734 at itc.it>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
-------------------------------------------- Managed by Request Tracker
More information about the grass-dev
mailing list