AnsweredAssumed Answered

How to combine these three rasters according to this logic?

Question asked by geonetadmin on May 25, 2011
Latest reply on Nov 15, 2016 by xander_bakker
Original User: Jamal432@gmail.com

How to combine these three rasters according to this logic?

please, see the attached images that show my question

explanation:

I've three rasters: slope, landuse and hydraulic conductivity. i need to combine them according the relation shown in the table (second attachment)

i convert the table shown in the second attachment to the following code:

-----------------------------------------------------------
if [Type] = "FieldCrop-Shrub" then
          if [FlowType] = "TYPE D" then
             Select Case [Slope]
    Case 1
       oo = .6
    Case 2
         oo =.4
    Case 3
        oo =.2
    Case Else
       oo =0
End Select
           else
          if [FlowType] = "TYPE E" then
             Select Case [Slope]
    Case 1
       oo = .8
    Case 2
         oo =.6
    Case 3
        oo =.4
    Case Else
       oo =0
End Select

          end if
end if
else
if  [Type]  = "Forest" then
          if [FlowType] = "TYPE D" then
             Select Case [Slope]
    Case 1
       oo = .8
    Case 2
         oo =.6
    Case 3
        oo =.4
    Case Else
       oo =0
End Select
           else
          if [FlowType] = "TYPE E" then
             Select Case [Slope]
    Case 1
       oo = 1
    Case 2
         oo =.6
    Case 3
        oo =.4
    Case Else
       oo =0
End Select

end if
end if
end if
end if

---------------------------------------------------------------------------

Now, how can i include this code to combine these three rasters?

thank you

regards

Jamal

Attachments

Outcomes