Hi Martin<br>Maybe I was not clear enough. this is a procedding to be done over each pixel. Can I apply this sort of code to a pixel based analysis?<br><div class="gmail_quote">2010/6/22 Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
2010/6/22 Luisa Peņa <<a href="mailto:luisapena1979@gmail.com">luisapena1979@gmail.com</a>>:<br>
<div class="im">> Greetings<br>
> I'm doing a processing that requires setting rules such as : IF band1> 1<br>
> output=5 if band<=1 ouput= 3 and if band2>5 output=7. How can I do this in a<br>
> Python script in order to be "almost automatic"?<br>
<br>
</div>if band1 > 1:<br>
output = 5<br>
else:<br>
output = 3<br>
<div class="im"><br>
if band2 > 5:<br>
output = 7<br>
<br>
</div>Martin<br>
<font color="#888888"><br>
--<br>
Martin Landa <landa.martin <a href="http://gmail.com" target="_blank">gmail.com</a>> * <a href="http://gama.fsv.cvut.cz/~landa" target="_blank">http://gama.fsv.cvut.cz/~landa</a><br>
</font></blockquote></div><br>