[winGRASS] creating max value raster

Patton, Eric epatton at nrcan.gc.ca
Wed Jan 18 10:01:12 EST 2006


From: wingrass-admin at grass.itc.it [mailto:wingrass-admin at grass.itc.it] On
Behalf Of Slaymaker, Dana
Sent: Tuesday, January 17, 2006 5:18 PM
To: wingrass at grass.itc.it
Subject: [winGRASS] creating max value raster



Hello

 

I want to create a uniform new raster composed of highest value found in a
source raster. I know I can do this by hand running r.describe and mapclac,
but I want to do it in a shell script. Any ideas?

 

Dana Slaymaker

Senior Program Officer 

Ecosystem Services Unit

Winrock International

 

----------------------------------------------------------------------------
----------------------------

 

How about using r.plane?
 
http://grass.itc.it/grass61/manuals/html61_user/r.plane.html
<http://grass.itc.it/grass61/manuals/html61_user/r.plane.html> 
 
You could run r.info and use awk or grep on the resulting output to capture
the maximum value of the input raster; then use the maximum to feed the
elevation parameter of r.plane.
 
~ Eric.
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Eric Patton
 
Technologist, Geo-Spatial Data Services
Geological Survey of Canada (Atlantic)
Natural Resources Canada
Bedford Institute of Oceanography
Dartmouth, Nova Scotia, Canada B2Y 4A2
 
Postal address: P.O. Box 1006
Courier address: 1 Challenger Drive
 
Telephone: (902)426-7732
Facsimile:  (902)426-4104
E-mail:        <mailto:epatton at NRCan.gc.ca> epatton at NRCan.gc.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-windows/attachments/20060118/a4ef45c0/attachment.html


More information about the grass-windows mailing list