[GRASS-user] Precision error in r.mapcalc

Jenny Turner jennyturner1980 at gmail.com
Wed Jul 21 10:10:09 EDT 2010


Greetings
I have a raster (FCELL ) that has a minimum value of 0.1312103122 and If I
try to have an image with just those values
r.mapcalc "minim= if(image==0.1312103122,10,0)" I get an all Zero image.
Then I opened the minim metadata and i see that in comments I have:
if(clustered.1 == 0.13121031, 10, 0)
r.mapcalc has eliminated the last 2 digits.How can I avoid this to happen?
Thanks
Jenny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100721/431b7b3c/attachment-0001.html


More information about the grass-user mailing list