ayoubah

Mosaic to New raster using python

Discussion created by ayoubah on Apr 8, 2012
Latest reply on Aug 14, 2012 by jskinner-esristaff
Mosaic to New raster using python
Hello!!
I am trying to mosaic several aster gdem file using python in arcgis 10.
i was found a script to do that for two aster but i have got more than 10 files to merge.
the script i used is :


import arcgisscripting
gp = arcgisscripting.create()

try:
# Set local variables
InRaster = "C:/Users/mycomputer/Desktop/dem/ASTGTM2_N27W001_dem.tif;C:/Users/mycomputer/Desktop/dem/ASTGTM2_N27W002_dem.tif"
OutWorkspace = "C:/Users/mycomputer/Desktop"

# Process: MosaicToNew

gp.MosaicToNewRaster_management(Inraster, OutWorkspace, "all_raster.tif", "#", "16_BIT_UNSIGNED", "#","1", "BLEND", "MATCH")

except:
# Print error message if an error occurs
gp.GetMessages()

Need some help for processing

Outcomes