[GRASS-user] Python scripts using rules
Martin Landa
landa.martin at gmail.com
Tue Jun 22 07:35:56 EDT 2010
Hi,
2010/6/22 Luisa Peña <luisapena1979 at gmail.com>:
> Greetings
> I'm doing a processing that requires setting rules such as : IF band1> 1
> output=5 if band<=1 ouput= 3 and if band2>5 output=7. How can I do this in a
> Python script in order to be "almost automatic"?
if band1 > 1:
output = 5
else:
output = 3
if band2 > 5:
output = 7
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
More information about the grass-user
mailing list