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 /d