mask_sources

mpdaf.obj.mask_sources(image, sigma=3.0, iterations=2, opening_iterations=0, outfile=None, plot=False)[source]

Create a mask of sources, using photutils.

Parameters
imageImage or str

Input image.

sigmaint, optional

Number of sigma for the detection threshold.

iterationsint

Number of iterations for the binary dilatation.

opening_iterationsint

Number of iterations for the binary opening.

outfilestr, optional

Output mask filename.

plotbool

Plot the image and mask.