In relation to r.categorize, is there a "quick" way to extract as separate
(new) raster maps each of the desired categories?

For instance, I want to extract from an SRTM3 subset (with min=0 and max
2365) 100m "wide" elevation zones. How can I make a script for this... ?

Where can I read more stuff in order to learn scripting... (!).


Thank you in advance!


        I used the following command(s) to fo my job the hard way:

         r.mapcalc SRTM3_0to100="if(((SRTM3 >= 0) && (SRTM3 <=100)),100,null())"
         r.mapcalc SRTM3_100to200="if(((SRTM3 > 100) && (SRTM3 
<=200)),200,null())"
         r.mapcalc SRTM3_200to300="if(((SRTM3 > 200) && (SRTM3 
<=300)),300,null())"
         r.mapcalc SRTM3_300to400="if(((SRTM3 > 300) && (SRTM3 
<=400)),400,null())"
         r.mapcalc SRTM3_400to500="if(((SRTM3 > 400) && (SRTM3 
<=500)),500,null())"
         r.mapcalc SRTM3_500to600="if(((SRTM3 > 500) && (SRTM3 
<=600)),600,null())"
         r.mapcalc SRTM3_600to700="if(((SRTM3 > 600) && (SRTM3 
<=700)),700,null())"
         r.mapcalc SRTM3_700to800="if(((SRTM3 > 700) && (SRTM3 
<=800)),800,null())"
         ...
         ..
         .


Nikos Alexandris wrote:
> 
> In GRASS 6.2.2 (installed from the Ubuntu repo's) there is r.categorize
> with the very useful "categorization mode: rwidth".
> 
> What is the respective tool in GRASS6.3?
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/Is-there-an-r.categorize-like-command-in-GRASS-6.3---tf4888091.html#a13993463
Sent from the Grass - Users mailing list archive at Nabble.com.

_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to