create_mask

acstools.utils_findsat_mrt.create_mask(image, trail_id, endpoints, widths)

Creates an image mask given a set of trail endpoints and widths.

Parameters:
imagendarray

Input image to be masked.

trail_idarray of int

ID numbers for each trail. These should be unique.

endpointsarray

An array containing the endpoints of each trail to contribute to the mask. See filter_sources() for format.

widthsarray

Widths for each trail.

Returns:
segmentndarray

A segmentation image where each pixel that is part of a masked satellite trail is given a value of the corresponding trail ID.

maskndarray

Boolean mask (1=masked, 0=not masked).