[GRASS-dev] r.flow and G_message

Michael Barton michael.barton at asu.edu
Sat Oct 21 14:01:42 EDT 2006


Can we assume that these messages would be output with the --v flag and
suppressed with the --q flag? If so, this looks fine and is a big
improvement.

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: Jachym Cepicky <jachym.cepicky at centrum.cz>
> Date: Sat, 21 Oct 2006 14:15:44 +0200
> To: Jachym Cepicky <jachym.cepicky at centrum.cz>
> Cc: <grass-dev at grass.itc.it>
> Subject: Re: [GRASS-dev] r.flow and G_message
> 
> Hi, 
> 
> what about this patch?
> 
> Some messages changed to G_debug.
> 
> Example output:
> 
> Reading input files: elevation
> Reading input files: aspect
> Reading input files: barrier
> Precomputing: tangents
> Precomputing: e/w distances
> Precomputing: quantization tolerances
> Precomputing: re-oriented aspects
> Working
> Writing density file
> Closing files
> 
> Jachym
> 
> On Thu, Oct 19, 2006 at 09:21:04PM +0200, Jachym Cepicky wrote:
>> hallo,
>> 
>> i do not know, how to solve fprints in r.flow.
>> 
>> The module use it's own function to print messages (diag)
>> 
>> When i removed this function and rewrite everything with help of
>> G_message, the result is not well-arranged:
>> 
>> r.flow elevin=elevation.dem aspin=aspect barin=roads flout=tmp1
>> lgout=tmp2 dsout=tmp3 --o
>> Opening output files...
>> WARNING: The vector 'tmp1' already exists and will be overwritten.
>> Done
>> Allocating memory: elevation
>> aspect
>> barrier
>> density
>> flowline header
>> e/w distances
>> quantization tolerances
>> Reading input files: elevation...
>> aspect
>> barrier
>> Precomputing: tangents
>> e/w distances
>> quantization tolerances
>> re-oriented aspects
>> Working...
>> Done%
>> Writing density file...
>> Done
>> Closing files...
>> Building topology ...
>> 0 primitives registered
>> 0 areas built
>> 0 isles built
>> Attaching islands:
>> Attaching centroids: Topology was built.
>> Number of nodes     :   0
>> Number of primitives:   0
>> Number of points    :   0
>> Number of lines     :   0
>> Number of boundaries:   0
>> Number of centroids :   0
>> Number of areas     :   0
>> Number of isles     :   0
>> Done
>> De-allocating memory...
>> Done
>> 
>> What to do? Should I remove all informations about reading, precomputing
>> and  allocating for each raster map? I suggest, that the most verbose
>> output could look like this:
>> 
>> Opening output files...
>> WARNING: The vector 'tmp1' already exists and will be overwritten.
>> Allocating memory for maps
>> Reading input files
>> Precomputing
>> Working
>> Writing density file
>> Closing files
>> Building topology
>> 0 primitives registered
>> 0 areas built
>> 0 isles built
>> Attaching islands:
>> Attaching centroids: Topology was built.
>> Number of nodes     :   0
>> Number of primitives:   0
>> Number of points    :   0
>> Number of lines     :   0
>> Number of boundaries:   0
>> Number of centroids :   0
>> Number of areas     :   0
>> Number of isles     :   0
>> Done
>> De-allocating memory
>> 
>> what would you say?
>> 
>> jachym
>> -- 
>> Jachym Cepicky
>> e-mail: jachym.cepicky at centrum.cz
>> URL: http://les-ejk.cz
>> GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
>> -----------------------------------------
>> OFFICE:         
>> Department of Geoinformation Technologies
>> Zemedelska 3
>> 613 00, Brno
>> Czech Republick
>> e-mail: xcepicky at node.mendelu.cz
>> URL:    http://mapserver.mendelu.cz
>> Tel.:   +420 545 134 514
> 
> 
> 
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at grass.itc.it
>> http://grass.itc.it/mailman/listinfo/grass-dev
> 
> -- 
> Jachym Cepicky
> e-mail: jachym.cepicky at centrum.cz
> URL: http://les-ejk.cz
> GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
> -----------------------------------------
> OFFICE:          
> Department of Geoinformation Technologies
> Zemedelska 3
> 613 00, Brno
> Czech Republick
> e-mail: xcepicky at node.mendelu.cz
> URL:    http://mapserver.mendelu.cz
> Tel.:   +420 545 134 514




More information about the grass-dev mailing list