# xarray.ufuncs.isreal

`xarray.ufuncs.``isreal` = <xarray.ufuncs._UFuncDispatcher object>

  xarray specific variant of numpy.isreal. Handles xarray.Dataset, xarray.DataArray, xarray.Variable, numpy.ndarray and dask.array.Array objects with automatic dispatching.

  Documentation from numpy:

  Returns a bool array, where True if input element is real.

  If element has complex type with zero complex part, the return value for that element is True.

  Parameters: | x (array_like) – Input array.
  Returns: | out – Boolean array of same shape as x.
  Return type: | ndarray, bool

  See also

  `iscomplex`

  `isrealobj`
    Return True if x is not a complex type.

  Examples

      >>> np.isreal([1+1j, 1+0j, 4.5, 3, 2, 2j])
      array([False,  True,  True,  True,  True, False])