From: Christian M. <mee...@im...> - 2009-08-27 13:06:34
|
> Christian: That should work, if you created the masked array > correctly. Why are you creating the mask with data=='NA'? I suspect > that this always evaluates to False, so you don't get a mask. You > probably want to check for a numeric value, not a string. For example: Thanks a lot, Jeff! Yes, the non-numerical comparison was indeed causing problems - although I don't understand why. However, I can easily inject numerical non-sense values into the array. As to the 'NA': The data are an R output file. As I don't like R too much, I'm falling back to Python. Christian |