numpy.ma.masked_array.get_real
method
-
masked_array.get_real(self)
[source] -
The real part of the masked array.
This property is a view on the real part of this
MaskedArray
.See also
Examples
>>> x = np.ma.array([1+1.j, -2j, 3.45+1.6j], mask=[False, True, False]) >>> x.real masked_array(data=[1.0, --, 3.45], mask=[False, True, False], fill_value=1e+20)
© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/generated/numpy.ma.masked_array.get_real.html