[GRASS-user] Raster - assign interpolated values into range
Markus Metz
markus.metz.giswork at gmail.com
Sat Feb 23 07:17:09 PST 2019
On Sat, Feb 23, 2019 at 1:45 PM Francois Chartier <fra.chartier at gmail.com>
wrote:
>
> Hi,
>
> After creating a raster (2 or 3d) is there a way that interpolated values
(floats) can be assigned a specific value based on range. example: 0.01,
0.2 0.52, 0.67, 0.99, values between 0.01 and 0.5 assign 0.25; values
between 0.5 and 1, assign 0.75.
if you want to assign values to 0.25, 0.75, 1.25, 1.75, etc., i.e. new
values with a constant spacing of 0.5, you can use
r.mapcalc "output = round(input, 0.5, 0.25)"
Markus M
>
> thanks,
> F
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190223/dfdd9798/attachment.html>
More information about the grass-user
mailing list