<div dir="ltr"><div><div><div>Hello all,<br><br></div>I'm building a model in SEXTANTE Modeller from an old ESRI AML script. My goal (for now) is to build a SEXTANTE model from this script, I have found a way to do it but at the end the script writes:<br>

<br clear="all"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font face="courier new,monospace">docell<br> if ( %cb%d6 == 0 and %cb%d4 == 0)<br>
 then %pff% = 0<br>
 else %pff% = float(%cb%d4 / %cb%d7)<br>end</font><br></blockquote><br></div>So, I have the rasters similar to <font face="courier new,monospace">%cb%d6, </font><font face="courier new,monospace">%cb%d4 and </font><font face="courier new,monospace">%cb%d7 named as cbd6, cbd4 and cbd7. I need to create a raster with these rules: IF cbd6_raster = 0 AND cbd4_raster = 0, then write 0, ELSE divide cbd4_raster/cbd7_raster. But here I'm lost, I've tried a lot of things but they have failed.<br>

</font></div><div><font face="courier new,monospace"><br></font></div><div><font face="courier new,monospace">ANY help will be very appreciated. Thanks.<br></font></div><div><font face="courier new,monospace"><br></font></div>

<font face="courier new,monospace"><br></font><div><div><div><div><br>-- <br>Saludos,<div><br></div><div>Yasser Said López de Olmos Reyes<br></div><div>Laboratorio de Manejo de Recursos Naturales<br></div><div>Universidad Autónoma Metropolitana<br>

</div><div>Unidad Iztapalapa<br>México, DF<br></div>
</div></div></div></div></div>