thomasorb / orcs

ORCS is an analysis engine for SITELLE spectral cubes.
GNU General Public License v3.0
9 stars 6 forks source link

too much stars detected with detect_sources() #12

Open thomasorb opened 6 years ago

thomasorb commented 6 years ago

Detect_sources() shows stars and emission-line sources. It would be great to remove stars as much as possible.

BLaunet commented 6 years ago

My 2 cents : instead of returning the max along z axis after filtering of the background, detect_sources could return the max-median; this way, objects not having strong structure shining above their median emission (typically: stars) would disappear from the detection_frame.

The solution in action : (all the quantities have been taken along the z axis on a background subtracted cube limited to the bandpass of the filter) stat_comparison-2

Notice how sources appearing on the median image (== the deep frame, == mostly stars) disappear from the original detection frame