~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to raster/r.rescale/description.html

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<h2>DESCRIPTION</h2>
2
 
 
3
 
The <em>r.rescale</em> program rescales the range of
4
 
category values appearing in a raster map layer.  A new
5
 
raster map layer, and an appropriate category file and
6
 
color table based upon the original raster map layer, are
7
 
generated with category labels that reflect the original
8
 
category values that produced each category.  This command
9
 
is useful for producing representations with a reduced
10
 
number of categories from a raster map layer with a large
11
 
range of category values (e.g., elevation).
12
 
<em>Rescaled</em> map layers are appropriate for use in
13
 
such GRASS programs as
14
 
 
15
 
<em><a href="r.stats.html">r.stats</a></em>,
16
 
<em><a href="r.report.html">r.report</a></em>, and 
17
 
<em><a href="r.coin.html">r.coin</a></em>.
18
 
 
19
 
<h2>EXAMPLE</h2>
20
 
 
21
 
To rescale an elevation raster map layer with category
22
 
values ranging from 1090 meters to 1800 meters into the
23
 
range 0-255, the following command line could be used
24
 
(without the <em>from</em> parameter, the full value range will 
25
 
be used):
26
 
 
27
 
<div class="code"><pre>
28
 
r.rescale input=elevation from=1090,1800 output=elevation.255 to=0,255
29
 
</pre></div>
30
 
 
31
 
<h2>NOTES</h2>
32
 
 
33
 
Category values that fall beyond the input range will
34
 
become NULL.  This allows the user to select a subset of
35
 
the full category value range for rescaling if desired.
36
 
This also means that the user should know the category
37
 
value range for the input raster map layer.  The user can
38
 
request the </b><em>r.rescale</em> program to determine
39
 
this range, or can obtain it using the
40
 
<em><a href="r.describe.html">r.describe</a></em> or <em><a href="r.info.html">r.info</a></em> 
41
 
command.  If the category value range is determined using
42
 
<em>r.rescale</em>, the input raster map layer is examined,
43
 
and the minimum and maximum non-NULL category values are
44
 
selected as the input range.
45
 
 
46
 
<h2>SEE ALSO</h2>
47
 
 
48
 
<em><a href="r.coin.html">r.coin</a></em>,
49
 
<em><a href="r.describe.html">r.describe</a></em>,
50
 
<em><a href="r.info.html">r.info</a></em>,
51
 
<em><a href="r.mapcalc.html">r.mapcalc</a></em>,
52
 
<em><a href="r.reclass.html">r.reclass</a></em>,
53
 
<em><a href="r.rescale.eq.html">r.rescale.eq</a></em>,
54
 
<em><a href="r.report.html">r.report</a></em>,
55
 
<em><a href="r.resample.html">r.resample</a></em>,
56
 
<em><a href="r.stats.html">r.stats</a></em>
57
 
 
58
 
<h2>AUTHOR</h2>
59
 
Michael Shapiro,
60
 
U.S.Army Construction Engineering Research Laboratory
61
 
 
62
 
<p><i>Last changed: $Date: 2010-10-06 18:11:45 +0200 (Wed, 06 Oct 2010) $</i>