I am trying to extract minimum values from about 300 raster files (GeoTIFF) - for example an output table containing raster names against their minimum values. I would like to automate the process. I have searched this and found most results use ArcGIS Pro. Is it is possible to replicate the processes in ArcGIS Desktop (and Model Builder)?
I have tried following python code but got error message.
import arcpy
#Get the geoprocessing result object
Result = arcpy.GetRasterProperties_management("D:\New folder\LOSasc.tif", "MINIMUM")
minresult= Result.getOutput(0)`
error message:
Runtime error Traceback (most recent call last): File "", line 3, in File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\management.py", line 14996, in GetRasterProperties raise e ExecuteError: ERROR 001100: Failed because no statistics are available. Failed to execute (GetRasterProperties)
Is this command correct for what I want? Can it be used for extracting min values from all 300 Geotif? Why am I getting such error?
gdalinfo
gives you this information by default, but there's probably a cleaner way