1r.rescale(1)                  Grass User's Manual                 r.rescale(1)
2
3
4

NAME

6       r.rescale   -  Rescales  the  range  of category values in a raster map
7       layer.
8

KEYWORDS

10       raster
11

SYNOPSIS

13       r.rescale
14       r.rescale help
15       r.rescale [-q] input=string  [from=min,max]   output=string  to=min,max
16       [title="phrase"]   [--overwrite]  [--verbose]  [--quiet]
17
18   Flags:
19       -q
20           Quietly
21
22       --overwrite
23           Allow output files to overwrite existing files
24
25       --verbose
26           Verbose module output
27
28       --quiet
29           Quiet module output
30
31   Parameters:
32       input=string
33           The name of the raster map to be rescaled
34
35       from=min,max
36           The  input  data range to be rescaled (default: full range of input
37           map)
38
39       output=string
40           The resulting raster map name
41
42       to=min,max
43           The output data range
44
45       title=
46           Title for new raster map
47

DESCRIPTION

49       The r.rescale program rescales the range of category  values  appearing
50       in a raster map layer.  A new raster map layer, and an appropriate cat‐
51       egory file and color table based upon the original  raster  map  layer,
52       are  generated  with category labels that reflect the original category
53       values that produced each category.  This command is useful for produc‐
54       ing  representations  with a reduced number of categories from a raster
55       map layer with a large range  of  category  values  (e.g.,  elevation).
56       Rescaled  map  layers are appropriate for use in such GRASS programs as
57       r.stats, r.report, and r.coin.
58

EXAMPLE

60       To rescale an elevation raster map layer with category  values  ranging
61       from  1090  meters  to  1800 meters into the range 0-255, the following
62       command line could be used:  r.rescale  input=elevation  from=1090,1800
63       output=elevation.255 to=0,255
64

NOTES

66       Category  values  that  fall  beyond  the input range will become NULL.
67       This allows the user to select a subset  of  the  full  category  value
68       range  for  rescaling if desired.  This also means that the user should
69       know the category value range for the input raster map layer.  The user
70       can  request  the  r.rescale  program  to  determine this range, or can
71       obtain it using the r.info command.  If the  category  value  range  is
72       determined using r.rescale, the input raster map layer is examined, and
73       the minimum and maximum non-NULL category values are  selected  as  the
74       input range.
75

SEE ALSO

77       r.coin, r.describe, r.info, r.mapcalc, r.reclass, r.report, r.resample,
78       r.stats
79

AUTHOR

81       Michael Shapiro, U.S.Army Construction Engineering Research Laboratory
82
83       Last changed: $Date: 2003-05-06 17:35:18 +0200 (Tue, 06 May 2003) $
84
85       Full index
86
87       © 2003-2008 GRASS Development Team
88
89
90
91GRASS 6.3.0                                                       r.rescale(1)
Impressum