shrink_mask

powspec.shrink_mask(mask, kernel)[source]

Shrink mask wrt to a kernel

Parameters:
mask2D boolean array_like

the mask to be shrinked by…

kernel2D float array_like

… the corresponding array

Returns:
2D boolean array

the corresponding shrunk mask

Notes

The kernel sum must be normalized