Details Ticket 4355


Comment | Reply | Take | Open


Serial Number 4355
Subject GUI: r.terraflow: the window does not pop up, error printed to terminal
Area grass6
Queue grass
Requestors werchowyna@epf.pl
Owner none
Status resolved
Last User Contact Sun Jun 11 14:43:49 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sun Jun 11 14:43:49 2006 (2 yr ago)
Created Thu Apr 27 14:48:07 2006 (2 yr ago)

Transaction History Ticket 4355


Thu, Apr 27 2006 14:48:07    Request created by guest  
Subject: GUI: r.terraflow: the window does not pop up, error printed to terminal
Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 2006-04-12

in d.m:
1. Hydrologic modeling -> Flow accumulation for massive grids (r.terraflow)
2. error in the terminal:

$ r.terraflow December 2003
region size is 241 x 196

ERROR: Required parameter <elev> not set:
    (Input elevation grid).

ERROR: Required parameter <filled> not set:
    (Output (filled) elevation grid).

ERROR: Required parameter <direction> not set:
    (Output direction grid).

ERROR: Required parameter <swatershed> not set:
    (Output sinkwatershed grid).

ERROR: Required parameter <accumulation> not set:
    (Output accumulation grid).

ERROR: Required parameter <tci> not set:
    (Output tci grid).

Description:
 Flow computation for massive grids (Float version).

Usage:
 r.terraflow [-sq] elev=string filled=string direction=string
   swatershed=string accumulation=string tci=string [d8cut=value]
   [memory=value] [STREAM_DIR=string] [stats=string]

Flags:
  -s   SFD (D8) flow (default is MFD)
  -q   Quiet

Parameters:
          elev   Input elevation grid
        filled   Output (filled) elevation grid
     direction   Output direction grid
    swatershed   Output sinkwatershed grid
  accumulation   Output accumulation grid
           tci   Output tci grid
         d8cut   If flow accumulation is larger than this value it is routed
using SFD (D8) direction
                 (meaningfull only  for MFD flow)
                 default: infinity
        memory   Main memory size (in MB)
                 default: 300
    STREAM_DIR   Location of intermediate STREAMs
                 default: /var/tmp
         stats   Stats file
                 default: stats.out

If r.terraflow GUI is called from CLI with r.terraflow&, the window pops up,
but there is still some unwnated output to the terminal:

$ r.terraflow&
r.terraflow December 2003
region size is 241 x 196

Maciek
Fri, Apr 28 2006 02:32:26    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Fri, 28 Apr 2006 12:32:12 +1200
From Hamish <hamish_nospam@yahoo.com>
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #4355] (grass) GUI: r.terraflow: the window does not pop up, error printed to terminal
Message-Id <20060428123212.43df16b4.hamish_nospam@yahoo.com>
In-Reply-To <20060427124807.E30A51005DB@lists.intevation.de>
References <20060427124807.E30A51005DB@lists.intevation.de>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4355
> ---------------------------------------------------------------------
> 
> Subject: GUI: r.terraflow: the window does not pop up, error printed
> to terminal
..


Changing "spawn" to "term" in gui/tcltk/d.m/menu.tcl helps it start, but
probably isn't the correct solution.

Changing to "execute" gives a tcl error (maybe informative as to the
problem)


Hamish


Fri, Apr 28 2006 18:32:28    Mail sent by glynn@gclements.plus.com  
Return-Path <glynn@gclements.plus.com>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn@gclements.plus.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <17490.17298.19034.821911@cerise.gclements.plus.com>
Date Fri, 28 Apr 2006 17:32:18 +0100
To Hamish <hamish_nospam@yahoo.com>
Cc Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
Subject Re: [GRASS5] [bug #4355] (grass) GUI: r.terraflow: the window does not pop up, error printed to terminal
In-Reply-To <20060428123212.43df16b4.hamish_nospam@yahoo.com>
References <20060427124807.E30A51005DB@lists.intevation.de> <20060428123212.43df16b4.hamish_nospam@yahoo.com>
X-Mailer VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Hamish wrote:

> > this bug's URL: http://intevation.de/rt/webrt?serial_num=4355
> > ---------------------------------------------------------------------
> > 
> > Subject: GUI: r.terraflow: the window does not pop up, error printed
> > to terminal
> ..
> 
> 
> Changing "spawn" to "term" in gui/tcltk/d.m/menu.tcl helps it start, but
> probably isn't the correct solution.
> 
> Changing to "execute" gives a tcl error (maybe informative as to the
> problem)

r.terraflow doesn't follow the correct startup sequence; it does some
stuff (e.g. G_get_set_window(), printing the region to stderr) before
G_parser() is called.

This will likely cause features such as --tcltk to break (Tcl's
exec/open functions will throw an exception if the process writes
anything to stderr).

-- 
Glynn Clements <glynn@gclements.plus.com>


Sun, Jun 11 2006 14:43:49    Status changed to resolved by msieczka  
Sun, Jun 11 2006 14:43:49    Mail sent by msieczka  
Fixed in CVS. Thanks!

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