<div dir="ltr"><div><div>You could convert the raster layer to a vector layer. In the attribute table you'll have a column with the raster value (the watershed values) and the cat column, which gives you the unique identifier for each polygon. Next you just convert the vector back to raster using the cat column as raster value.<br>
<br></div>But depending on your data, you might also want to check out r.clump or r.clump2 (I think the latter is a add-on).<br><br></div>Paulo<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 5, 2013 at 11:03 PM, Stephen Sefick <span dir="ltr"><<a href="mailto:sas0025@auburn.edu" target="_blank">sas0025@auburn.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a raster map with watersheds that are the same value. Is there an easy way to reclass the map with every distinc basin to have a unique value?<br>
<br>
many thanks,<br>
<br>
<br>
-- <br>
Stephen Sefick<br>
******************************<u></u>********************<br>
Auburn University<br>
Biological Sciences<br>
331 Funchess Hall<br>
Auburn, Alabama<br>
36849<br>
******************************<u></u>********************<br>
<a href="mailto:sas0025@auburn.edu" target="_blank">sas0025@auburn.edu</a><br>
<a href="http://www.auburn.edu/~sas0025" target="_blank">http://www.auburn.edu/~sas0025</a><br>
******************************<u></u>********************<br>
<br>
Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals.<br>
<br>
-K. Mullis<br>
<br>
"A big computer, a complex algorithm and a long time does not equal science."<br>
<br>
-Robert Gentleman<br>
<br>
______________________________<u></u>_________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/grass-user</a><br>
</blockquote></div><br></div>