Empty output after cellstatistics in arcpy

Discussion created by sebastian_4m on Aug 14, 2012
Latest reply on Aug 14, 2012 by curtvprice
I am running cellstatistics in arcpy and I'm getting an empty output (values -3.40282e+038 to 3.40282e+038).  I have ran this script in the past with good results and now suddenly it stopped working

import arcpy
from import *
from arcpy import env
arcpy.env.overwriteOutput = True

# Variables to set
extent = "C:\\Users\\Sebastian\\Documents\\miami2\\boundaries.gdb\\cutter"
snapTo = "C:\\Users\\Sebastian\\Documents\\miami2\\cost.gdb\\ras"
sourceWorkspace = "C:\\Users\\Sebastian\\Documents\\miami2\\_0406.gdb"
targetWorkspace = "C:\Users\Sebastian\Documents\miami2\heatmaps"
nameOut = '_0406_'

#ArcPy environment settings
arcpy.env.workspace = sourceWorkspace
arcpy.env.snapRaster = snapTo
arcpy.env.extent = extent
arcpy.env.mask = extent
arcpy.env.scratchWorkspace = "C:\\Users\\Sebastian\\Documents\\miami2\\scratch.gdb"

# Check out the ArcGIS Spatial Analyst extension license

# Create list of rasters
rasterList = arcpy.ListRasters("_*")
print rasterList

# Calculates cell statistics
outStats = CellStatistics(rasterList, "SUM", "NODATA")

# Saves the output"\\"+nameOut)

all the inputs, snap raster, mask and extent(FC) are in the same coordinate system.

Please any help would be greatly appreciated