One way would be to get raster properties, but, of course, you need to make sure that the raster datasets all have staticstics calculated first.Not sure if there is a faster way, as getrasterproperties is not the "fastest" method around.import arcpy
arcpy.env.workspace = "\\\\mcflight01\\MCFlightData\\HGIS\\Data\\imagery.gdb"
rasters = arcpy.ListRasters("*", "All")
for raster in rasters:
# Process: Get Raster Properties
min = arcpy.GetRasterProperties_management(raster, "MINIMUM", "")
# Process: Get Raster Properties (2)
max = arcpy.GetRasterProperties_management(raster, "MAXIMUM", "")
print "max for ",str(raster)," = ", max
print "min for ",str(raster)," = ", min
The above code will list all raster data sets in the workspace, then iterate through them and print out the max/min for each dataset that has statistics. Might want to run a separate script to calculate the statistics, as it is pretty time intesive, and would not need to be run each time.You would put the math that you need here where the print statements are, and it should perform your equation on each raster dataset in the workspace.R_