|
@@ -72,12 +72,15 @@ discriminated; any parameter values left unspecified are
|
|
|
set to their default values.
|
|
|
|
|
|
<p>
|
|
|
-All raster maps used to generate signature file must have band reference
|
|
|
-set. Use <em><a href="r.support.html">r.support</a></em> to set
|
|
|
+For all raster maps used to generate signature file it is recommended
|
|
|
+to have band reference set.
|
|
|
+Use <em><a href="r.support.html">r.support</a></em> to set
|
|
|
band references of each member of the imagery group.
|
|
|
Signatures generated for one scene are suitable for classification
|
|
|
of other scenes as long as they consist of same raster bands
|
|
|
-(band references match).
|
|
|
+(band references match). If band references are not set, it will be
|
|
|
+possible to use obtained signature file to classify only the same
|
|
|
+imagery group used for generating signatures.
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
|
|
|
@@ -263,22 +266,11 @@ Preparing the statistics for unsupervised classification of
|
|
|
a LANDSAT subscene in North Carolina:
|
|
|
|
|
|
<div class="code"><pre>
|
|
|
-## Prepare imagery for classification
|
|
|
-# Skip this step if your rasters already have band references defined
|
|
|
-# Define band references for all LANDSAT bands in mapset PERMANENT
|
|
|
-g.mapset mapset=PERMANENT
|
|
|
-r.support map=lsat7_2002_10 bandref=TM7_1
|
|
|
-r.support map=lsat7_2002_20 bandref=TM7_2
|
|
|
-r.support map=lsat7_2002_30 bandref=TM7_3
|
|
|
-r.support map=lsat7_2002_40 bandref=TM7_4
|
|
|
-r.support map=lsat7_2002_50 bandref=TM7_5
|
|
|
-r.support map=lsat7_2002_61 bandref=TM7_61
|
|
|
-r.support map=lsat7_2002_62 bandref=TM7_62
|
|
|
-r.support map=lsat7_2002_70 bandref=TM7_7
|
|
|
-r.support map=lsat7_2002_80 bandref=TM7_8
|
|
|
-g.mapset mapset=user1 # replace user1 with your mapset name
|
|
|
-
|
|
|
-## Real work starts here
|
|
|
+# To use signature file for classification of a different group, set
|
|
|
+# band references for each group member. In this example we'll create
|
|
|
+# signature file suitable only for the same group and thus band
|
|
|
+# references are not mandatory.
|
|
|
+
|
|
|
# Set computational region to match the scene
|
|
|
g.region raster=lsat7_2002_10 -p
|
|
|
|