[GRASS-user] Problem with r. mapcalc

Giuseppe Amatulli giuseppe.amatulli at gmail.com
Thu Feb 25 05:32:25 PST 2021


Thanks Maris!!
How can I force the output to be DCELL?
How can I get the "Range of data:"  without the scientific number notation?
thanks
Giuseppe

On Thu, 25 Feb 2021 at 01:11, Maris Nartiss <maris.gis at gmail.com> wrote:

> Hello Giuseppe,
> I am too lazy to calculate binary representation of your numbers, but
> your suspicion of insufficient precision of float seems to be spot-on.
>
> If output is set to DCELL, then the result is exactly as you would
> expect. Try yourself:
> r.mapcalc  expression="output=basin - 241981407231.0"
> Range of data:    min = 1  max = 3024784769025
>
> Māris.
>


-- 
Giuseppe Amatulli, Ph.D.

Research scientist at
School of the Environment
Yale University
New Haven, CT, USA - 06511
Tweeter: @BigDataEcology
Teaching: http://spatial-ecology.net
Work:  https://environment.yale.edu/profile/giuseppe-amatulli/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20210225/a80ba706/attachment.html>


More information about the grass-user mailing list