I am using ArcGIS Pro 2.4.
In the following equation, can "X" be replaced with the maximum cell value of another raster? Alternately, replacing "X" with a field from a table would work.
Con("udlen", 1, 0, "Value > X")
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Raster objects have a
maximum property. Just make sure statistics have been calculated for the raster or
maximum will return
Con("my_raster.tif" > "other_raster.tif".maximum, value_if_true, value_if_false)
You could use the
MAXIMUM argument in
arcpy.GetRasterProperties_management() to get the highest cell value in the raster. See the documentation for Get Raster Properties (Data Management).
x = arcpy.GetRasterProperties_management("udlen", "MAXIMUM")
Is that what you're after?