hull_edge_mask

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

Parameters
x, yarray

Coordinates of the catalog

padfloat

Buffer padding

pad_is_absolutebool

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)).

maskbool array

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

Returns
maskbool array

True if points within the buffered hull