Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.
To change the value of a cell put the new value to use in the "New value" box at the bottom left of the edit window. A value of "*" indicates a NULL value should be used.
Important: the new value in the "New value" box must be confirmed with ENTER, otherwise it is not yet active.
Any MASK in place will be respected when writing the new raster map layer, including any edits to the MASKed areas.
The primary bane of the d.rast.edit program involves large map layers with lots of rows and columns) and/or slow computers, since the program must read and write raster map layers row by row for the full size of the map layer as dictated by its region size and resolution. (The current region settings of north, south, east, and west will not limit the size of the edited copy of the map layer, since by use of the overview selection these values may change several times during the editing session).
g.region raster=elev_lid792_1m -p # pan to area of interest and edit raster cells (I used "102" as value to modifiy cells # Use: File > Save to save # then: File > Exit d.rast.edit input=elev_lid792_1m output=elev_lid792_1m_modified # comparison of raster statistics # original stats, note the min value r.univar -g elev_lid792_1m # modified map stats, note the min value r.univar -g elev_lid792_1m_modified
It would be nice to incorporate a scrollable version of d.legend (such that one could see a label legend for files with many categories on a standard size sub-frame). It would be even nicer to be able to select the category values from a graphical legend when editing cell values (thereby saving a trip to the text frame to type in the new value).
Perhaps method(s) for multiple or mass cell edits would be useful. This could be done by providing modes in which the user may:
There is no user-interrupt handling. This could leave files in .tmp or (rarely) result in half-baked raster maps. The original file would survive unscathed by an interrupt at most any point in execution. Beware of exiting the program by means other than using exit on the Main Menu.
Available at: d.rast.edit source code (history)
Latest change: Thursday Feb 03 11:10:06 2022 in commit: 547ff44e6aecfb4c9cbf6a4717fc14e521bec0be
Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
© 2003-2023 GRASS Development Team, GRASS GIS 8.2.2dev Reference Manual