AnsweredAssumed Answered

Connecting information from 2 rasters to 1 raster.

Question asked by geonetadmin on May 3, 2013
Latest reply on May 3, 2013 by rborchert
Original User: lukasz_tom

Hi,
I'm looking for my problem's solution.
I've got 2 rasters:
one - with classification's output (*.tif - multiple value: 0-9):
[ATTACH=CONFIG]23989[/ATTACH]
and one - with classification of water's output (*.tif - value: 0-1):
[ATTACH=CONFIG]23990[/ATTACH]

I try to insert information from second raster to first raster. I mean:
if in pixel on first raster is NoData value and on second raster value in this the same pixel = 1, then value on output raster = 9 (Water ID), but if not - value from first raster in this pixel.
Eventually i want to obtain this result in on image:
[ATTACH=CONFIG]23991[/ATTACH]

Another step, which I want to obtain is fill all remaining NoData pixels value = 2 (Ground ID).
Does anyone know how solves this problem? I try to use Raster Calculator, but in my way it's not works.
I would appreciate. ;)

Attachments

Outcomes