Syntax for Merge with map algebra in ArcGIS 10

3025
3
06-08-2011 11:52 PM
GraziaZulian
New Contributor II
Hi

With arcgis 9.x there was the Merge operator for the map Algebra syntax
Es:
MERGE (ras1, ras2)
What is the equivalent command for the new version?
How do I use it in a python script? Thanks, Grazia
0 Kudos
3 Replies
TimothyHales
Esri Notable Contributor
You will need to use the Mosaic to New Raster tool.

This is a Python sample for the MosaicToNewRaster tool to use in the Python Window.

 
import arcpy
from arcpy import 
envenv.workspace = "c:/data"arcpy.MosaicToNewRaster_management("land1.tif;land2.tif", "landnew.tif",\
                                                                                                       "World_Mercator.prj", "8_BIT_UNSIGNED",\ 
                                                                                                       "40", "1", "LAST","FIRST")


There is also a python standalone version at the bottom of the tool's help page:Mosaic To New Raster

Also see the following thread: Raster Calculator Merge Function in ArcGIS 10?
0 Kudos
GraziaZulian
New Contributor II
thank a lot
Grazia
0 Kudos