# numpy 2.5.4 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

    Mask an array where greater than a given value.

    This function is a shortcut to ``masked_where``, with
    `condition` = (x > value).

    See Also
    --------
    masked_where : Mask where a condition is met.

    Examples
    --------
    >>> import numpy as np
    >>> import numpy.ma as ma
    >>> a = np.arange(4)
    >>> a
    array([0, 1, 2, 3])
    >>> ma.masked_greater(a, 2)
    masked_array(data=[0, 1, 2, --],
                 mask=[False, False, False,  True],
           fill_value=999999)

    
=== parse numpydoc
short_description: 'Mask an array where greater than a given value.'
long_description: |
  This function is a shortcut to ``masked_where``, with
  `condition` = (x > value).
blank_after_short_description: True
blank_after_long_description: True
style: numpydoc
- DocstringMeta
  description: 'masked_where : Mask where a condition is met.'
  kind: text
  key: 'see_also'
  title: 'See Also'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> import numpy as np'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> import numpy.ma as ma'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> a = np.arange(4)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> a
    array([0, 1, 2, 3])
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> ma.masked_greater(a, 2)
    masked_array(data=[0, 1, 2, --],
                 mask=[False, False, False,  True],
           fill_value=999999)
=== detect
numpydoc
=== compose numpydoc
Mask an array where greater than a given value.

This function is a shortcut to ``masked_where``, with
`condition` = (x > value).

See Also
--------
masked_where : Mask where a condition is met.

Examples
--------
>>> import numpy as np
>>> import numpy.ma as ma
>>> a = np.arange(4)
>>> a
array([0, 1, 2, 3])
>>> ma.masked_greater(a, 2)
masked_array(data=[0, 1, 2, --],
             mask=[False, False, False,  True],
       fill_value=999999)
