[GRASS-dev] Re: [GRASS GIS] #256: r.colors enhancement

GRASS GIS trac at osgeo.org
Thu Aug 14 01:01:03 EDT 2008


#256: r.colors enhancement
--------------------------+-------------------------------------------------
  Reporter:  wegmann      |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  trivial      |   Milestone:  6.4.0                    
 Component:  Raster       |     Version:  6.3.0                    
Resolution:               |    Keywords:  r.colors colors range    
  Platform:  Linux        |         Cpu:  Unspecified              
--------------------------+-------------------------------------------------
Comment (by glynn):

 Replying to [comment:3 wegmann]:

 > BTW is it possible to extract automatically the min/max values of a
 range of rasters with another module (like r.univar)? So that the user
 knows the range.

 You can do it for a single map with "r.info -r". For multiple maps, you
 could use e.g.:
 {{{
 eval `for map in $maps ; do r.info -r $map ; done | sed 's/^.*=//' | sort
 -n | sed -n -e '1s/^/min=/p;$s/^/max=/p'`
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/256#comment:4>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list