grizli.utils.hull_edge_mask(x, y, pad=100, pad_is_absolute=True, mask=None)[source]

Compute geometrical edge mask for points within a convex hull

x, y : array

Coordinates of the catalog

pad : float

Buffer padding

pad_is_absolute : bool

If True, then the buffer is taken from pad (e.g., pixels). If False, then pad is treated as a fraction of the linear dimension of the catalog (sqrt(hull area)).

mask : bool array

Mask to apply to x/y before computing the convex hull

mask : bool array

True if points within the buffered hull