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

« back to all changes in this revision

Viewing changes to raster/r.circle/r.circle.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
This module creates an output raster map centered on the <em>x,y</em> values specified
 
4
with the <em>coordinate</em> parameter, out to the edge of the current region.
 
5
The output cell values increase linearly from the specified center. The <em>min</em> 
 
6
and <em>max</em> parameters control the inner and outer output raster map radii, respectively. 
 
7
 
 
8
<p>The <em>mult</em> parameter can be used to multiply the output raster cells by a common factor.
 
9
Note that this parameter does not affect the output raster position or size; only the z-values
 
10
are changed with this parameter. 
 
11
<p>Binary-output raster maps (solid circles of one value) can be created
 
12
with the <b>-b</b> flag. Raster maps so created can be used to create
 
13
binary filters for use in <em>i.ifft</em> (inverse Fourier transformations;
 
14
apply filter with <em>r.mask</em>).
 
15
 
 
16
 
 
17
<h2>EXAMPLES</h2>
 
18
 
 
19
Generate a raster circle at current map center with a radius of 300m and outwardly
 
20
increasing raster values:
 
21
 
 
22
<div class="code"><pre>
 
23
EASTCENTER=`g.region -c |  awk ' /center easting:/ { print $3 }'`
 
24
NORTHCENTER=`g.region -c | awk ' /center northing:/ { print $3 }'`
 
25
r.circle output=circle coordinate=${EASTCENTER},${NORTHCENTER} max=300
 
26
</pre></div>
 
27
 
 
28
Generate a binary raster ring around current map center with an inner radius 
 
29
of 500m and an outer radius of 1000m:
 
30
 
 
31
<div class="code"><pre>
 
32
EASTCENTER=`g.region -c |  awk ' /center easting:/ { print $3 }'`
 
33
NORTHCENTER=`g.region -c | awk ' /center northing:/ { print $3 }'`
 
34
r.circle -b output=circle coordinate=${EASTCENTER},${NORTHCENTER} min=500 max=1000
 
35
</pre>  
 
36
 
 
37
 
 
38
<h2>SEE ALSO</h2>
 
39
<em>
 
40
<a href="g.region.html">g.region</a>,
 
41
<a href="g.remove.html">g.remove</a>, 
 
42
<a href="g.rename.html">g.rename</a>, 
 
43
<a href="i.fft.html">i.fft</a>, 
 
44
<a href="i.ifft.html">i.ifft</a>,
 
45
<a href="r.mask.html">r.mask</a>
 
46
</em>
 
47
 
 
48
 
 
49
<h2>AUTHOR</h2>
 
50
Bill Brown, U.S. Army Construction Engineering Research Laboratory<br>
 
51
Additional flag/min/max parameter by Markus Neteler, University of Hannover
 
52
 
 
53
<p><i>Last changed: $Date: 2014-12-12 00:16:30 +0100 (Fri, 12 Dec 2014) $</i>