I have three arrays and one contains masked values based off some condition:
a = numpy.ma.MaskedArray(other_array, condition)
(Initially I used masked arrays because my condition is a variable and it made plotting a lot easier with other data sets to keep my arrays fixed lengths. Now I'm exporting my data to be analysed by other program not written by me, and it can't handle '--')
So my arrays have the form:
a = [1,--,3]
b = [4,5,6]
c = [7,8,9]
I want to iterate through a, identify any index of a that contains a masked value '--', and then delete that index from all arrays:
a = [1,3]
b = [4,6]
c = [7,9]
In reality, a b and c are very long, and the masked indices aren't regularly spaced.
Thanks!