[GRASS-user] cut off floating map

Markus Metz markus.metz.giswork at googlemail.com
Sun Jun 10 00:57:38 PDT 2012


On Sat, Jun 9, 2012 at 4:50 PM, Salvatore Mellino
<salvatore.mellino at gmail.com> wrote:
> Hi,
>
> is it possible to cut off a floating point map to the 4th decimal digit? Which is the procedure?

Try

r.mapcalc "rounded = int(fp_map * 10000) / 10000.0"

Markus M


More information about the grass-user mailing list