[GRASS5] [bug #940] (grass) r.profile tcltkgrass options not up to date (not d.profile) - with fix
Request Tracker
grass-bugs at intevation.de
Mon Mar 4 01:07:03 EST 2002
this bug's URL: http://intevation.de/rt/webrt?serial_num=940
-------------------------------------------------------------------------
Subject: r.profile tcltkgrass options not up to date (not d.profile) - with fix
Platform: Linux/Intel
Linux distro: RedHat
linux cpu: AMD (K6, ...)
Xwindows manager: GNOME
grass downloaded at: Baylor site
grass binary for platform: I compiled the sources myself
grass sources source: no, I got a source code package from the server, grass5.0.0pre3
c compiler name: gcc
using tcltkgrass:
Raster -> Report Map -> Values on Transect Lines
This brings up a TCL dialog, with the sample command:
r.profile result=average map=sebastopol_dem line=514926,4250481,514674.38620798,4250179
It looks like this should be:
r.profile input=sebastopol_dem output=profile_test profile=514926,4250481,514674.38620798,4250179
I don't yet know how grass works, but it appears that the glitch is in:
/usr/local/src/grass5.0.0pre3/src/tcltkgrass/module/r.profile
Here is a new tcltkgrass/module/r.profile that works for me:
interface_build {
{r.profile} 0
{Outputs the raster map layer values lying on user-defined line(s).}
{entry input {Raster map to be queried:} 0 raster}
{entry output {Text File to be written:} 0 raster}
{entry profile {Profile coordinates (east,north,east,north[,...]):} 0 +xy}
{entry width {Profile width, in cells (odd number) [1]:} 0 ""}
{checkbox result {Raw results (default).} "" raw}
{checkbox result {Median result (a single value).} "" median}
{checkbox result {Average result (a single value).} "" average}
Cheers,
Rich Gibson
-------------------------------------------- Managed by Request Tracker
More information about the grass-dev
mailing list