I am trying to extract monthly layers from a multi-year stack and then re-stack them by month. I am using make raster layer to make temporary layers and append them to a list to use Composite Bands tool for re-stacking. However, it appears that the composite band tool does not recognize the input (ERROR 000732: Input Rasters: Dataset ... does not exist or is not supported). I used a similar method to create temporary layers before, however not from a stack but from a list of individual files, the composite band tool recognized the input and functioned well.
How can I identify the problem?
import arcpy, os arcpy.env.workspace = 'D:/GIMMSdata' from arcpy.sa import * arcpy.CheckOutExtenstion = 'Spatial' list_NDVI =  for i in range(1, 205, 12): lyrName = 'GimmsNDVI' + str(i) + '.tif' + '_temp' print(str(lyrName)) list_NDVI.append(arcpy.MakeRasterLayer_management('D:/GIMMSdata/GIMMS50N.tif',lyrName, '', '', i)) i = i + 12 print(i) arcpy.CompositeBands_management(list_NDVI, 'd:/GIMMSdata/GimmsNDVIJan.dat')