Re: [Image-SIG] Help for to do a script

2012-03-27 Thread Alec Bennett
There's a lot wrong with it. I don't have the modules so I can't test, but you need to chnage these two lines: if (data[0][i][j] 199.5 and (data[0][i][j] 200.5 count = count + 1; To something like: if data[0][i][j] 199.5 and data[0][i][j]

Re: [Image-SIG] Help for to do a script

2012-03-19 Thread Chris Barker
1) please don't multi-post like this -- this is really a tutor question. i.e. your problem is very basic python On Fri, Mar 16, 2012 at 11:52 AM, Boris Vladimir Comi gle...@comunidad.unam.mx wrote: I detect a class of atmospheric phenomena known as Mesoscale Convective Systems (MCS). To

Re: [Image-SIG] Help for to do a script

2012-03-17 Thread donn
On 16/03/2012 20:52, Boris Vladimir Comi wrote: if (data[0][i][j] 199.5 and (data[0][i][j] 200.5 count = count + 1; Looks like the if command does not close properly. It needs a brackets and a colon. Also, you don't need to use semi-colons, at all. HTH

[Image-SIG] Help for to do a script

2012-03-16 Thread Boris Vladimir Comi
Hello, I am writing to request your help in the realization of a script. I am new to this and I'm just learning the wonderful world of python and this has made me a little difficult. Briefly I commented what I intend to do: I detect a class of atmospheric phenomena known as Mesoscale