2

I am using ArcGIS Desktop 10.5 and I am unable to find how to replace a part of a raster with another raster.

I have a Raster for topography and for a part of it I need to recreate a past morphology which was done by creating a new raster from isoline but only for a part of it as briefly shown here:

replace a part of a raster with a smaller raster

How can I do it?

2

Assuming that you already masked your "green" raster with NoData values where you don't want to replace the "red" values, Then you can use conditions in raster calculator (Map algebra tool). This would be a code like below

Con(IsNull("green"), "red", "green")

Which means: if the green raster is noData, then use the value of the red raster, otherwise use "green".

In the environment variable, make sure that you set the extent to maximum extent of inputs.

  • thanks. But infortunately the small green raster is smaller than the red one. So is it possible to create a mask larger than the greenraster or should i mask the red one and then use the mask to compute. – Pablo Poulain Oct 12 '17 at 11:29
  • this shouldn't be a problem: absence of data = NoData. Just make sure that your output has the size of the largest raster – radouxju Oct 12 '17 at 12:04

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.