[GRASS-SVN] r33509 - grass/trunk/raster/r.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 23 15:46:27 EDT 2008


Author: neteler
Date: 2008-09-23 15:46:27 -0400 (Tue, 23 Sep 2008)
New Revision: 33509

Modified:
   grass/trunk/raster/r.colors/r.colors.html
Log:
updated incl. stdin

Modified: grass/trunk/raster/r.colors/r.colors.html
===================================================================
--- grass/trunk/raster/r.colors/r.colors.html	2008-09-23 19:44:10 UTC (rev 33508)
+++ grass/trunk/raster/r.colors/r.colors.html	2008-09-23 19:46:27 UTC (rev 33509)
@@ -7,36 +7,38 @@
 following:
 
 <pre>
-     color type    description   
-     aspect        (aspect oriented grey colors)   
-     aspectcolr    (aspect oriented rainbow colors)     
-     bcyr          (blue through cyan through yellow to red)
-     bgyr          (blue through green through yellow to red)
-     byg           (blue through yellow to green colors)
-     byr           (blue through yellow to red colors)
-     curvature	   (for terrain curvatures (from v.surf.rst and r.slope.aspect curvature colors))
-     differences   (differences oriented colors)
-     elevation     (maps percentage ranges of raster values to elevation color ramp) 
-     etopo2        (rainbow color ramp for the ETOPO2 2-minute Worldwide Bathymetry/Topography dataset)
-     evi           (enhanced vegetative index colors)		     
-     grey          (grey scale)
-     grey1.0       (grey scale for raster values between 0.0-1.0)
-     grey255       (grey scale for raster values bewtween 0-255) 		    
-     grey.eq       (histogram-equalized grey scale)
-     grey.log      (histogram logarithmic transformed grey scale)
-     gyr           (green through yellow to red colors)
-     ndvi          (Normalized Difference Vegetation Index colors)
-     population    (color table covering human population classification breaks) 
-     rainbow       (rainbow color table)   
-     ramp          (color ramp)   
-     random        (random color table)   
-     rules         (create new color table based on user-specified rules)
-     ryb           (red through yellow to blue colors)
-     ryg           (red through yellow to green colors)
-     slope         (r.slope.aspect-type slope colors for raster values 0-90)
-     srtm          (color palette for Shuttle Radar Topography Mission elevation values) 
-     terrain       (global elevation color table covering -11000 to +8850m)
-     wave          (color wave)   
+     color type  description
+     -----------+----------------------------------------------------------------------------------
+     aspect      aspect oriented grey colors
+     aspectcolr  aspect oriented rainbow colors
+     bcyr        blue through cyan through yellow to red
+     bgyr        blue through green through yellow to red
+     byg         blue through yellow to green
+     byr         blue through yellow to red
+     celsius     blue to red for degree Celsius temperature
+     curvature   for terrain curvatures (from v.surf.rst and r.slope.aspect curvature colors)
+     differences differences oriented colors
+     elevation   maps percentage ranges of raster values to elevation color ramp
+     etopo2      rainbow color ramp for the ETOPO2 2-minute Worldwide Bathymetry/Topography dataset
+     evi         enhanced vegetative index colors
+     grey        grey scale
+     grey1.0     grey scale for raster values between 0.0-1.0
+     grey255     grey scale for raster values bewtween 0-255
+     gyr         green through yellow to red
+     ndvi        Normalized Difference Vegetation Index colors
+     population  color table covering human population classification breaks
+     rainbow     rainbow color table
+     ramp        color ramp
+     ryb         red through yellow to blue
+     ryg         red through yellow to green
+     sepia       yellowish-brown through to white
+     slope       r.slope.aspect-type slope colors for raster values 0-90
+     srtm        color palette for Shuttle Radar Topography Mission elevation values
+     terrain     global elevation color table covering -11000 to +8850m
+     wave        color wave
+     random      random color table
+     grey.eq     histogram-equalized grey scale
+     grey.log    histogram logarithmic transformed grey scale
 </pre>
 
 <p>
@@ -44,9 +46,8 @@
 to copy the color map.
 
 <p>
-Extra color tables (aspect, aspectcolr, bcyr, bgyr, byg, byr, curvature, differences,
-elevation, etopo2, evi, grey, grey1.0, grey255, gyr, ndvi, population, rainbow, ramp, ryb, ryg, slope, srtm, terrain, wave) are stored in $GISBASE/etc/colors/. 
-User-defined color tables can also be stored in this directory for access from the <em>color</em> parameter.
+All color tables are stored in $GISBASE/etc/colors/. Further user-defined color tables
+can also be stored in this directory for access from the <em>color</em> parameter.
 <p>
 The <b>-e</b> flag equalizes the original raster's color table. It can preclude
 the need for <em>grey.eq</em> rule, when used as
@@ -269,10 +270,14 @@
 
 <p>
 The color table can then by assigned to map <i>threecats</i> by the following
-GRASS command:
+GRASS commands (two ways are available):
 
 <div class="code"><pre>
-cat rules.file | r.colors -i map=threecats
+# read input from stdin
+cat rules.file | r.colors map=threecats rules=-
+
+# read directly from file
+r.colors map=threecats rules=rules.file
 </pre></div>
 
 <p><br>



More information about the grass-commit mailing list