I have a land surface temperature raster file and I want the max and min of it.
minLSTresult = arcpy.GetRasterProperties_management(raster_result, "MINIMUM")
minLST = minLSTresult.getOutput(0)
minLST
returns u'261.22'
. How could I only get the number of it?
Best Answer
Create a raster object using the full path to your raster. Raster objects have the properties
minimum
andmaximum
.Or you can use your method and convert the output from
unicode
tofloat
: