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:
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,
Thanks,
Dónal
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:
Code:
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", "", "")
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,
Thanks,
Dónal