{ } Raw JSON

bundles / numpy 2.4.4 / numpy / ma / core / masked_greater

function

numpy.ma.core:masked_greater

source: /numpy/ma/core.py :1997

Signature

def   masked_greater ( x value copy = True )

Summary

Mask an array where greater than a given value.

Extended Summary

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

Examples

import numpy as np
import numpy.ma as ma
a = np.arange(4)
a
ma.masked_greater(a, 2)

See also

masked_where

Mask where a condition is met.

Aliases

  • numpy.ma.masked_greater