[GRASS-user] Raster - assign interpolated values into range

Veronica Andreo veroandreo at gmail.com
Sat Feb 23 08:00:23 PST 2019


El sáb., 23 feb. 2019 12:17, Markus Metz <markus.metz.giswork at gmail.com>
escribió:

>
>
> 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)"
>

Ah! So cool!! 8)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190223/3acacd61/attachment.html>


More information about the grass-user mailing list