~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to raster/r.what.color/r.what.color.html

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<h2>DESCRIPTION</h2>
 
2
 
 
3
<em>r.what.color</em> outputs the color associated with user-specified
 
4
category values in a raster input map.
 
5
<p>Values may be specified either using the <b>values=</b> option, or by
 
6
specifying the <b>-i</b> flag and passing the values on
 
7
<tt>stdin</tt>, one per line.
 
8
<p>For each value which is specified, a line of output will be generated
 
9
consisting of the category value followed by the color, e.g.:
 
10
 
 
11
<div class="code"><pre>
 
12
r.what.color input=elevation.dem value=1500
 
13
1500: 223:127:31
 
14
</pre></div>
 
15
 
 
16
<p>If the input map is an integer (CELL) map, the category will be
 
17
written as an integer (no decimal point), otherwise it will be written
 
18
in floating point format (<i>printf("%.15g")</i> format).
 
19
 
 
20
<p>If the lookup fails for a value, the color will be output as an
 
21
asterisk, e.g.:
 
22
 
 
23
<div class="code"><pre>
 
24
r.what.color input=elevation.dem value=9999
 
25
9999: *
 
26
</pre></div>
 
27
 
 
28
<p>If a value cannot be parsed, both the value and the color will be
 
29
output as an asterisk, e.g.:
 
30
 
 
31
<div class="code"><pre>
 
32
r.what.color input=elevation.dem value=bogus
 
33
*: *
 
34
</pre></div>
 
35
 
 
36
<p>The format can be changed using the <b>format=</b> option. The value
 
37
should be a <i>printf()</i>-style format string containing three
 
38
conversion specifiers for the red, green and blue values respectively,
 
39
e.g.:
 
40
 
 
41
<div class="code"><pre>
 
42
r.what.color input=elevation.dem value=1500 format='%02x:%02x:%02x'
 
43
1500: df:7f:1f
 
44
</pre></div>
 
45
 
 
46
<p>If your system supports the <i>%m$</i> syntax, you can change the
 
47
ordering of the components, e.g.:
 
48
 
 
49
<div class="code"><pre>
 
50
r.what.color input=elevation.dem value=1500 format='%3$02x:%2$02x:%1$02x'
 
51
1500: 1f:7f:df
 
52
</pre></div>
 
53
 
 
54
<p>Common formats:<br>
 
55
<ul>
 
56
<li>Tcl/Tk: <tt>format="#%02x%02x%02x"</tt>
 
57
<li>WxPython: <tt>format='"#%02x%02x%02x"'</tt>  or  <tt>format='"(%d,%d,%d)"'</tt>
 
58
</ul>
 
59
 
 
60
 
 
61
<h2>SEE ALSO</h2>
 
62
 
 
63
<em>
 
64
<a href="r.what.html">r.what</a>
 
65
</em>
 
66
 
 
67
<h2>AUTHOR</h2>
 
68
Glynn Clements