combine_masks#
- astropy.utils.masked.combine_masks(masks, *, out=None, where=True, copy=True)[source]#
Combine masks, possibly storing it in some output.
- Parameters:
- masks
python:tuple
ofarray
of bool orpython:False
orpython:None
Input masks. Any that are
None
orFalse
are ignored. Should broadcast to each other. For structured dtype, an element is considered masked if any of the fields is.- out
array
, optional Possible output array to hold the result.
- where
array
of bool, optional Which elements of the output array to fill.
- copybool optional
Whether to ensure a copy is made. Only relevant if just a single input mask is not
None
, andout
is not given.
- masks
- Returns:
- mask
array
Combined mask.
- mask