[GRASS-dev] Re: [GRASS-user] r.reclass and "Abort trap"

Michael Barton Michael.Barton at asu.edu
Sun Feb 5 11:26:06 EST 2012


This works fine for me too, using a version of 6.4.2 svn a couple weeks old.

The weird thing is that there *used* to be a nice GUI for reclassification and recoding but it seems to have disappeared from 6.4 and 7. The fallback is the basic standalone module in which you enter text rules. This works OK. But I'm wondering where the other interface went to.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity 
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 	480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax:          480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu











On Feb 4, 2012, at 9:55 PM, Helena Mitasova wrote:

> It appear to run for me:
> 
> I tried to run it using linux shell with 2 examples
> 1.r.reclass (here it goes to the old dialog and does not open GUI - perhaps that is the problem?)
> ...
> fp: Data range is 55.5787925720214843750000000 to 156.3298645019531250000000000
>> 55 thru 100 = 1
>> 100 thru 160 = 2
>> end
> 
> 2.
> r.reclass elevation out=reclass_test3 rules=rules.txt
> rules.txt has
> 55 thru 100 = 1
> 100 thru 120 = 2
> 120 thru 150 = null
> 151 = 3
> 152 thru 180 = 5
> 
> and I reclassed aspect map through GUI 
> 
> all came out right without problem, except in the #2 example null() was assigned green color instead of white
> (I did not try to change it.
> 
> Helena 
> 
> 
> 
> On Feb 4, 2012, at 10:26 PM, Hamish wrote:
> 
>> Hamish:
>>>> apparently the stack is being smashed.
>>>> 
>>>> Can you try 6.5svn? there is a segfault fix for 
>>>> r.reclass there (see trac bug #800) which has not
>>>> yet been backported to 6.4.
>> 
>> Tyler wrote:
>>> I have located the fixes at http://trac.osgeo.org/grass/ticket/800#comment:6
>>> and I would be pleased to implement/test them;
>>> however I am afraid I am not entirely sure how to
>>> go about doing this!...
>> 
>> Michael/Helena, is r.reclass in 6.4 working for you?
>> if not, how about 6.5svn?
>> 
>>> Incidentally I am running on Mac OS Lion at
>>> present, and until I resolve this it appears I
>>> cannot do any reclass operations (which as you
>>> can imagine is really slowing my progress!)....
>> 
>> a less efficient but equally effective way to do
>> the same thing is with r.mapcalc:
>> 
>> r.mapcalc "new_map = if(old_map == 1 || old_map == 2, 1, null())"
>> 
>> replace the null() with another if(this,then_this,otherwise_this)
>> for another case.
>> 
>> 
>> good luck,
>> Hamish
> 



More information about the grass-dev mailing list