[GRASSLIST:4458] Re: mode()

Maciek Sieczka werchowyna at pf.pl
Mon Oct 4 06:07:18 EDT 2004


Developers!

Any answer please. Was it solved? Am I the only one having this? Else?

Maciek

----- Original Message -----
From: "Maciek Sieczka" <werchowyna at pf.pl>
To: <grasslist at baylor.edu>
Sent: Friday, September 24, 2004 6:48 PM
Subject: [GRASSLIST:4413] Re: mode()


> Hi All!
>
> Still no any answer so let me bug you a little more. I was thinking of
> putting a bug report on this issue but first of all I don't know how to
> describe it because it's weird and secondly COULD ANYBODY CHECK IF YOU CAN
> REPRODUCE THE ERROR so I could make sure if I'm not a separated case? It's
> hard for me to believe that such a nasty bug would survive in r.mapcalc
and
> I'm ready to be convinced that it's all my fault somehow.
>
> In a given region:
>
> projection: 0 (x,y)
> zone:       0
> north:      100
> south:      0
> west:       0
> east:       100
> nsres:      1
> ewres:      1
> rows:       100
> cols:       100
>
> I'm having adventures like this:
>
> GRASS:~ > r.mapcalc 'map_mod=mode(2)'
>  100%
>
> GRASS:~ > r.mapcalc 'map_mod=mode(2,2)'
>  100%
> Segmentation fault
>
> GRASS:~ > r.mapcalc 'map_mod=mode(2,2,2)'
>  100%
>
> GRASS:~ > r.mapcalc 'map_mod=mode(2,2,2,2)'
>  100%
> Segmentation fault
>
> GRASS:~ > r.mapcalc 'map_mod=mode(2,2,2,2,2)'
>  100%
>
> GRASS:~ > r.mapcalc 'map_mod=mode(2,2,2,2,2,2)'
>  100%
> mv: nie można wykonać stat na
> `/home/gr/home/grorient/wewn/.tmp/localhost/1197.0': No such file or
> directory
> ERROR: closecell: can't move
> /home/gr/home/grorient/wewn/.tmp/localhost/1197.0
> to cell file /home/grassdata/orient/wewn/cell/map_mod
>
> GRASS:~ > r.mapcalc 'map_mod=mode(2,2,2,2,2,2,2)'
>  100%
> mv: nie można wykonać stat na
> `/home/grorient/worient/wewn/.tmp/localhost/1201.0': No such file or
> directory
> ERROR: closecell: can't move
> /home/grorient/worient/wewn/.tmp/localhost/1201.0
> to cell file /home/grassdata/orient/wewn/cell/map_mod
>
> GRASS:~ > r.mapcalc 'map_mod=mode(2,2,2,2,2,2,2,2)'
>  100%
>
> where "mv: nie można wykonać stat na" means "mv: cannot execute stat on"
>
> beautifull, isn't it?
>
> or take a look at this:
>
> GRASS:~ > r.mapcalc 'map_mod=mode(1,2,3,4)'
>  100%
>
> GRASS:~ > r.mapcalc 'map_mod=mode(1,2,3)'
> Segmentation fault
>
> GRASS:~ > r.mapcalc 'map_mod=mode(1,2)'
> Segmentation fault
>
> GRASS:~ > r.mapcalc 'map_mod=mode(1)'
> Segmentation fault
>
> GRASS:~ > r.mapcalc 'map_mod=median(1)'
> Segmentation fault
>
> GRASS:~ > r.mapcalc 'map_mod=median(1,2)'
> Segmentation fault
>
> or this one:
>
> GRASS:~ > r.mapcalc 'map_mod=mode(5,5)'
> Segmentation fault
>
> GRASS:~ > r.mapcalc 'map_mod=mode(5,5,5)'
> Segmentation fault
>
> GRASS:~ > r.mapcalc 'map_mod=mode(5,5,5,5)'
>  100%
>
> GRASS:~ > r.mapcalc 'map_mod=mode(5,5,5,5,5)'
>  100%
>
> GRASS:~ > r.mapcalc 'map_mod=mode(5,5,5,5,5,5)'
>  100%
> Segmentation fault
>
> These listings come from a cvs Grass 5.3 (grass53_exp_2004_08_21) built
from
> source on a Mandrake 9.2 but I've had this fun in a precompiled 5.03 too.
>
> Looking forward to any reply.
>
> Maciek




More information about the grass-user mailing list