[GRASS-dev] scientific notation in r.mapcalc ?

Markus Metz markus.metz.giswork at gmail.com
Fri Jun 16 13:39:43 PDT 2017


On Fri, Jun 16, 2017 at 5:56 PM, Markus Neteler <neteler at osgeo.org> wrote:
>
> On Jun 16, 2017 5:41 PM, "Moritz Lennert" <mlennert at club.worldonline.be>
wrote:
>
> ...
> > Markus, what was your recent issue ? Maybe that will ring a bell for
me...
>
> I think we were on a system with Italian locale. I will ask if it was
happening when using the GUI (likely yes).

this works:
r.mapcalc "foo = 2.0e-05"
r.mapcalc "foo = 2.e-05"

this does not work:
r.mapcalc "foo = 2e-05"

i.e. the number before 'e' must be a floating point number, otherwise the
parser looks for the raster '2e'.

I guess this makes sense, maybe this needs mentioning in the manual.

Markus M

>
> Markus
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20170616/ab7301bf/attachment.html>


More information about the grass-dev mailing list