env.workspace = workspace for rasters in arcpy.ListRasters(): evi = arcpy.Raster(rasters) CellStats = CellStatistics([evi], "MAXIMUM", "DATA") CellStats.save(output + "MeanMax")
rasterlist = [] for rasters in arcpy.ListRasters(): rasterlist.append(rasters) outcellstats = CellStatistics(rasterlist, "MAXIMUM", "DATA") outcellstats.save(output + "maximum_2006")