MV2

choose(myindices, t)[source]

Choose

Returns
an array shaped like indices containing elements chosen from t.
If an element of t is the special element masked, any element of
the result that “chooses” that element is masked. The result has
only the default axes.