r.circle.html 2.0 KB

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