[GRASS-user] Re: Values from multiple raster - "to link" together
Achim Kisseler
ak7 at jupiter.uni-freiburg.de
Mon Nov 15 17:18:28 EST 2010
Am 15.11.2010 23:10, schrieb Gabriele N.:
>
> Excellent Alex:). The maps are as follows:
> A -> value 0, 1, 2, ... 19
> B -> value 0, 1001, 1002, 1003 .... 3351
> C -> value from 0, 1, 2, 3, 4 ...... 15
>
> So, I did as you suggested:
> r.mapcalc "output" = "(( "A" *1000000)+( "B" *100)+ "C" )"
> right?
> And .... if I had decimal numbers or strings instead of numbers?
>
> Thanks
>
> Gabriele
Strings in a raster map?
With decimal numbers it works the same way. Or you multiply the map with
number of digits and handle it as an integer map (maybe that does not
work because of limited bit information per pixel).
Achim
More information about the grass-user
mailing list