Simple tool to remove bright sources (excluding the galaxy itself) from a fits image using Astropy PhotUtils.
GalClean can be used as a script following the instructions bellow or as a module (refer to the .ipynb in the repository for an example).
python galclean.py <file_path_to_fits> [--siglevel SIGLEVEL] [--min_size MIN_SIZE]
- Segmented input in a fits file: _seg.png
- PNG for inspection with the original and segmented images with a residual plot
This tool was created to remove external bright sources from EFIGI's stamps to avoid source blending after applying artificial redshift to them with FERENGI. An early version [2] of GalClean was used in [1].