d.rast.edit.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <h2>DESCRIPTION</h2>
  2. The <em>d.rast.edit</em> program allows users to interactively
  3. edit cell category values in a raster map layer displayed to the
  4. graphics monitor using a mouse cursor.
  5. <h2>USAGE</h2>
  6. <b><I>Note: this help page refers to the old Tcl/Tk version of this
  7. program. Parts of it may be out of date or wrong.</I></b>
  8. <h3>Overview window</h3>
  9. An overview window shows the entire map with a box showing the current
  10. editing region. The edit window shows the cells within the selected area.
  11. Click on a new spot on the overview window to move the editing area.
  12. Moving the editing view can take a while.
  13. <h3>Mouse and menus</h3>
  14. Cell editing is done using a mouse cursor to choose menu selections
  15. and indicate areas on the displayed raster map that are to be edited.
  16. <p>Selections available at the top of the edit window are <b>Save</b> and
  17. <b>Exit</b>.
  18. <p>
  19. As the mouse travels over the cells in the edit window you are shown the
  20. current coordinates and current cell values under the cursor.
  21. <p>To change the value of a cell put the new value to use in the "New value"
  22. box at the bottom left of the edit window under the coordinate information
  23. bar. A value of "*" indicates a NULL value should be used.
  24. <h3>Arrows</h3>
  25. This function is available for users editing aspect maps. The
  26. <em><a href="d.rast.arrow.html">d.rast.arrow</a></em> program is
  27. called, which draws arrows over the displayed
  28. cells to indicate the downslope direction of the cell.
  29. You can set the aspect map to use on the command line.
  30. Aspect maps are expected to be in regular "GRASS" format, as produced by
  31. <em><a href="r.slope.aspect.html">r.slope.aspect</a></em>; i.e. degrees
  32. counter-clockwise from east.
  33. <h2>NOTES</h2>
  34. There is no "undo" command or way to exit edit mode without saving
  35. changes.
  36. <p>Any MASK in place will be respected when writing the new raster map layer,
  37. including any edits to the MASKed areas.
  38. <h3>Geographic Region Concerns</h3>
  39. <em>d.rast.edit</em> reads the region definition for the raster map layer
  40. being edited from its internal cell header file. The new, edited copy of
  41. the raster layer will be created with the same resolution and region
  42. dimensions.
  43. <p>The primary bane of the <em>d.rast.edit</em> program involves large map
  44. layers with lots of rows and columns) and/or slow computers,
  45. since the program must read and write raster map layers row by row for
  46. the full size of the map layer as dictated by its region size and resolution.
  47. (The current region settings of north, south, east, and west
  48. will not limit the size of the edited copy of the map layer,
  49. since by use of the overview selection these values may change several
  50. times during the editing session).
  51. <h2>TODO</h2>
  52. <!-- not true, but it would be nice
  53. <em>d.rast.edit</em> will not create a new raster map layer if
  54. the user makes no cell edits while running the program.
  55. <p>-->
  56. It would be nice to incorporate a scrollable version of <em>
  57. <a href="d.legend.html">d.legend</a>
  58. </em>
  59. (such that one could see a label legend for files with many categories on
  60. a standard size sub-frame). It would be even nicer to be able
  61. to select the category values from a graphical legend when editing
  62. cell values (thereby saving a trip to the text frame to type in the
  63. new value).
  64. <p>Perhaps method(s) for multiple or mass cell edits would be useful.
  65. This could be done by providing modes in which the user may:
  66. <ol>
  67. <li> edit a block of cells to a given value by drawing a box;</li>
  68. <li> be able to choose a given value which is automatically used as
  69. the new value on each cell chosen until a different value is desired.</li>
  70. </ol>
  71. <p>There is no interrupt handling. <!-- ?? --> This could leave files in .tmp
  72. or (rarely) result in half-baked raster maps. The original file
  73. would survive unscathed by an interrupt at most any point in execution.
  74. Beware of exiting the program
  75. by means other than using <em>exit</em> on the <em>Main Menu</em>.
  76. <h2>SEE ALSO</h2>
  77. <em>
  78. <a href="d.rast.arrow.html">d.rast.arrow</a>,
  79. <a href="d.rast.num.html">d.rast.num</a>
  80. </em>
  81. <h2>AUTHOR</h2>
  82. Tcl/Tk and wxPython versions: Glynn Clements<br>
  83. <br>
  84. Replaces Xdriver version in C by Chris Rewerts,
  85. Agricultural Engineering,
  86. Purdue University
  87. <p><i>Last changed: $Date$</i>