1

I am using ModelBuilder in ArcMap 10, this is my model: enter image description here

Cell Statistics shall be calculated for only those rasters dating in summer months (April - October), input raster name format is yYYYYmMM, e.g. y2007m10. Therefore my precondition as boolean value: Wert berechnen = Calculate value

The model is working but calculates cell statistics for all input rasters, not only for the summer months. Probably my code is incorrect, or are the elements wrongly ordered?

1
  • Try changing the summer and winter to true and false. I believe the boolean date type is expecting one of these two outputs.
    – Lou
    Mar 5, 2015 at 17:30

1 Answer 1

0

You are making the classic mistake with the iterator and collects tool, this needs to be in a sub-model as shown below:

Models

Note Raster and output_value are preconditions. The code in the calculate value tool is different too as Lou suggested:

Calculate Value code

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.