IRAF-like source detection using photutils

8.2. IRAF-like source detection using photutils#

photutils provides a couple of options for stellar source detection that will be familiar to users of IRAF. One is DAOFIND and the other is IRAF’s starfind. The recommendation is to use DAOFIND because it is more general than starfind (e.g. it allows elliptical sources) and detects more sources. There are examples of each method in the notebooks that follow.

Both methods find sources above a threshold that is specified as a multiple of the background noise level, and both require that the background be subtracted from the image.

You can use any of the background subtraction methods that you like; often simply subtracting the median will be adequate.