You might have already thought of these techniques, but here are two
options that quickly come to mind...

You should be be able to mask each watershed individually (from a vector
layer), and then run r.reclass on the area within each watershed boundary.

Alternatively, if you have a vector layer for watershed boundaries, what
about creating a numeric attribute in which you assign each unique
watershed a different number. Then, rasterize the watershed layer.

If you have a lot of watersheds, it seems like the second option would be
easier... and there obviously might be a more elegant solution that I'm not
aware of.

Hope that helps!
Mike


On Fri, Jul 5, 2013 at 2:03 PM, Stephen Sefick <[email protected]> wrote:

> 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?
>
> many thanks,
>
>
> --
> Stephen Sefick
> ****************************************************
> Auburn University
> Biological Sciences
> 331 Funchess Hall
> Auburn, Alabama
> 36849
> ****************************************************
> [email protected]
> http://www.auburn.edu/~sas0025
> ****************************************************
>
> 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.
>
>                                 -K. Mullis
>
> "A big computer, a complex algorithm and a long time does not equal
> science."
>
>                               -Robert Gentleman
>
> ______________________________**_________________
> grass-user mailing list
> [email protected]
> http://lists.osgeo.org/**mailman/listinfo/grass-user<http://lists.osgeo.org/mailman/listinfo/grass-user>
>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to