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

Francois Chartier fra.chartier at gmail.com
Mon Feb 25 17:23:01 PST 2019


doesnt work with 3d raster. only takes in 2d. i did it with access, more
tedious but it works.  i should be able to do this with the attribute table
directly but havent tried yet.

On Mon, Feb 25, 2019, 05:57 Moritz Lennert <mlennert at club.worldonline.be
wrote:

> On 23/02/19 23:16, Francois Chartier wrote:
> > What about if i dont want constant spacing but at certain ranges?
>
> Have you tried r.recode as Vero suggested ?
>
> Moritz
>
> >
> > Le sam. 23 févr. 2019 à 11:00, Veronica Andreo <veroandreo at gmail.com
> > <mailto:veroandreo at gmail.com>> a écrit :
> >
> >
> >
> >     El sáb., 23 feb. 2019 12:17, Markus Metz
> >     <markus.metz.giswork at gmail.com
> >     <mailto:markus.metz.giswork at gmail.com>> escribió:
> >
> >
> >
> >         On Sat, Feb 23, 2019 at 1:45 PM Francois Chartier
> >         <fra.chartier at gmail.com <mailto: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)
> >
> >
> > _______________________________________________
> > 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/20190225/22be2fd3/attachment.html>


More information about the grass-user mailing list