This file is indexed.

/usr/share/doc/grass-doc/html/r.cross.html is in grass-doc 6.4.3-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GRASS GIS manual: r.cross</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
<body bgcolor="white">

<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>

<h2>NAME</h2>
<em><b>r.cross</b></em>  - Creates a cross product of the category values from multiple raster map layers.
<h2>KEYWORDS</h2>
raster, statistics
<h2>SYNOPSIS</h2>
<b>r.cross</b><br>
<b>r.cross help</b><br>
<b>r.cross</b> [-<b>zq</b>] <b>input</b>=<em>string</em>[,<i>string</i>,...] <b>output</b>=<em>name</em>  [--<b>overwrite</b>]  [--<b>verbose</b>]  [--<b>quiet</b>] 

<h3>Flags:</h3>
<DL>
<DT><b>-z</b></DT>
<DD>Non-zero data only</DD>

<DT><b>-q</b></DT>
<DD>Run quietly</DD>

<DT><b>--overwrite</b></DT>
<DD>Allow output files to overwrite existing files</DD>
<DT><b>--verbose</b></DT>
<DD>Verbose module output</DD>
<DT><b>--quiet</b></DT>
<DD>Quiet module output</DD>
</DL>

<h3>Parameters:</h3>
<DL>
<DT><b>input</b>=<em>string[,<i>string</i>,...]</em></DT>
<DD>Names of 2-30 input raster maps</DD>

<DT><b>output</b>=<em>name</em></DT>
<DD>Name for output raster map</DD>

</DL>
<h2>DESCRIPTION</h2>

<em>r.cross</em> creates an <em>output</em> raster map layer representing
all unique combinations of category values in the raster input layers
(<b>input=</b><em>name,name,name</em>, ...).  At least two, but not more than
ten, <em>input</em> map layers must be specified.  The user must also
specify a name to be assigned to the <em>output</em> raster map layer
created by <em>r.cross</em>.

<h2>OPTIONS</h2>

The program will be run non-interactively if the user specifies 
the names of between 2-10 raster map layers be used as <em>input</em>,
and the name of a raster map layer to hold program <em>output</em>.

<p>

With the <b>-z</b> flag zero data values are not crossed. 
This means that if a zero category value occurs in any input data layer, 
the combination is assigned to category zero in the resulting map layer, 
even if other data layers contain non-zero data. 
In the example given above, use of the <b>-z</b> option 
would cause 3 categories to be generated instead of 5. 

<p>

If the <b>-z</b> flag is not specified, then map layer combinations 
in which not all category values are zero will be assigned 
a unique category value in the resulting map layer. 

<p>

Category values in the new <em>output</em> map layer will be the
cross-product of the category values from these existing <em>input</em> map
layers.

<h2>EXAMPLE</h2>

For example, suppose that, using two raster map layers, 
the following combinations occur: 

<div class="code"><pre>
          map1   map2
          ___________
           0      1
           0      2
           1      1
           1      2
           2      4
</pre></div>


<em>r.cross</em> would produce a new raster map layer with 5 categories: 

<div class="code"><pre>
          map1   map2   output
          ____________________
           0      1       1
           0      2       2
           1      1       3
           1      2       4
           2      4       5
</pre></div>

Note: The actual category value assigned to a particular combination 
in the <em>result</em> map layer is 
dependent on the order in which the combinations occur in the input map 
layer data and can be considered essentially random. 
The example given here is illustrative only. 

<h2>SUPPORT FILES</h2>

The category file created for the <em>output</em> raster map 
layer describes the 
combinations of input map layer category values which generated 
each category. 
In the above example, the category labels would be: 

<div class="code"><pre>
          category   category
          value      label
          ______________________________
             1       layer1(0) layer2(1)
             2       layer1(0) layer2(2)
             3       layer1(1) layer2(1)
             4       layer1(1) layer2(2)
             5       layer1(2) layer2(4)
</pre></div>

A random color table is also generated for the <em>output</em> map layer. 

<h2>NOTES</h2>

When run non-interactively, <em>r.cross</em> will not protect existing 
files in the user's mapset. If the user specifies an <em>output</em> 
file name that already exists in his mapset, the existing file will 
be overwritten by the new <em>r.cross</em> output. 

<h2>SEE ALSO</h2>

<em><a href="r.covar.html">r.covar</a></em>,
<em><a href="r.stats.html">r.stats</a></em>

<h2>AUTHOR</h2>

Michael Shapiro, U.S. Army Construction Engineering Research Laboratory

<p>
<i>Last changed: $Date: 2008-08-11 20:34:28 -0700 (Mon, 11 Aug 2008) $</i>
<HR>
<P><a href="index.html">Main index</a> - <a href="raster.html">raster index</a> - <a href="full_index.html">Full index</a></P>
<P>&copy; 2003-2013 <a href="http://grass.osgeo.org">GRASS Development Team</a></p>
</body>
</html>