Mosaic to New Raster

Discussion created by donalkc on Jul 28, 2013
Latest reply on Jul 29, 2013 by Caleb1987
Hi all,

I'm having some trouble; I'm trying to use the mosaic to new raster tool but it keeps failing on me. It doesn't seem to be able to recognise the the input rasters (tiffs). Here is the code I'm using:

input_rasters = arcpy.GetParameterAsText(5), arcpy.GetParameterAsText(6), arcpy.GetParameterAsText(7), arcpy.GetParameterAsText(8)
output_location = "C:/Test/Prog_1.gdb"
arcpy.MosaicToNewRaster_management(input_rasters, output_location, "R_Dataset", "", "", "", "1", "", "")

I've tried using square brackets, and semi-colons etc but to no avail. I also tried using a multivalue input but that doens't seem to work either. The funny thing is the tool works pefectly when I hardcode all the paths into it. I'm at a bit of a loss.

Would it have something to do with the way I set the workspace? I have it set to the workspace that contains the tiffs.

Any advice appreciated,