r.rescale.html 2.3 KB

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