I have the following model in ModelBuilder:
Get Raster Properties looks like this . . .
I need to find the minimum cell size value to use as output. Any ideas on what tool I should use to replace Cell Statistics?
Thanks,
Renee
As I said above, the reason I need to get the minimum value of the cell size is because I need to create an empty output raster dataset that has compatible characteristics with the input rasters to be mosaicked together. However, I have another model that could get me around the above situation with having to create an output raster ahead of time. In the following model, I use "Mosaic to New Raster" rather than "Mosaic". This should work out well, but the output comes out crazy looking. Here is the model and the output . . .
Best Answer
Try this to get minimum cell size for collection of rasters:
Add the Calculate Value tool to your inner model (iterate selected rasters) after Collect Values.
Connect the Collect Values output as a precondition to Calculate Value.
Define a small function within Calculate Value (Code Block) as shown below.
Type this in the expression minCellSize("%Rasters%")
Set Double as the data type
Set the output from Calculate Value as a model Parameter (The output from Collect values remains a model parameter)
Connect the Calculate Value output to the cell size variable of the Mosaic To New Raster tool.