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

Martin Wegmann wegmann at biozentrum.uni-wuerzburg.de
Fri Jul 22 05:52:40 EDT 2005


thanks! 

regards, Martin

On Friday 22 July 2005 07:12, you wrote:
> 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.

-- 
Martin Wegmann

DLR - German Aerospace Center
German Remote Sensing Data Center
@
Dept.of Geography
Remote Sensing and Biodiversity Unit
&&
Dept. of Animal Ecology and Tropical Biology
University of Wuerzburg
Am Hubland
97074 Würzburg

phone: +49-(0)931 - 888 4797
fax:   +49-(0)931 - 888 4961
http://www.biota-africa.org
http://www.biogis.de




More information about the grass-user mailing list