Anyone know how to set up if then logic in ModelBuilder to return a true or false value based upon whether a raster dataset is integer or float? My model converts integer raster to floats, but sometimes my rasters already are floats so I'm trying to save some time by removing the redundancy via an if-then tool. I checked the if data type logic and it doesn't contain float and double won't work.
Solved! Go to Solution.
if-then logic can be implemented. Did you see this?
If-then-else branching and logical tools—ArcGIS Pro | Documentation
in combination with the appropriate raster property.
Raster dataset properties—ArcGIS Pro | Documentation
if-then logic can be implemented. Did you see this?
If-then-else branching and logical tools—ArcGIS Pro | Documentation
in combination with the appropriate raster property.
Raster dataset properties—ArcGIS Pro | Documentation
Thank you, utilizing the get raster properties to return the value type, I was able to add that into an if value is logic to rule out whether the float tool was necessary or not. The property portion returns 9 for float and 2 for integer.