Wed, Jul 4 2001
17:31:26
|
|
Request created by guest
|
|
Subject: r.mapcalc crashes when using @
Platform: Linux/Intel
Linux distro: RedHat
linux cpu: Intel (i486, i586, pentium ...)
Xwindows version: Xfree 4.0.x
Xwindows manager: KDE 2.x
grass downloaded at: Hannover site
grass binary for platform: I compiled the sources myself
grass sources source: no, I got a source code package from the server, 5.0.0pre1
c compiler name: gcc
I have a raster file with floating point number as labels, and I want to translate
these labels into values. r.report on the original file provides something like:
|-----------------------------------------------------------------------------|
| Category Information
|
| #|description
|
|-----------------------------------------------------------------------------|
| 1|76.200000
|
| 2|77.700000
|
| 3|76.700000
|
| 4|76.400000
|
| 5|77.700000
|
| 6|77.300000
|
| 7|80.600000
|
| 8|53.500000
|
| 9|78.000000
|
| 10|76.300000
|
| 11|49.600000
|
| 12|57.700000
|
| 13|48.500000
|
| 14|63.200000
|
| 15|51.400000
|
| 16|69.100000
|
| 17|79.200000
|
...
and I use the following expression in r.mapcalc:
result = @inputfile
and I get an immediate segmentation fault. I tried to trace the bug,
and it seems to me that it crashes while processing the very first cell,
but I've found no fix... :-( |
|
Wed, Aug 8 2001
06:55:37
|
|
Mail sent by egmiller
|
|
I justed tested this with a Debian/GNU Linux build and can't confirm the
problem. r.mapcalc hasn't seen any significant changes for a long time, so
maybe there was a problem with the r.mapcalc build? I looked through the
translation code, and the category conversion should result in a NULL cell
value for each failed conversion (i.e. it was text or null). |
|
Wed, Aug 8 2001
16:16:43
|
|
Mail sent by guest
|
|
I can confirm the problem with my build... maybe I can send you
a location with the data to play with? |
|
Wed, Jun 5 2002
16:04:32
|
|
Mail sent by mneteler
|
|
r.mapcalc was completely rewritten. Please try
the latest GRASS version.
Markus
|
|
Wed, Jun 5 2002
16:04:37
|
|
Status changed to resolved by mneteler
|
|