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")
Yes. Raster
objects have a maximum
property. Just make sure statistics have been calculated for the raster or maximum
will return None
.
E.g.
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).
eg, x = arcpy.GetRasterProperties_management("udlen", "MAXIMUM")
Is that what you're after?