|
NAMEr.cross - Creates a cross product of the category values from multiple raster map layers. KEYWORDSraster, statistics SYNOPSISr.cross
Flags:Parameters:
DESCRIPTIONr.cross creates an output raster map layer representing all unique combinations of category values in the raster input layers (input=name,name,name, ...). At least two, but not more than 30, input map layers must be specified. The user must also specify a name to be assigned to the output raster map layer created by r.cross. OPTIONSWith the -z flag NULL values are not crossed. This means that if a NULL value occurs in any input data layer, this combination is ignored, even if other data layers contain non-NULL data. In the example given below, use of the -z option would cause 3 categories to be generated instead of 5. If the -z flag is not specified, then map layer combinations in which some values are NULL will be assigned a unique category value in the resulting output map. Category values in the new output map layer will be the cross-product of the category values from these existing input map layers. EXAMPLEFor example, suppose that, using two raster map layers, the
following combinations occur:
r.cross would produce a new raster map layer with 5
categories:
Note: The actual category value assigned to a particular combination in the result 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. SUPPORT FILESThe category file created for the output 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:
A random color table is also generated for the output map layer. SEE ALSOr.covar, r.stats AUTHORMichael Shapiro, U.S. Army Construction Engineering Research Laboratory SOURCE CODEAvailable at: r.cross source code (history) Latest change: Friday Dec 08 08:59:40 2023 in commit: bfef3d396184e6bf1b6b88279e456c5158edad14 Main index | Raster index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|