[GRASS-user] elevation values of watershed basins

Thomas Adams Thomas.Adams at noaa.gov
Wed Jan 31 08:05:21 EST 2007


Temiz,

One way you could do it is this:

(1) create a raster mask for each basin
(2) for each basin, with the mask set, use r.describe to get the range 
in values (which gives the max)
(3) use r.mapcalc to set all but max. values to NULL
(4) use r.to.vect to convert the raster (max. elevation points) to 
vector points
(5) export the vector point(s) to an ascii file (if this is your goal)

So, this could be put into a shell script and automated for lots of 
basins. I'm sure there are other ways of doing this, but this is what 
came to mind.

Regards,
Tom


temiz wrote:
> hello
>
> Can you make a suggestion about how I can find the highest and lowest 
> elevation points of all watershed basins
> as vector points ?
>
> I mean, I have watershed map as vector. I need it's table includes 
> like "cat", "highest elevation value", "lowest elevation value"
>
> How can I do that ?
>
> regards
>


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:	thomas.adams at noaa.gov

VOICE:	937-383-0528
FAX:	937-383-0033




More information about the grass-user mailing list