[GRASS5] [bug #1571] (grass) r.profile: extraneous output

Request Tracker grass-bugs at intevation.de
Tue Feb 4 23:23:58 EST 2003


this bug's URL: http://intevation.de/rt/webrt?serial_num=1571
-------------------------------------------------------------------------

Subject: r.profile: extraneous output

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.0

r.profile keeps going for one record after it is done, creating extraneous output.

e.g. (using just fixed r.transect frontend for clarity)
        [ line=easting, northing, azimuth, distance]

> r.transect map=idw_out3 line=2026061.733,5532326.336,116.0,40
Using Resolution 5.000000
Output Format:
[Along Track Dist.(m)] [Elevation]

Approx. transect length 40.000000 m.
0.000000 -319.511866
5.000000 -316.296928
10.000000 -314.788610
15.000000 -312.100558
20.000000 -312.100558
25.000000 -310.551977
30.000000 -308.326899
35.000000 -306.653716
40.000000 -304.539002
Approx. transect length 0.000000 m.
45.000000 -304.539002



So for some reason it runs the do_profile function again, when it should really stop at dist=40.000. Maybe at line 238:

/* Ge last coord */
if (i == k-2)
do_profile(...

shouldn't be there?


If I ask for [0-10], resolution 3, it should return 0=, 3=, 6=, 9=; and not 12=.

thanks,
Hamish


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list