[GRASSLIST:7673] Re: r.statistics method=variance gives NAN

Markus Neteler neteler at itc.it
Fri Jul 22 04:13:50 EDT 2005


On Fri, Jul 22, 2005 at 06:12:15AM +0100, Glynn Clements wrote:
Content-Description: message body and .signature
> 
> Martin Wegmann wrote:
> 
> > when using r.statistics with method "variance" I receive NAN as output values, 
> > however if I use "average" or "stddev" the ouput  looks reasonable.
> >  
> > I tried it with GRASS 6.1-cvs a few weeks ago and GRASS 6.0 from the debian 
> > repository but both produced the same result.
> > 
> > Any idea what the problem might be?
> 
> The m_var() function fails to initialise the local variable "s".
> 
> Fixed in CVS, or apply the attached patch.

I have also fixed it in 6.0-CVS (for 6.0.1).

Markus




More information about the grass-user mailing list