<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>I am trying to create a single color map to overlay the elevation map to show the different elevations. I clicked on properties of my raster map and was able to create the color map by choosing psudocolors but I do not have any luck when I pick custom color map. Does anyone have any suggestions?<br><br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">----- Original Message ----<br>From: Glynn Clements <glynn@gclements.plus.com><br>To: Milton Cezar Ribeiro <miltinho.astronauta@gmail.com><br>Cc: grass-user@lists.osgeo.org<br>Sent: Friday, October 10, 2008 10:47:08 AM<br>Subject: Re: [GRASS-user] r.reclass using pipe from r.stats?<br><br>
<br>Milton Cezar Ribeiro wrote:<br><br>> I have a raster map with all categories (~50)<br>> and I have about 500 spatial subsets of the same<br>> original map. As is expected, each of spatial subset<br>> map have less categories than the original map.<br>> <br>> I can check the list of categories for each subset<br>> map using r.stats. But I need to generate a new<br>> set of maps with the spatial range of original map,<br>> but keeping only those classes of my original map.<br>> <br>> Just supose that "r.stats mysubset1" result something<br>> like:<br>> <br>> 2<br>> 4<br>> 9<br>> 11<br>> 43<br>> <br>> So, I would like that my new map with my full spatial<br>> range keep only these 5 categories, and all other<br>> categories come to be "no data".<br>> <br>> I know if I generate a rule file with<br>> 2=2<br>> 4=9<br>> 11=11<br>> 43=43<br>> I can get the desired results,
but as the number<br>> of spatial subsets is very large I would like turn it<br>> more operational.<br>> <br>> Is there a suggestion of how can I do this using pipe like<br>> r.stats mysubset1 | r.reclass mysubset1 mysubset1_fullrange rules= -??<br><br> r.stats mysubset1 | awk '{print $1,"=",$1} ; END {print "* = NULL"}' | r.reclass ...<br><br>-- <br>Glynn Clements <<a ymailto="mailto:glynn@gclements.plus.com" href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>_______________________________________________<br>grass-user mailing list<br><a ymailto="mailto:grass-user@lists.osgeo.org" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></div></div></div><br>
</body></html>