An arcpy merge process is failing due to the size of the datasets and I need to just merge every 100 tiles before it goes on to the next 100 tiles.
I wrote the following snippet but it is just putting the same tif into the list. It's probably something simple that I am doing wrong but would appreciate your advice....
arcpy.env.workspace=root+"\\Stage1\\"+name+"\\GeoTif"
tifList=arcpy.ListRasters('*.tif')
tifListCount=len(tifList)
tempTifList=[]
x=0
oldx=0
while x <= tifListCount:
for tif in tifList:
while x<(oldx+100):
tempTifList.append(tif)
x=x+1
print "List "+str(oldx)+" is"+ str(tempTifList)
# Add merge process on tempTifList
tempTifList=[]
oldx=x
Gives
, u'PFTI_Roads2_Z31.tif', u'PFTI_Roads2_Z31.tif', u'PFTI_Roads2_Z31.tif', u'PFTI_Roads2_Z31.tif', u'PFTI_Roads2_Z31.tif', u'PFTI_Roads2_Z31.tif', u'PFTI_Roads2_Z31.tif', u'PFTI_Roads2_Z31.tif', u'PFTI_Roads2_Z31.tif', u'PFTI_Roads2_Z31.tif'] List 75900 is[u'PFTI_Roads2_Z32.tif', u'PFTI_Roads2_Z32.tif', u'PFTI_Roads2_Z32.tif', u'PFTI_Roads2_Z32.tif', u'PFTI_Roads2_Z32.tif', u'PFTI_Roads2_Z32.tif', u'PFTI_Roads2_Z32.tif', u'PFTI_Roads2_Z32.tif', u'PFTI_Roads2_Z32.tif', u'PFTI_Roads2_Z32.tif