Details Ticket 3163


Comment | Reply | Take | Open


Serial Number 3163
Subject g.region bug(s) with grid 3D
Area grass6
Queue grass
Requestors michael.barton@asu.edu,neteler@itc.it
Owner none
Status resolved
Last User Contact Sun Oct 8 10:32:15 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sun Oct 8 10:32:15 2006 (2 yr ago)
Created Tue Apr 19 13:02:50 2005 (3 yr ago)

Transaction History Ticket 3163


Tue, Apr 19 2005 13:02:50    Request created by guest  
Subject: g.region bug(s) with grid 3D

Platform: GNU/Linux/i386
grass obtained from: CVS
grass binary for platform: Compiled from Sources

Hi,

there are two bugs within g.region or the underlying libgis code:

I want to set a region:

GRASS 6.1.cvs (spearfish60):~ > g.region n=4926000.00 s=4921000.00 e=597000.00
w=590000.00 res=100.00
GRASS 6.1.cvs (spearfish60):~ > g.region -p3
projection: 1 (UTM)
zone:       13
datum:      nad27
ellipsoid:  clark66
north:      4926000
south:      4921000
west:       590000
east:       597000
top:        1.00000000
bottom:     0.00000000
nsres:      100                    <- ok
nsres3:     29.94011976
ewres:      100                    <- ok
ewres3:     30.04291845
tbres:      1
rows:       50
rows3:      167
cols:       70
cols3:      233
depths:     1


Then I want to set the resolution of the 3rd dimension:
GRASS 6.1.cvs (spearfish60):~ > g.region res3=100.00
GRASS 6.1.cvs (spearfish60):~ > g.region -p3
projection: 1 (UTM)
zone:       13
datum:      nad27
ellipsoid:  clark66
north:      4928010                    <- oops, was setting to default?!
south:      4913700                    <- oops, was setting to default?!
west:       589980                    <- oops, was setting to default?!
east:       609000                    <- oops, was setting to default?!
top:        1.00000000
bottom:     0.00000000
nsres:      30                    <- oops, was setting to default?!
nsres3:     30                    <- oops, was setting to default?!
ewres:      30                    <- oops, was setting to default?!
ewres3:     30                    <- oops, was setting to default?!
tbres:      1
rows:       477
rows3:      477
cols:       634
cols3:      634
depths:     1

Combining print flag and 3d resolution setting:

GRASS 6.1.cvs (spearfish60):~ > g.region res3=100.00 -p3
ERROR: region for current mapset is invalid
       line 15: <depths: 0>
       run "g.region"

The WIND file contains:
 cat grassdata/spearfish60/PERMANENT/WIND
proj:       1
zone:       13
north:      4928010
south:      4913700
east:       609000
west:       589980
cols:       634
rows:       477
e-w resol:  30
n-s resol:  30
top:        1
bottom:     0
cols3:      190
rows3:      143
depths:     0
e-w resol3: 100.10526316
n-s resol3: 100.06993007
t-b resol:  inf                    <- no good

The bug is probably in lib/gis/rd_cellhd.c (?).

Markus
Thu, Jun 8 2006 02:30:04    Request created by guest (as #4555)  
Subject: 3D settings cause error in g.region

Platform: Mac OSX
grass obtained from: Mirror of Trento site
grass binary for platform: Downloaded precompiled Binaries
GRASS Version: 6.1 cvs 27-May-06

If you try to set 3D settings (resolution, top/bottom) using g.region, it produces
an error that depth is 0. Then it is no longer possible to run g.region on the
WIND file. It is possible to manually fix WIND with a text editor, but g.region
is problematic.
Fri, Jun 16 2006 08:26:06    Mail sent by mneteler (as #4555)  
Michael,

you also have to set the depth (vertical resolution).
If too low you end up in a single layer.

Markus

PS: Please post the command line
Fri, Jun 16 2006 08:31:39    Mail sent by michael.barton@asu.edu (as #4555)  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
User-Agent Microsoft-Entourage/11.2.3.060209
Date Thu, 15 Jun 2006 23:31:29 -0700
Subject Re: [bug #4555] (grass) 3D settings cause error in g.region
From Michael Barton <michael.barton@asu.edu>
To Paolo Cavallini via RT <grass-bugs@intevation.de>
Message-ID <C0B79E51.BC33%michael.barton@asu.edu>
Thread-Topic [bug #4555] (grass) 3D settings cause error in g.region
Thread-Index AcaRDoAEvrnryv0BEdq4DwAKlXAweg==
In-Reply-To <20060616062606.286671005C5@lists.intevation.de>
Mime-version 1.0
Content-type text/plain; charset="US-ASCII"
Content-transfer-encoding 7bit
X-Virus-Scanned by amavisd-new
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
I've tried this and it doesn't do anything. You can't change the depth from
the command line or the GUI. That is, g.region depth=10 has no effect. Depth
goes to 0.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton



> From: Markus Neteler via RT <grass-bugs@intevation.de>
> Reply-To: Markus Neteler via RT <grass-bugs@intevation.de>
> Date: Fri, 16 Jun 2006 08:26:06 +0200 (CEST)
> To: <michael.barton@asu.edu>
> Subject: [bug #4555] (grass) 3D settings cause error in g.region
> 
> Michael,
> 
> 
> 
> you also have to set the depth (vertical resolution).
> 
> If too low you end up in a single layer.
> 
> 
> 
> Markus
> 
> 
> 
> PS: Please post the command line
> 
> -------------------------------------------- Managed by Request Tracker


Fri, Jun 16 2006 09:02:54    Mail sent by michael.barton@asu.edu (as #4555)  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
User-Agent Microsoft-Entourage/11.2.3.060209
Date Fri, 16 Jun 2006 00:02:50 -0700
Subject Re: [bug #4555] (grass) 3D settings cause error in g.region
From Michael Barton <michael.barton@asu.edu>
To Paolo Cavallini via RT <grass-bugs@intevation.de>
Message-ID <C0B7A5AA.BC39%michael.barton@asu.edu>
Thread-Topic [bug #4555] (grass) 3D settings cause error in g.region
Thread-Index AcaREuEuH+qnwP0GEdq4DwAKlXAweg==
In-Reply-To <20060616062606.286671005C5@lists.intevation.de>
Mime-version 1.0
Content-type text/plain; charset="US-ASCII"
Content-transfer-encoding 7bit
X-Virus-Scanned by amavisd-new
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Markus,

Here is exactly what happens.

First command shows current region
Second command tries to set 3D region using res3=30
Third command shows that now I have an invalid region

GRASS 6.1.cvs (spearfish60_test):~/wxp/py_gm > g.region -p
projection: 1 (UTM)
zone:       13
datum:      nad27
ellipsoid:  clark66
north:      4928090
south:      4913990
west:       589410
east:       609540
nsres:      30
ewres:      30
rows:       470
cols:       671

GRASS 6.1.cvs (spearfish60_test):~/wxp/py_gm > g.region res3=30

GRASS 6.1.cvs (spearfish60_test):~/wxp/py_gm > g.region -p
ERROR: region for current mapset is invalid
       line 15: <depths: 0>
       run "g.region"

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton



> From: Markus Neteler via RT <grass-bugs@intevation.de>
> Reply-To: Markus Neteler via RT <grass-bugs@intevation.de>
> Date: Fri, 16 Jun 2006 08:26:06 +0200 (CEST)
> To: <michael.barton@asu.edu>
> Subject: [bug #4555] (grass) 3D settings cause error in g.region
> 
> Michael,
> 
> 
> 
> you also have to set the depth (vertical resolution).
> 
> If too low you end up in a single layer.
> 
> 
> 
> Markus
> 
> 
> 
> PS: Please post the command line
> 
> -------------------------------------------- Managed by Request Tracker


Mon, Sep 25 2006 19:54:16    Mail sent by msieczka (as #4555)  
michael.barton@asu.edu wrote (Fri, Jun 16 2006 09:02:54):

>$ g.region res3=30
> 
>$ g.region -p
> ERROR: region for current mapset is invalid
>        line 15: <depths: 0>
>        run "g.region"

Michael,

I can't reproduce the error. Can you confirm so I close it?

Maciek
Mon, Sep 25 2006 20:01:23    Mail sent by michael.barton@asu.edu (as #4555)  
Return-Path <michael.barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
User-Agent Microsoft-Entourage/11.2.5.060620
Date Mon, 25 Sep 2006 11:01:17 -0700
Subject Re: [bug #4555] (grass) 3D settings cause error in g.region
From Michael Barton <michael.barton@asu.edu>
To Paolo Cavallini via RT <grass-bugs@intevation.de>
Cc <grass-dev@grass.itc.it>
Message-ID <C13D677D.24E57%michael.barton@asu.edu>
Thread-Topic [bug #4555] (grass) 3D settings cause error in g.region
Thread-Index AcbgzJjp15pRWEy/EduomQAUUSYxwg==
In-Reply-To <20060925175416.8B89D1006A9@lists.intevation.de>
Mime-version 1.0
Content-type text/plain; charset="US-ASCII"
Content-transfer-encoding 7bit
X-Virus-Scanned by amavisd-new
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-3.752 tagged_above=-999 required=3 tests=[BAYES_00=-5, RCVD_NUMERIC_HELO=1.248]
X-Spam-Level
Sorry, but I don't understand the error.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


> From: Maciek Sieczka via RT <grass-bugs@intevation.de>
> Reply-To: Maciek Sieczka via RT <grass-bugs@intevation.de>
> Date: Mon, 25 Sep 2006 19:54:16 +0200 (CEST)
> To: <michael.barton@asu.edu>
> Cc: <grass-dev@grass.itc.it>
> Subject: [bug #4555] (grass) 3D settings cause error in g.region
> 
> michael.barton@asu.edu wrote (Fri, Jun 16 2006 09:02:54):
> 
> 
> 
>> $ g.region res3=30
> 
>> 
> 
>> $ g.region -p
> 
>> ERROR: region for current mapset is invalid
> 
>>        line 15: <depths: 0>
> 
>>        run "g.region"
> 
> 
> 
> Michael,
> 
> 
> 
> I can't reproduce the error. Can you confirm so I close it?
> 
> 
> 
> Maciek
> 
> 
> 
> -------------------------------------------- Managed by Request Tracker


Mon, Sep 25 2006 20:02:29    Mail sent by msieczka  
Markus,

I can't reproduce any of the cases presented. Can you confirm?

Maciek
Mon, Sep 25 2006 20:07:56    Mail sent by tutey@o2.pl (as #4555)  
Return-Path <tutey@o2.pl>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <45181AF1.50300@o2.pl>
Date Mon, 25 Sep 2006 20:07:45 +0200
From Maciej Sieczka <tutey@o2.pl>
User-Agent Thunderbird 1.5.0.7 (X11/20060922)
MIME-Version 1.0
To Michael Barton <michael.barton@asu.edu>
Cc Paolo Cavallini via RT <grass-bugs@intevation.de>, grass-dev@grass.itc.it
Subject Re: [GRASS-dev] Re: [bug #4555] (grass) 3D settings cause error in g.region
References <C13D677D.24E57%michael.barton@asu.edu>
In-Reply-To <C13D677D.24E57%michael.barton@asu.edu>
Content-Type text/plain; charset=ISO-8859-2
Content-Transfer-Encoding 7bit
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level
Michael Barton wrote:
> Sorry, but I don't understand the error.

But it's your own report :).

Maciek


Mon, Sep 25 2006 20:12:00    Mail sent by landa.martin@gmail.com (as #4555)  
Return-Path <landa.martin@gmail.com>
Delivered-To grass-bugs@lists.intevation.de
DomainKey-Signature a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sniae8WS4Gu8y9t+fBw816txRyLB90tv2AZfX7T2ulY7mJXj1f+ZWl5PAlzdlfiSSLBUE4sJjX9bMKhA4/tMHVsr5rka62PJ0SZmXLYIlsLBfTlHbGsgNIZfeuZ0pB58p2guJ/tF22btka4BUr5e7CYcA//nU3ZqqNrlvU+NSJs=
Message-ID <f8fe65c40609251111i7f6aecaex174e071f2180b6e7@mail.gmail.com>
Date Mon, 25 Sep 2006 20:11:57 +0200
From "Martin Landa" <landa.martin@gmail.com>
To "Maciej Sieczka" <tutey@o2.pl>
Subject Re: [GRASS-dev] Re: [bug #4555] (grass) 3D settings cause error in g.region
Cc "Michael Barton" <michael.barton@asu.edu>, "Paolo Cavallini via RT" <grass-bugs@intevation.de>, grass-dev@grass.itc.it
In-Reply-To <45181AF1.50300@o2.pl>
MIME-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Content-Disposition inline
References <C13D677D.24E57%michael.barton@asu.edu> <45181AF1.50300@o2.pl>
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-4.933 tagged_above=-999 required=3 tests=[BAYES_00=-5, RCVD_BY_IP=0.067]
X-Spam-Level
Hi,

not sure, this bug should be fixed..., see [1]

Martin

[1] http://grass.itc.it/pipermail/grass-dev/2006-August/025040.html


2006/9/25, Maciej Sieczka <tutey@o2.pl>:
> Michael Barton wrote:
> > Sorry, but I don't understand the error.
>
> But it's your own report :).
>
> Maciek
>
> _______________________________________________
> grass-dev mailing list
> grass-dev@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>


-- 
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *


Mon, Sep 25 2006 20:58:28    Mail sent by michael.barton@asu.edu (as #4555)  
Return-Path <michael.barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
User-Agent Microsoft-Entourage/11.2.5.060620
Date Mon, 25 Sep 2006 11:58:22 -0700
Subject Re: [bug #4555] (grass) 3D settings cause error in g.region
From Michael Barton <michael.barton@asu.edu>
To Paolo Cavallini via RT <grass-bugs@intevation.de>
Cc <grass-dev@grass.itc.it>
Message-ID <C13D74DE.24E6D%michael.barton@asu.edu>
Thread-Topic [bug #4555] (grass) 3D settings cause error in g.region
Thread-Index Acbg1JJe0QBDe0zHEduomQAUUSYxwg==
In-Reply-To <20060925175416.8B89D1006A9@lists.intevation.de>
Mime-version 1.0
Content-type text/plain; charset="US-ASCII"
Content-transfer-encoding 7bit
X-Virus-Scanned by amavisd-new
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-3.752 tagged_above=-999 required=3 tests=[BAYES_00=-5, RCVD_NUMERIC_HELO=1.248]
X-Spam-Level
Can you send me the entire report so I know what it is?

Thanks
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


> From: Maciek Sieczka via RT <grass-bugs@intevation.de>
> Reply-To: Maciek Sieczka via RT <grass-bugs@intevation.de>
> Date: Mon, 25 Sep 2006 19:54:16 +0200 (CEST)
> To: <michael.barton@asu.edu>
> Cc: <grass-dev@grass.itc.it>
> Subject: [bug #4555] (grass) 3D settings cause error in g.region
> 
> michael.barton@asu.edu wrote (Fri, Jun 16 2006 09:02:54):
> 
> 
> 
>> $ g.region res3=30
> 
>> 
> 
>> $ g.region -p
> 
>> ERROR: region for current mapset is invalid
> 
>>        line 15: <depths: 0>
> 
>>        run "g.region"
> 
> 
> 
> Michael,
> 
> 
> 
> I can't reproduce the error. Can you confirm so I close it?
> 
> 
> 
> Maciek
> 
> 
> 
> -------------------------------------------- Managed by Request Tracker


Sat, Sep 30 2006 00:30:22    Request 4555 merged into 3163 by msieczka (as #4555)  
Sat, Sep 30 2006 00:31:42    Mail sent by msieczka  
Gentlemen, could you please reply? Is this bug fixed for you too?

Maciek
Sun, Oct 8 2006 10:32:15    Status changed to resolved by msieczka  
Sun, Oct 8 2006 10:32:15    Mail sent by msieczka  
Nobody's answering and I can't reproduce the bug. Closing it.

Maciek
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request