[GRASS-user] d.rast.edit with multiple maps

[please keep conversation on the ML, that other can benefit ]

I’m using GRASS on the CLI

How will you do visually raster editing on the CLI?

Can you provide the script you used in your test? Or does it >require the GUI?

there is no script; have a look in the wxGUI Manual, E.g. setting transparency by right click in the layer manager, and choose raster edit in the map display to visually edit raster cells.

···

On Sat, Aug 19, 2017 at 9:50 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

Ken Mankoff wrote

Hi,

For the first time, I need to edit a raster. I need to improve some
hydrological routing. I’d like to edit a DEM, but be able to view a slope
map and the flow direction (output from r.watershed) to help with the
editing. Does this capability exist in GRASS or an addon?

just tried it with following steps:

  • raster map A as background, e.g. slope
  • raster map B which should be edited, set transparency e.g. to 50%, to see
    also background map A
  • in map display → Raster digitizer, then you can edit map B with
    transparency e.g. to 50% and see map A in the background

best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/d-rast-edit-with-multiple-maps-tp5331874p5331876.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Sun, Aug 20, 2017 at 1:23 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

[please keep conversation on the ML, that other can benefit ]

Yes of course. For some reason GMail defaulted to "reply" instead of "reply
to all"

> I'm using GRASS on the CLI

How will you do visually raster editing on the CLI?

I typically call d.rast and d.vect and etc. from the CLI, and when first
trying d.rast.edit did that from CLI too. Yes those commands do bring up a
window. Thanks for your advice below, I will look into the larger GRASS
wxGUI for the transparency.

Anyway, I expect this will help, but may not be a complete solution... I'd
like to be able to examine multiple rasters while editing 1 (or >1).
Something like g.gui.mapswipe, but with more linked maps, would be good. It
seems this needs to be a custom tool I write, perhaps using the Python API.

Thanks again for the hint about transparency,

   -k.

I’m able to start the “Raster Digitizer” tool, but then cannot do anything.
A second toolbar opens and the mouse cursor changes to a pen (edit mode?), but when I click on the map, I get a dialog that says, “Please select the first raster map”. I’m not sure where/what/how to select this, and I have been unable to find documentation about this new tool.

How would one go about removing a hill from a DEM? I imagine drawing a new raster by digitizing an area, then using it to set the hill region in the DEM to NULL, then interpolating the DEM to fill in the now-removed hill. Does this seem like a reasonable workflow?

Thanks,

-k.

···

On Sun, Aug 20, 2017 at 1:46 PM, Ken Mankoff <mankoff@gmail.com> wrote:

On Sun, Aug 20, 2017 at 1:23 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

[please keep conversation on the ML, that other can benefit ]

Yes of course. For some reason GMail defaulted to “reply” instead of “reply to all”

I’m using GRASS on the CLI

How will you do visually raster editing on the CLI?

I typically call d.rast and d.vect and etc. from the CLI, and when first trying d.rast.edit did that from CLI too. Yes those commands do bring up a window. Thanks for your advice below, I will look into the larger GRASS wxGUI for the transparency.

Anyway, I expect this will help, but may not be a complete solution… I’d like to be able to examine multiple rasters while editing 1 (or >1). Something like g.gui.mapswipe, but with more linked maps, would be good. It seems this needs to be a custom tool I write, perhaps using the Python API.

Thanks again for the hint about transparency,

-k.