[GRASS-SVN] r35753 - grass/trunk/raster/r.mapcalc
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 3 20:55:32 EST 2009
Author: hamish
Date: 2009-02-03 20:55:32 -0500 (Tue, 03 Feb 2009)
New Revision: 35753
Modified:
grass/trunk/raster/r.mapcalc/r.mapcalc.html
grass/trunk/raster/r.mapcalc/r3.mapcalc.html
Log:
whitespace
Modified: grass/trunk/raster/r.mapcalc/r.mapcalc.html
===================================================================
--- grass/trunk/raster/r.mapcalc/r.mapcalc.html 2009-02-04 01:43:30 UTC (rev 35752)
+++ grass/trunk/raster/r.mapcalc/r.mapcalc.html 2009-02-04 01:55:32 UTC (rev 35753)
@@ -75,6 +75,8 @@
is entering input to <em>r.mapcalc</em> on the command line, expressions
should be enclosed within single quotes. See NOTES, below.
<p>
+
+
<h2>OPERATORS AND ORDER OF PRECEDENCE</h2>
The following operators are supported:
<div class="code"><pre>
@@ -118,6 +120,8 @@
The logical operators give a 1 result if the comparison is true, 0 otherwise.
<p>
<p>
+
+
<h2>RASTER MAP LAYER NAMES</h2>
Anything in the expression which is not a number, operator, or function name
is taken to be a raster map layer name.
@@ -185,6 +189,8 @@
(This method of overriding the mapset search path is common to all
GRASS commands, not just <em>r.mapcalc</em>.)
<p>
+
+
<h2>THE NEIGHBORHOOD MODIFIER</h2>
Maps and images are data base files stored in raster format, i.e.,
two-dimensional matrices of integer values.
@@ -197,8 +203,9 @@
and <em>map[0,1]</em> refers to the cell one column to the right of the current cell.
This syntax permits the development of neighborhood-type filters within a single
map or across multiple maps.
+<p>
-<p>
+
<h2>RASTER MAP LAYER VALUES FROM THE CATEGORY FILE</h2>
Sometimes it is desirable to use a value associated with a category's
<em>label</em> instead of the category value itself. If a raster
@@ -238,6 +245,8 @@
a floating point number. I the category label does not start
with a number or is missing, it will be represented by NULL
(no data) in the resulting raster map.
+
+
<h2>GREY SCALE EQUIVALENTS AND COLOR SEPARATES</h2>
It is often helpful to manipulate the colors assigned to map categories.
This is particularly useful when the spectral properties of cells have meaning
@@ -316,6 +325,8 @@
red
</pre></div>
<p>
+
+
<h2>FUNCTIONS</h2>
The functions currently supported are listed in the table below.
The type of the result is indicated in the last column.
@@ -375,6 +386,8 @@
null() NULL value
</pre></div>
Note, that the row() and col() indexing starts with 1.
+
+
<h2>FLOATING POINT VALUES IN THE EXPRESSION</h2>
Floating point numbers are allowed in the expression. A floating point
number is a number which contains a decimal point:
@@ -399,6 +412,8 @@
<div class="code"><pre>
r.mapcalc "ndvi = float(lsat.4 - lsat.3) / (lsat.4 + lsat.3)"
</pre></div>
+
+
<h2>NULL support</h2>
<ul>
<li>Division by zero should result in NULL.
@@ -508,6 +523,8 @@
unknown quantity. E.g. if x and y are both unknown, then the values of
"x == y" and "x != y" are also unknown; if they both have unknown
values, the user doesn't know whether or not they both have the same value.
+
+
<h2>EXAMPLES</h2>
To compute the average of two raster map layers
<em>a</em> and <em>b</em>:
@@ -561,6 +578,8 @@
4, 50
100, 50
</pre></div>
+
+
<h2>NOTES</h2>
Extra care must be taken if the expression is given on the command line.
Some characters have special meaning to the UNIX shell.
@@ -593,6 +612,8 @@
<p>
The environment variable GRASS_RND_SEED is read to initialise the
random number generator.
+
+
<h2>BUGS</h2>
Continuation lines must end with a \ and have NO trailing white space
(blanks or tabs). If the user does leave white space at the end of
@@ -612,6 +633,8 @@
<p>
r.mapcalc does not print a warning in case of operations on NULL cells.
It is left to the user to utilize the isnull() function.
+
+
<h2>SEE ALSO</h2>
<b><a href="http://grass.osgeo.org/gdp/raster/mapcalc-algebra.pdf">r.mapcalc: An Algebra for GIS and Image
Processing</a></b>, by Michael Shapiro and Jim Westervelt, U.S. Army
@@ -633,10 +656,13 @@
<a href="r.colors.html">r.colors</a>,
<a href="r.fillnulls.html">r.fillnulls</a>
</em>
+
+
<h2>AUTHORS</h2>
Michael Shapiro, U.S.Army Construction Engineering
Research Laboratory
<p>
Glynn Clements
-<p><i>Last changed: $Date$</i>
+<p>
+<i>Last changed: $Date$</i>
Modified: grass/trunk/raster/r.mapcalc/r3.mapcalc.html
===================================================================
--- grass/trunk/raster/r.mapcalc/r3.mapcalc.html 2009-02-04 01:43:30 UTC (rev 35752)
+++ grass/trunk/raster/r.mapcalc/r3.mapcalc.html 2009-02-04 01:55:32 UTC (rev 35753)
@@ -75,6 +75,8 @@
is entering input to <em>r3.mapcalc</em> on the command line, expressions
should be enclosed within single quotes. See NOTES, below.
<p>
+
+
<h2>OPERATORS AND ORDER OF PRECEDENCE</h2>
The following operators are supported:
<div class="code"><pre>
@@ -118,6 +120,8 @@
The logical operators give a 1 result if the comparison is true, 0 otherwise.
<p>
<p>
+
+
<h2>3D GRID NAMES</h2>
Anything in the expression which is not a number, operator, or function
name is taken to be a 3D grid name. Examples:
@@ -182,6 +186,8 @@
method of overriding the mapset search path is common to all GRASS commands,
not just <em>r3.mapcalc</em>.)
<p>
+
+
<h2>THE NEIGHBORHOOD MODIFIER</h2>
3D grids are data base files stored in voxel format, i.e., three-dimensional
matrices of float/double values. In <em>r3.mapcalc</em>, 3D grids may be
@@ -198,6 +204,8 @@
grid or across multiple 3D grids.
<p>
+
+
<h2>FUNCTIONS</h2>
The functions currently supported are listed in the table below.
The type of the result is indicated in the last column.
@@ -260,6 +268,8 @@
null() NULL value
</pre></div>
Note, that the row(), col() and depth() indexing starts with 1.
+
+
<h2>FLOATING POINT VALUES IN THE EXPRESSION</h2>
Floating point numbers are allowed in the expression. A floating point
number is a number which contains a decimal point:
@@ -284,6 +294,8 @@
<div class="code"><pre>
r3.mapcalc "ratio = float(soil.4 - soil.3) / soil.3)"
</pre></div>
+
+
<h2>NULL support</h2>
<ul>
<li>Division by zero should result in NULL.
@@ -393,6 +405,8 @@
unknown quantity. E.g. if x and y are both unknown, then the values of
"x == y" and "x != y" are also unknown; if they both have unknown
values, the user doesn't know whether or not they both have the same value.
+
+
<h2>EXAMPLES</h2>
To compute the average of two 3D grids
<em>a</em> and <em>b</em>:
@@ -445,6 +459,8 @@
4, 50
100, 50
</pre></div>
+
+
<h2>NOTES</h2>
Extra care must be taken if the expression is given on the command line.
Some characters have special meaning to the UNIX shell.
@@ -472,6 +488,8 @@
<p>
The environment variable GRASS_RND_SEED is read to initialise the
random number generator.
+
+
<h2>BUGS</h2>
Continuation lines must end with a \ and have NO trailing white space
(blanks or tabs). If the user does leave white space at the end of
@@ -492,6 +510,7 @@
r3.mapcalc does not print a warning in case of operations on NULL cells.
It is left to the user to utilize the isnull() function.
+
<h2>SEE ALSO</h2>
<b><a href="http://grass.osgeo.org/gdp/raster/mapcalc-algebra.pdf">r3.mapcalc: An Algebra for GIS and Image
Processing</a></b>, by Michael Shapiro and Jim Westervelt, U.S. Army
@@ -503,9 +522,12 @@
1991)
<p>
<em><a href="r.mapcalc.html">r.mapcalc</a></em>
+
+
<h2>AUTHORS</h2>
Tomas Paudits & Jaro Hofierka, funded by GeoModel s.r.o., Slovakia
<br><a href="mailto:tpaudits at mailbox.sk">tpaudits at mailbox.sk</a>,
<a href="MAILTO:hofierka at geomodel.sk">hofierka at geomodel.sk</a>
-<p><i>Last changed: $Date$</i>
+<p>
+<i>Last changed: $Date$</i>
More information about the grass-commit
mailing list