3

I have two rasters (raster1 and raster2). The raster1 extent is smaller than raster2. I want to replace the value of raster2 pixels using raster1 pixels. How can I replace the values?

Chris W
15.8k2 gold badges30 silver badges47 bronze badges
asked Jun 1, 2014 at 11:50

1 Answer 1

1

Is it acceptable for you to use GDAL? If it is then you can do what you want with gdalwarp http://www.gdal.org/gdalwarp.html

The command to use is

gdalwarp raster1.tif raster2.tif

Command will write data from source image "raster1.tif" into target image "raster2.tif" and if the target image already exists and is of such a format that can be updated then pixels from raster1 will be written over the original pixels. Uncompressed geotiff is good for the output format. You can compress or convert the updated image afterwards if needed.

answered Jun 1, 2014 at 12:44
1
  • I have the same question. How can this be accomplished using only the tools native to arcgis (likely with spatial or 3d analyst)? Commented Nov 4, 2014 at 16:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.