2

I need to combine two raster layers into one. Layer A has soil information for the entire state, but contains gaps. Layer B contains soil information for Layer A's gaps. What's a simple way to combine these two rasters into one "seamless" layer? Both layers have the same four values (1 - 4) and are the same pixel size, type, etc.

I don't want to create a mosaic dataset, I want one actual layer.

3
  • Do you have spatial analyst extension? Nov 13, 2017 at 21:29
  • 1
    Con(isnull(a), b,a) using raster calculator.
    – FelixIP
    Nov 14, 2017 at 0:10
  • yes, i have spatial analyst extension!
    – michelle
    Nov 14, 2017 at 0:23

1 Answer 1

3

Use Raster calculator to solve this issue. It's pretty simple to use.

In this case, Con() evaluator is a good approach. It has this form:

Con(in_conditional_raster, true_raster, {false_raster})

So, in your case will be something like:

Con("Layer A - Band_1" > 0, "Layer A - Band_1", "Layer B - Band_1")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.