Select to view content in your preferred language

RASTER ITERATION AND RASTER CALCULATOR

4640
15
07-29-2013 06:49 AM
anTonialcaraz
Frequent Contributor
Hi,

I'm trying to calculate Maximum Oxygen Content (MOC) from Temperature and Salinity raster layers in Model Builder.
I have 15 different sea depth layers and 12 different months making a total of 180 rasters calculated using an equation within Raster Calculator.
I've done two sub-models with and Iterator each (one for Temperature and one for Salinity) and put them into a model with the Raster Calculator tool added (see graphic). I'm also using variable substitution in the output (%Name%) but I'm only getting one single output.

Any suggestions would be greatly appreciated.

Thanks
0 Kudos
15 Replies
anTonialcaraz
Frequent Contributor
Hi Dan,

The files are just above the limit to be attached (2.80 MB).
Is there any chance you can send me your email (privately) so I can send you the rasters?

Many thanks
0 Kudos
DanielHall_Ballester
Regular Contributor
Hi Toni,
I've sent you a private message.
0 Kudos
anTonialcaraz
Frequent Contributor
Hi Dan,

I sent you an e-mail. I'm using 10.0

Thanks
0 Kudos
anTonialcaraz
Frequent Contributor
Hi,

I'm trying to run Raster Calculator in Model Builder using two Raster Iterators (one of them embedded) with no success in the results.

I want to calculate Oxygen from a series of Temperature and Salinity rasters stored in a File GDB. I have many layers corresponding to different depths and months. For example: "t1389_apr" should go together in the Raster Calculator equation with "sl1389_apr" and so on.

The results I'm getting are telling me that in the calculation it only uses the last salinity raster in the list. It does not iterate sequentially from the first to the last raster in the list. The Salinity iterator is the one embedded within the model. I also tried to use the salinity as a multi-value input but it does the same (only picks up the last salinity raster in the list).

I've exported the model as a python script (attached). I've run the model in 10.0 and 10.1 with same results.

I would be great if someone could have a look and come up with a possible solution.


Many thanks

Toni
0 Kudos
anTonialcaraz
Frequent Contributor
Anyone from ESRI with suggestions?

Cheers
0 Kudos
anTonialcaraz
Frequent Contributor
I always thought the model should work (see attached).
is it an Esri glitch? or is there something not quite right in the procedure I'm following?

Cheers
0 Kudos