SciPy

numpy.ma.masked_array.imag

attribute

masked_array.imag

Imaginary part.