masked_inside(x, v1, v2, copy=True)
Shortcut to masked_where
, where :None:None:`condition`
is True for :None:None:`x`
inside the interval [v1,v2] (v1 <= x <= v2). The boundaries :None:None:`v1`
and :None:None:`v2`
can be given in either order.
The array :None:None:`x`
is prefilled with its filling value.
Mask an array inside a given interval.
masked_where
Mask where a condition is met.
>>> import numpy.ma as ma
... x = [0.31, 1.2, 0.01, 0.2, -0.4, -1.1]
... ma.masked_inside(x, -0.3, 0.3) masked_array(data=[0.31, 1.2, --, --, -0.4, -1.1], mask=[False, False, True, True, False, False], fill_value=1e+20)
The order of :None:None:`v1`
and :None:None:`v2`
doesn't matter.
>>> ma.masked_inside(x, 0.3, -0.3) masked_array(data=[0.31, 1.2, --, --, -0.4, -1.1], mask=[False, False, True, True, False, False], fill_value=1e+20)See :
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.ma.core.masked_where
dask.array.ma.masked_inside
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them