import arcpy import numpy from arcpy.sa import * r1 = Raster("ras1") r2 = Raster("ras2") arcpy.env.outputCoordinateSystem = r2.spatialReference x = r2.extent.XMin y = r2.extent.YMin point = arcpy.Point(x,y) a1 = arcpy.RasterToNumPyArray(r1) a2 = arcpy.RasterToNumPyArray(r2) b = numpy.concatenate((a1,a2)) c = arcpy.NumPyArrayToRaster(b,point,15)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.