AnsweredAssumed Answered

Arc Objects Spatial analyst Con Condition

Question asked by Nadir_Hussain on Jan 4, 2015
Latest reply on Jan 4, 2015 by modybsystematics-co-il-esridist

If inRaster < inputnumber1 Then

   outRaster = 1

ElseIf inRaster > inputnumber2 Then

   outRaster =0

ElseIf inRaster >= inputnumber1 and   inRaster<= inputnumber2 Then

    outRaster = 0.5 * (1 + cos(3.14159*((inRasterinputnumber1 )(inputnumber2 - inputnumber1 ))))

Else

outRaster = 0

 

The above statments i have to make in arcobjects by using spatial analyst.I am totally confused.Please help.How to make condition in IConditionalop of  spatial analyst.Any help will be appreciated.

 

Thanks in Advance.

 

Regards

Outcomes