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
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to